rules_python
rules_python copied to clipboard
Bazel Python Rules
Myself (Jonathon Belotti) and @andyscott (Andy Scott) recently became maintainers of rules_python. We hail from [Canva](https://www.canva.com/) and [Stripe](https://stripe.com/), respectively. Within our companies Bazel is used extensively and supporting Python within...
# 🚀 feature request ### Relevant Rules `pip_install` ### Description I want to patch a python package after it is installed. ### Describe the solution you'd like Similar to `patches`...
compile_pip_requirements does not independently setup its internal pip dependencies (eg. pip-tools)
# 🐞 bug report ### Affected Rule compile_pip_requirements ### Is this a regression? No ### Description Using `compile_pip_requirements` without any of the other rules results in an error: ``` %...
It looks like any libraries installed to my system python's site-packages are available to bazel, whether or not they are expressed as a dependency to bazel. This seems like an...
# 🚀 Support `flake8` extensions when using `entry_point` macro ### Relevant Rules * `entry_point` macro from the `pip` rules. ### Description As noted in [this article](https://siderlabs.com/blog/talking-about-flake8-plugin-mechanics-7bba328cd6c5/), `flake8` extension loading requires...
This feature is inspired by how we handle the ecosystem of tools in rules_nodejs. For a long time we assumed we needed to write custom rules for each tool in...
This is a demo, not production ready. Notes for #241.
Rules for linking against a local installation (python_configure.bzl) and for creating an extension module (py_extension.bzl) are visible both in the tensorflow, riegeli, and gRPC projects, with only slight differences. It...
I'm in the process of switching our rather large Python codebase over to using Bazel and have just finished getting our entire unit test suite to run using Bazel. Our...
# 🚀 feature request ### Relevant Rules This is a feature that should be added to the `py_wheel` rule. --> ### Description I'd like the ability to build universal wheels...