diff --git a/.bazelrc b/.bazelrc index c23aa74..9ab733d 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,5 +1,6 @@ test --test_output=errors test --test_tag_filters=-known-to-fail +test --keep_going # To enable flake8 on all build steps, uncomment this - # test --aspects="//tools/flake8:flake8.bzl%flake8_aspect" --output_groups=flake8_checks diff --git a/.gitignore b/.gitignore index f38a91e..66817fe 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ tmp/ /**/*.sqlite* /**/config*.toml /**/config*.yml +MODULE.bazel.lock diff --git a/WORKSPACE b/WORKSPACE index 0528d59..910f51c 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -62,76 +62,14 @@ load("@arrdem_source_pypi//:requirements.bzl", "install_deps") # Call it to define repos for your requirements. install_deps() -git_repository( - name = "rules_zapp", - remote = "https://git.arrdem.com/arrdem/rules_zapp.git", - commit = "961be891e5cff539e14f2050d5cd9e82845ce0f2", - # tag = "0.1.2", -) - -# local_repository( -# name = "rules_zapp", -# path = "/home/arrdem/Documents/hobby/programming/lang/python/rules_zapp", +# git_repository( +# name = "rules_zapp", +# remote = "https://git.arrdem.com/arrdem/rules_zapp.git", +# commit = "961be891e5cff539e14f2050d5cd9e82845ce0f2", +# # tag = "0.1.2", # ) -#################################################################################################### -# Docker support -#################################################################################################### - -http_archive( - name = "io_bazel_rules_docker", - sha256 = "b1e80761a8a8243d03ebca8845e9cc1ba6c82ce7c5179ce2b295cd36f7e394bf", - urls = ["https://github.com/bazelbuild/rules_docker/releases/download/v0.25.0/rules_docker-v0.25.0.tar.gz"], -) - -load("@io_bazel_rules_docker//toolchains/docker:toolchain.bzl", - docker_toolchain_configure="toolchain_configure" -) - -docker_toolchain_configure( - name = "docker_config", - docker_flags = [ - ], -) - -load( - "@io_bazel_rules_docker//repositories:repositories.bzl", - container_repositories = "repositories", -) -container_repositories() - -load( - "@io_bazel_rules_docker//repositories:deps.bzl", - container_deps = "deps" -) - -container_deps() - -load( - "@io_bazel_rules_docker//container:container.bzl", - "container_pull", -) - -# container_pull( -# name = "python_base", -# registry = "index.docker.io", -# repository = "library/python", -# tag = "3.10.8-alpine" -# # sha256 = "digest:d78a749034380426dd6cec6a0db139459ca701630533ffce112adbcdd996fddd", -# ) - -# container_pull( -# name = "python_base", -# registry = "gcr.io", -# repository = "distroless/python3-debian11", -# tag = "latest" -# # sha256 = "digest:d78a749034380426dd6cec6a0db139459ca701630533ffce112adbcdd996fddd", -# ) - -container_pull( - name = "python_base", - registry = "index.docker.io", - repository = "library/python", - tag = "3.11-buster" - # sha256 = "digest:d78a749034380426dd6cec6a0db139459ca701630533ffce112adbcdd996fddd", +local_repository( + name = "rules_zapp", + path = "/home/arrdem/Documents/hobby/programming/lang/python/rules_zapp", ) diff --git a/projects/lilith/src/python/lilith/__init__.py b/projects/lilith/src/lilith/__init__.py similarity index 100% rename from projects/lilith/src/python/lilith/__init__.py rename to projects/lilith/src/lilith/__init__.py diff --git a/projects/lilith/src/python/lilith/__main__.py b/projects/lilith/src/lilith/__main__.py similarity index 100% rename from projects/lilith/src/python/lilith/__main__.py rename to projects/lilith/src/lilith/__main__.py diff --git a/projects/lilith/src/python/lilith/grammar.lark b/projects/lilith/src/lilith/grammar.lark similarity index 100% rename from projects/lilith/src/python/lilith/grammar.lark rename to projects/lilith/src/lilith/grammar.lark diff --git a/projects/lilith/src/python/lilith/interpreter.py b/projects/lilith/src/lilith/interpreter.py similarity index 100% rename from projects/lilith/src/python/lilith/interpreter.py rename to projects/lilith/src/lilith/interpreter.py diff --git a/projects/lilith/src/python/lilith/parser.py b/projects/lilith/src/lilith/parser.py similarity index 100% rename from projects/lilith/src/python/lilith/parser.py rename to projects/lilith/src/lilith/parser.py diff --git a/projects/lilith/src/python/lilith/prelude.lil b/projects/lilith/src/lilith/prelude.lil similarity index 100% rename from projects/lilith/src/python/lilith/prelude.lil rename to projects/lilith/src/lilith/prelude.lil diff --git a/projects/lilith/src/python/lilith/reader.py b/projects/lilith/src/lilith/reader.py similarity index 100% rename from projects/lilith/src/python/lilith/reader.py rename to projects/lilith/src/lilith/reader.py