This is a simple Python project that uses Bazel as a build system.
hello_world/: Contains the Python source code.hello.py: Defines thesay_helloandsay_goodbyefunctions.run_hello.py: A script that prints the output ofsay_hello.run_goodbye.py: A script that prints the output ofsay_goodbye.hello_test.py: Contains unit tests for the functions inhello.py.
BUILD: The Bazel build file for thehello_worldpackage.MODULE.bazel: The Bazel module file.
To build the project, run the following command:
bazel build //...To run the run_hello script, use the following command:
bazel run //hello_world:run_helloTo run the run_goodbye script, use the following command:
bazel run //hello_world:run_goodbyeTo run the tests, use the following command:
bazel test //...