Clone this repo:
  1. 014ad58 feat(gazelle): simplify gazelle_python.yaml (#2048) by hunshcn · 23 hours ago upstream/main
  2. 6f9082f fix: use downloaded archive in sdist (#2091) by Chris Chua · 24 hours ago
  3. 59bb4a8 fix: add missing +x to runtime env toolchain interpreter script (#2086) by Richard Levasseur · 3 days ago
  4. eef1d81 build(deps): bump sphinxcontrib-htmlhelp from 2.0.5 to 2.0.6 in /docs/sphinx (#2084) by dependabot[bot] · 4 days ago
  5. e722d07 refactor: move python/repositories.bzl implementation under python/private (#2083) by Richard Levasseur · 5 days ago

Python Rules for Bazel

Build status

Overview

This repository is the home of the core Python rules -- py_library, py_binary, py_test, py_proto_library, 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

  • Status: Beta
  • Full Feature Parity: No

See Bzlmod support for more details.