Skip to content

hunshcn/rules_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 22, 2024
a52bd0f · May 22, 2024
Feb 5, 2024
May 13, 2024
Mar 30, 2021
Dec 27, 2023
May 19, 2024
May 19, 2024
May 22, 2024
Apr 3, 2019
May 20, 2024
Apr 5, 2024
May 20, 2024
Dec 19, 2023
May 18, 2024
May 18, 2024
May 18, 2024
Dec 15, 2023
Aug 26, 2020
Oct 11, 2023
Apr 29, 2024
Jan 23, 2024
Oct 30, 2023
Aug 11, 2017
Mar 21, 2024
Jul 14, 2023
May 20, 2024
Dec 21, 2023
Aug 11, 2017
Aug 3, 2023
Aug 11, 2017
May 19, 2024
Oct 19, 2023
May 12, 2024
Mar 21, 2024
Feb 24, 2023
Apr 29, 2024
Apr 5, 2024
Nov 4, 2019
Jan 6, 2024

Repository files navigation

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.

Currently, the core rules build into the Bazel binary, and the symbols in this repository are simple aliases. However, we are migrating the rules to Starlark and removing them from the Bazel binary. Therefore, the future-proof way to depend on Python rules is via this repository. SeeMigrating from the Bundled Rules below.

The core rules are stable. Their implementation in Bazel is subject to Bazel's backward compatibility policy. Once migrated to rules_python, they may evolve at a different rate, but this repository will still 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.

Packages

No packages published

Languages

  • Starlark 72.0%
  • Python 19.8%
  • Go 7.6%
  • Other 0.6%