tree: 103f34cd3841e0cdeb9c4980105bcbb7ce98bf01
  1. .agents/
  2. .bazelci/
  3. .bcr/
  4. .ci/
  5. .github/
  6. command_line_option/
  7. docs/
  8. examples/
  9. gazelle/
  10. private/
  11. python/
  12. sphinxdocs/
  13. tests/
  14. tools/
  15. .bazelignore
  16. .bazelrc
  17. .bazelrc.deleted_packages
  18. .bazelversion
  19. .editorconfig
  20. .git-blame-ignore-revs
  21. .gitattributes
  22. .gitignore
  23. .pre-commit-config.yaml
  24. .python-version
  25. .readthedocs.yml
  26. addlicense.sh
  27. AGENTS.md
  28. AUTHORS
  29. BUILD.bazel
  30. BZLMOD_SUPPORT.md
  31. CHANGELOG.md
  32. CONTRIBUTING.md
  33. CONTRIBUTORS
  34. GEMINI.md
  35. internal_dev_deps.bzl
  36. internal_dev_setup.bzl
  37. LICENSE
  38. MODULE.bazel
  39. README.md
  40. RELEASING.md
  41. specialized_configs.bazelrc
  42. version.bzl
  43. WORKSPACE
  44. WORKSPACE.bzlmod
README.md

Python Rules for Bazel

Build status

Overview

This repository is the home of the core Python rules -- py_library, py_binary, py_test, and related symbols that provide the basis for Python support in Bazel. It also contains package installation rules for integrating with PyPI and other indices.

Documentation for rules_python is at https://rules-python.readthedocs.io and in the Bazel Build Encyclopedia.

Examples live in the examples directory.

The core rules are stable. Their implementation is subject to Bazel's backward compatibility policy. This repository aims to follow semantic versioning.

The Bazel community maintains this repository. Neither Google nor the Bazel team provides support for the code. However, this repository is part of the test suite used to vet new Bazel releases. See How to contribute page for information on our development workflow.

Documentation

For detailed documentation, see https://rules-python.readthedocs.io

Bzlmod support

See Bzlmod support for more details.