diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c5f8b694..1e732b0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,4 +53,7 @@ jobs: run: bazel build //csharp/... - name: Building //perl directory - run: bazel build //perl/... \ No newline at end of file + run: bazel build //perl/... + + - name: Building //python directory + run: bazel build //python/... diff --git a/WORKSPACE b/WORKSPACE index ba524412..8e323b28 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -254,3 +254,10 @@ load("@rules_perl//perl:deps.bzl", "perl_register_toolchains", "perl_rules_depen perl_rules_dependencies() perl_register_toolchains() + +http_archive( + name = "rules_python", + sha256 = "bc4e59e17c7809a5b373ba359e2c974ed2386c58634819ac5a89c0813c15705c", + strip_prefix = "rules_python-0.15.1", + url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.15.1.tar.gz", +) \ No newline at end of file diff --git a/python/BUILD b/python/BUILD new file mode 100644 index 00000000..3d0394cf --- /dev/null +++ b/python/BUILD @@ -0,0 +1,7 @@ +load("@rules_python//python:defs.bzl", "py_binary") + +py_binary( + name = "python", + main = "main.py", + srcs = ["main.py"], +) \ No newline at end of file diff --git a/python/main.py b/python/main.py new file mode 100644 index 00000000..b41d0fe4 --- /dev/null +++ b/python/main.py @@ -0,0 +1,6 @@ +def main(): + print("Hello world!") + + +if __name__ == "__main__": + main()