rules_python icon indicating copy to clipboard operation
rules_python copied to clipboard

Bazel Python Rules

Results 459 rules_python issues
Sort by recently updated
recently updated
newest added

Remove entry point file requirements when generating rules. Enable python rule generation as long as there are .py source files under the directory so all new packages will have python...

# 🚀 feature request ### Relevant Rules `gazelle` ### Description As far as I know, there is no gazelle support for making `py_proto_library` targets. ### Describe the solution you'd like...

# 🐞 bug report ### Affected Rule `pip.parse` ### Is this a regression? not sure ### Description When `pip.parse` with `experimental_index_url` uses per-platform requirements files and package versions don't match...

type: pip

When `# gazelle:python_generation_mode package` is enabled, relative imports are currently not being added to the `deps` field of the generated target. For example, given the following Python code: ``` from...

Currently the API for defining different parameters by target platform is not ideal and we need to jump over hoops whilst trying to maintain it. The main difficulties are: *...

type: feature request
type: pip

This PR makes sure that all non-test Python modules are covered by a `py_library` target. When a module is imported by another target, Gazelle no longer resolves it to `py_binary`...

This is yet another implementation of #2822. Based on this: https://github.com/bazel-contrib/rules_python/blob/94e08f7dfe61962fa50508f01ea05c624307d487/gazelle/python/generate.go#L248-L252 The only case when a python file does not exist in `py_library` is in file mode. Stop indexing `py_binary`...

Sometimes you want to use a custom wheel that can't be represented by Python packaging constraints, or simply want to use a particular whl at a particular location for your...

type: feature request
type: pip

When adding #2969 I noticed that the `3.14.0b2` is failing the `//tests/toolchains/` when using the script bootstrap. It seems that the `sys.path` setup is not working and the bazel runfiles...

# 🐞 bug report ### Affected Rule `pip.parse` ### Is this a regression? I doubt it ### Description ```bzl experimental_index_url = "https://pypi.org/simple", experimental_index_url_overrides = { "torchvision": "https://404.com", "torchaudio": "https://404.com", },...