Clone this repo:
  1. 42085b5 test(whl_library): test a recent fix for pipstar (#3469) by Ignas Anikevicius · 10 hours ago upstream/main
  2. f9992f7 fix (venv_site_packages): Fix wrong runfiles.symlinks when py_binary is not in root module (#3505) by Shayan Hoshyari · 22 hours ago
  3. 22f3de0 chore: create bcr prs as non-draft so bazel-io processes the bot-created PRs (#3504) by Richard Levasseur · 2 days ago
  4. 2398fcc refactor(pypi): print a better error message for duplicate repos (#3487) by Ignas Anikevicius · 2 days ago
  5. ffb7001 doc: Add a snippet on how people can use 3.8 now onwards (#3502) by Ignas Anikevicius · 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

See Bzlmod support for more details.