rules_python
rules_python copied to clipboard
Bazel Python Rules
# 🐞 bug report ### Affected Rule register toolchain ### Is this a regression? Yes, the previous version in which this bug was not present was: .... ### Description Certain...
# 🐞 bug report The srcs attribute for this cc_library for os:windows is` ["python3.dll", "libs/python{python_version_nodot}.lib"]`. It is missing the version-specific binary, eg python311.dll. https://github.com/bazelbuild/rules_python/blob/c5c03b2477dd1ce0c06c9dc60bf816995f222bcf/python/repositories.bzl#L318-L326 This will result in a runtime...
Resolves #1804 Adds new `custom_properties` param to `py_wheel`. This feature allow to inject version generated by other target. Tested with integration tests: `bazel build examples/wheel:version_from_other_target.dist`
[bzlmod] Silence `Ignoring toolchain` warning for duplicate toolchains with the same configuration
With our project using bzlmod, rules_python, and grpc, with this setup in the MODULE.bazel: ```bzl python = use_extension("@rules_python//python/extensions:python.bzl", "python") python.toolchain( ignore_root_user_error = True, is_default = True, python_version = "3.11", )...
When building a Wheel, you want to populate the `Requires-Dist` lines in the `mylib.dist-info/METADATA` file so that users of the wheel have the dependencies installed. We support this here: https://github.com/bazelbuild/rules_python/blob/1487a0c416be8bb5d1033b3815fb662527c99197/python/packaging.bzl#L191...
# 🐞 bug report ### Affected Rule The issue is caused by the rule: `compile_pip_requirements` ### Is this a regression? I don't think this is a regression in rules_python, but...
I believe this attribute is not used with the bzlmod pip API?
# 🚀 feature request ### Relevant Rules * py_wheel ### Description I would like use wheel version generated by other target. ### Describe the solution you'd like ``` my_version_generator( name...
### Affected Rule The issue is caused by the rule: `pip_parse` ### Is this a regression? No ### Description If two packages install submodules of the same parent module, and...
# 🐞 bug report ### Affected Rule ``` use_extension("@rules_python//python/extensions:pip.bzl", "pip") ``` ### Is this a regression? Between old `WORKSPACE` rules and `bzlmod`, potentially yes - so long as you knew...