Skip to content

Commit 5482aec

Browse files
committed
feat: enable pyproject.toml as single source of truth for Python version
1 parent 098379f commit 5482aec

15 files changed

Lines changed: 904 additions & 16 deletions

File tree

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ python/private/runtimes_manifest_workspace.bzl text eol=lf
55
python/private/runtimes_manifest.txt text eol=lf
66

77
*.bat text eol=crlf
8+
requirements_lock.txt linguist-generated=true

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ user.bazelrc
4848
# CLion
4949
.clwb
5050

51-
# Python cache
51+
# Python artifacts
5252
**/__pycache__/
53+
*.egg
54+
*.egg-info
5355

5456
# MODULE.bazel.lock is ignored for now as per recommendation from upstream.
5557
# See https://github.com/bazelbuild/bazel/issues/20369

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ and [#1975](https://github.com/bazel-contrib/rules_python/issues/1975).
145145
* (toolchains) Support dynamically fetching and registering Python runtimes
146146
from a python-build-standalone manifest file using
147147
`python.override(add_runtime_manifest_urls = ..., runtime_manifest_sha = ...)`.
148+
* (pip,python) Added `pyproject_toml` attribute to `pip.default()` and `python.defaults()`
149+
to read Python version from pyproject.toml `requires-python` field (must be `==X.Y.Z` format).
148150
* (toolchain) Added {obj}`python.override.toolchain_target_settings` to allow
149151
adding `config_setting` labels to all registered toolchains.
150152
* (windows) Full venv support for Windows is available. Set

0 commit comments

Comments
 (0)