0.14.0
Using Bzlmod with Bazel 6
Add to your MODULE.bazel
file:
bazel_dep(name = "rules_python", version = "0.14.0")
pip = use_extension("@rules_python//python:extensions.bzl", "pip")
pip.parse(
name = "pip",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, "pip")
# (Optional) Register a specific python toolchain instead of using the host version
python = use_extension("@rules_python//python:extensions.bzl", "python")
python.toolchain(
name = "python3_9",
python_version = "3.9",
)
use_repo(python, "python3_9_toolchains")
register_toolchains(
"@python3_9_toolchains//:all",
)
Using WORKSPACE:
Paste this snippet into your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
sha256 = "a868059c8c6dd6ad45a205cca04084c652cfe1852e6df2d5aca036f6e5438380",
strip_prefix = "rules_python-0.14.0",
url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.14.0.tar.gz",
)
What's Changed
- Use bazel 5.3.1 by @hanneskaeufler in #837
- Use json.encode() by @groodt in #838
- Revert "Use bazel 5.3.1" by @hanneskaeufler in #842
- Add CI job for RBE. by @UebelAndre in #816
- Add .bzl files explicitly to toolchain tests to detect .bzl file changes by @fishcakez in #815
- Allow extra files to be added to distinfo directory within the wheel. by @pstradomski in #831
- fix: assert expected bazel version by @f0rmiga in #847
- bump: pre-commit linters by @f0rmiga in #848
- Move construction of the METADATA file from wheelmaker to .bzl by @pstradomski in #844
- Include ignore_root_user_error in repository_rule keys by @keith in #835
- Allow requirements_in to be generated by @philsc in #829
- doc: clarify location of gazelle_python.yaml by @alexeagle in #849
- bump: ubuntu version on CI by @f0rmiga in #850
- fix: replace cc_import with cc_library for libpython by @scasagrande in #820
- fix: re-enable python_3_8_10_x86_64-apple-darwin_test by @f0rmiga in #851
- refactor: ci with multiple tasks by @f0rmiga in #855
- chore: update go dependencies by @f0rmiga in #854
- Updating docs by @chrislovecnm in #868
- Updating Gazelle version in example by @chrislovecnm in #857
- Update bzlmod example to use latest Bazel release by @kormide in #867
- Remove defunct owners, add new owners by @rickeylev in #873
- Add hrfuller as code owner for pip_parse by @rickeylev in #874
- Update
pip_install
topip_parse
in README.md by @kekesh in #852 - chore: add f0rmiga as codeowner for toolchains by @f0rmiga in #875
- Support annotations on pip packages with extras. by @william-smith-skydio in #865
- Support bzlmod by @kormide in #870
- Setup fixed releaser for Publish to BCR app by @kormide in #878
- fix(determinism): copy two missing entries from data_excludes by @alexeagle in #881
- fix: make conftest.py special with gazelle by @f0rmiga in #879
New Contributors
- @hanneskaeufler made their first contribution in #837
- @fishcakez made their first contribution in #815
- @scasagrande made their first contribution in #820
- @chrislovecnm made their first contribution in #868
- @kormide made their first contribution in #867
- @rickeylev made their first contribution in #873
- @kekesh made their first contribution in #852
- @william-smith-skydio made their first contribution in #865
Full Changelog: 0.13.0...0.14.0