Update dependency rules_python to v1.6.1 #1266
Merged
+13
−18
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Coming soon: The Renovate bot (GitHub App) will be renamed to Mend. PRs from Renovate will soon appear from 'Mend'. Learn more here.
This PR contains the following updates:
1.5.4
->1.6.1
Release Notes
bazel-contrib/rules_python (rules_python)
v1.6.1
Compare Source
For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html
For the user-facing changelog see here
Using Bzlmod
Add to your
MODULE.bazel
file:Using WORKSPACE
Paste this snippet into your
WORKSPACE
file:Gazelle plugin
Paste this snippet into your
WORKSPACE
file:Full Changelog: bazel-contrib/rules_python@1.6.0...1.6.1
v1.6.0
Compare Source
{#v1-6-0-changed}
Changed
to the package path. This is enabled via the
# gazelle:python_experimental_allow_relative_imports
true directive ({gh-issue}2203
).python.ParserOutput
are now all public.__init__.py
,__main__.py
, or__test__.py
files to bepresent in a directory to generate a
BUILD.bazel
file.#2630
linux_x86_64
,linux_aarch64
,osx_x86_64
,osx_aarch64
andwindows_x86_64
. If you are on other platforms, you need touse the
pip.default
to configure it yourself. If you are interested in graduating theplatform, consider helping set us up CI for them and update the documentation.
#!/usr/bin/env bash
is now used as a shebang in the stage1 bootstrap template.gazelle/README.md
to{gh-path}
gazelle/docs
and are now available on the primary documentation siteat https://rules-python.readthedocs.io/en/latest/gazelle/docs/index.html
{#v1-6-0-fixed}
Fixed
local_runtime_repo
now respects changes to theDEVELOPER_DIR
andXCODE_VERSION
repo env vars, fixing stale cache issues on macOS with system (i.e. Xcode-supplied) Python
(#3123).
bazel vendor
vendor directorywould fail if the constraints file contained environment markers. Fixes
#2996.
result in missing files at runtime
(#2782).
py.typed
to indicate itsupports type checking
(#2503).
defaults
configuration now supports any custom platformname.
in ambiguous select matches ({gh-issue}
2759
) and should be much more efficientwhen running
bazel query
due to fewer repositories being included({gh-issue}
2849
).local_runtime_repo
works with multiarch Debian with Python 3.8(#3099).
all_requirements
(#2921).
REPL
stub to make it possible to use thedefault stub template from outside
rules_python
({gh-issue}3101
).absolute imports (Python 2's behavior without
absolute_import
). Previousbehavior can be restored using the directive
# gazelle:python_resolve_sibling_imports true
(#2985).
$PATH
(#3150).
bazel vendor
now works inbzlmod
({gh-issue}3079
).local_runtime_repo
now works on Windows(#3055).
local_runtime_repo
supports more types of Pythoninstallations (Mac frameworks, missing dynamic libraries, and other
esoteric cases, see
#3148 for details).
requirements.txt
files that use different versions of the samepackage targeting different target platforms.
(#2797).
{#v1-6-0-added}
Added
readline
support is available,see (#3114).
(#3114).
requirements.txt
evaluation, use the newly addeddeveloper preview of the
pip.default
tag class. Onlyrules_python
and root modules can usethis feature. You can also configure custom
config_settings
usingpip.default
. Itcan also be used to set the global
netrc
orauth_patterns
variables.:extracted_whl_files
filegroup targetof all the files extracted from the wheel. This can be used in lieu of
{obj}
whl_filegroup
to avoid copying/extracting wheel multiple times toget a subset of their files.
gazelle:python_generate_pyi_deps
; whentrue
,dependencies added to satisfy type-only imports (
if TYPE_CHECKING
) and typestub packages are added to
pyi_deps
instead ofdeps
.gazelle:include_pytest_conftest
. When not set (thedefault) or
true
, gazelle will inject anyconftest.py
file found in the samedirectory as a {obj}
py_test
target to that {obj}py_test
target'sdeps
.This behavior is unchanged from previous versions. When
false
, the:conftest
dep is not added to the {obj}
py_test
target.gazelle:python_generate_proto
; whentrue
,Gazelle generates
py_proto_library
rules forproto_library
.false
by default.proto language.
gazelle:python_proto_naming_convention
; controlsnaming of
py_proto_library
rules.{#v1-6-0-removed}
Removed
{#v1-5-4}
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.