Clone this repo:
  1. 277089e chore(deps): bump rules_cc to 0.1.5 (#3238) by Ignas Anikevicius · 6 hours ago upstream/main
  2. 4977221 refactor(gazelle): report missing BUILD_WORKSPACE_DIRECTORY key more directly (#3240) by Joshua Bronson · 23 hours ago
  3. 1169eec build(deps): bump keyring from 25.5.0 to 25.6.0 in /tools/publish (#3236) by dependabot[bot] · 2 days ago
  4. a9d4a8f build(deps): bump importlib-metadata from 8.5.0 to 8.7.0 in /tools/publish (#3237) by dependabot[bot] · 2 days ago
  5. 2523c1e build(deps): bump jeepney from 0.8.0 to 0.9.0 in /tools/publish (#3234) by dependabot[bot] · 2 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.