Releases: aspect-build/rules_py
v1.3.1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "1.3.1")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "a9211d3be07cc2dcf57a74469229c206a5a4df77d12425350f769379dc5d5694",
strip_prefix = "rules_py-1.3.1",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.3.1/rules_py-v1.3.1.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- fix: workaround Bazel lcov parsing bug by @alexeagle in #521
Full Changelog: v1.3.0...v1.3.1
v1.3.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "1.3.0")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "9fb61582f8eb60d66118c9f59d765da91cc5c991633b5ba1ca3285ecaf716c43",
strip_prefix = "rules_py-1.3.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.3.0/rules_py-v1.3.0.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- chore(ci): make it 8min faster by @alexeagle in #509
- chore: clarify that the coverage report isn't for the whole repo by @alexeagle in #511
- refactor: remove rules_docker dependency by @alexeagle in #512
- Update README.md by @alexeagle in #510
- pytest test sharding by @vinnybod in #493
- fix(coverage): produce combined coverage report by @dizzy57 in #520
- fix: write init shim for pip runfiles helper by @thesayyn in #519
New Contributors
Full Changelog: v1.2.1...v1.3.0
v1.2.1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "1.2.1")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "f8e211491f4c8020dc85b9f49223e8c1329f6efb63aed4ab547fddfba21e9283",
strip_prefix = "rules_py-1.2.1",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.2.1/rules_py-v1.2.1.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- ci: Add all jobs as conclusion deps by @hofbi in #501
- fix(ci): assert that patches apply exactly by @alexeagle in #508
Full Changelog: v1.2.0...v1.2.1
v1.2.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "1.2.0")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "0ca24365412239cc8242664f6c0efd210ede8bc7b8d2a306036ccaf5ba09d81e",
strip_prefix = "rules_py-1.2.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.2.0/rules_py-v1.2.0.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- Fix py_test with nested target name by @keith in #485
- fix: propagate
target_compatible_with
to_py_env
when creating a … by @RoyShulman in #438 - chore: test on Bazel 8.0.0 by @alexeagle in #478
- fix: make py_binary#resolutions and py_test#resolutions identical. by @njlr in #487
- refactor(ci): re-enable testing against prior release artifacts by @alexeagle in #496
- Fix py_image_layers tar options by @betaboon in #494
- feat: add coverage output to py_pytest_main by @alexeagle in #492
- chore(deps): update dependency aspect_bazel_lib to v2.10.0 by @renovate in #482
- chore: Autoformat with buildifier by @hofbi in #480
- docs/example-pytest-fixtures by @njlr in #452
- ci: Add pre-commit GitHub action by @hofbi in #500
- chore: gitignore node_modules folder by @hofbi in #499
- docs: fix example of py_image_layer by @alexeagle in #491
- chore: report the coverage from the e2e/use_release test by @alexeagle in #498
- chore: build on aspect workflows by @kormide in #505
- chore: Add typos pre-commit hook by @hofbi in #503
New Contributors
- @RoyShulman made their first contribution in #438
- @njlr made their first contribution in #487
- @betaboon made their first contribution in #494
Full Changelog: v1.1.0...v1.2.0
v1.1.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "1.1.0")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "0dcde9c64a0cf914fae2b785abd3c5b057b61ef208b4b3af225f311d01a0114f",
strip_prefix = "rules_py-1.1.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.1.0/rules_py-v1.1.0.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- Revert "Add types to file generated by test.py" by @mattem in #435
- Add backwards compatible types to file generated by test.py by @hofbi in #441
- example: Add example for pybind11 by @hofbi in #375
- chore: downstream https://github.com/bazel-contrib/rules-template/pul… by @alexeagle in #445
- Revert "example: Add example for pybind11" by @alexeagle in #444
- docs: document virtual_deps and resolutions by @alexeagle in #448
- Don't bake env into binary by @keith in #464
- Add env_inherit to py_test by @keith in #459
- feat: add ability to pass user flags to python interpreter by @muravev-vasilii in #442
- chore(deps): update dependency bazel_skylib to v1.7.1 by @renovate in #472
- ci(pre-commit): Autoupdate by @hofbi in #474
- fix: Compatibility with symbolic macros by @dzbarsky in #488
- pytest - add suite name to junit.xml report by @vinnybod in #486
- chore: update bcr maintainer info by @kormide in #489
- Update release.yml by @alexeagle in #490
New Contributors
- @keith made their first contribution in #464
- @muravev-vasilii made their first contribution in #442
- @vinnybod made their first contribution in #486
- @kormide made their first contribution in #489
Full Changelog: v1.0.0...v1.1.0
v1.0.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "1.0.0")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "2ce48e0f3eaaf73204b623f99f23d45690b862a994b5b3c2464a2e361b0fc4ae",
strip_prefix = "rules_py-1.0.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.0.0/rules_py-v1.0.0.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- fix: include default layer groups. by @thesayyn in #410
- fix: Handle single-file module pypi-deps in py_pex_binary by @ekfeet in #392
- fix: split on site-packages path segment when reporting conflicts by @mattem in #413
- chore: bump bazel to 7.4.0 by @mattem in #416
- chore: test on Bazel 8 rather than Bazel 6 by @alexeagle in #421
- chore: run CI for all pull requests by @mattem in #419
- chore: bump rules_rust to 0.53.0 by @mattem in #417
- chore: trigger PRs on synchronize by @mattem in #422
- chore: bump rust version to 1.81.0 by @mattem in #418
- feat: drop rattler_installs_packages for uv crates by @mattem in #412
- chore: disable broken test by @alexeagle in #429
- Add types to file generated by test.py by @antspy in #428
- fix: flip unused_inputs=1 by default by @thesayyn in #432
New Contributors
Full Changelog: v0.9.1...v1.0.0
v1.0.0-rc1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "1.0.0-rc1")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "6be8d57082ee3e89cf0d97055ba8388d8618f00fd86e86cc597d8a91824fb7d4",
strip_prefix = "rules_py-1.0.0-rc1",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.0.0-rc1/rules_py-v1.0.0-rc1.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- fix: split on site-packages path segment when reporting conflicts by @mattem in #413
- chore: bump bazel to 7.4.0 by @mattem in #416
- chore: test on Bazel 8 rather than Bazel 6 by @alexeagle in #421
- chore: run CI for all pull requests by @mattem in #419
- chore: bump rules_rust to 0.53.0 by @mattem in #417
- chore: trigger PRs on synchronize by @mattem in #422
- chore: bump rust version to 1.81.0 by @mattem in #418
- feat: drop rattler_installs_packages for uv crates by @mattem in #412
- chore: disable broken test by @alexeagle in #429
Full Changelog: v1.0.0-rc0...v1.0.0-rc1
v1.0.0-rc0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "1.0.0-rc0")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "bea028cfac6d963e92b6dee1ca84898be058dea0f986b2bffc9cde03f36330fb",
strip_prefix = "rules_py-1.0.0-rc0",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.0.0-rc0/rules_py-v1.0.0-rc0.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- fix: include default layer groups. by @thesayyn in #410
- fix: Handle single-file module pypi-deps in py_pex_binary by @ekfeet in #392
New Contributors
Full Changelog: v0.9.1...v1.0.0-rc0
v0.9.1
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "0.9.1")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "a032348de4508b94d30a13bce39d24e9170036ad2a16911127409b9dae7d453c",
strip_prefix = "rules_py-0.9.1",
url = "https://github.com/aspect-build/rules_py/releases/download/v0.9.1/rules_py-v0.9.1.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- chore: bazel-lib 2.0 fixes the missing newline in hashes by @alexeagle in #403
Full Changelog: v0.9.0...v0.9.1
v0.8.2
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "0.8.2")
And also register a Python toolchain, see rules_python. For example:
# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
configure_coverage_tool = True,
python_version = "3.11",
)
Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "f5ee6605d01dfc962e3f257595dfdcf9e3526e60562fc31f3fbc405d9ff0c42d",
strip_prefix = "rules_py-0.8.2",
url = "https://github.com/aspect-build/rules_py/releases/download/v0.8.2/rules_py-v0.8.2.tar.gz",
)
# Fetches the rules_py dependencies.
# If you want to have a different version of some dependency,
# you should fetch it *before* calling this.
# Alternatively, you can skip calling this function, so long as you've
# already fetched all the dependencies.
load("@aspect_rules_py//py:repositories.bzl", "rules_py_dependencies")
rules_py_dependencies()
load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")
rules_py_toolchains()
# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
python_register_toolchains(
name = "python_toolchain",
python_version = "3.9",
)
py_repositories()
What's Changed
- refactor: py_venv macro improved defaults for usability by @alexeagle in #396
- example: Bump versions in uv example by @hofbi in #374
- chore(deps): update dependency org_chromium_sysroot_linux_x86_64 to v0.0.20 by @renovate in #387
- chore(deps): update dependency org_chromium_sysroot_linux_arm64 to v0.0.20 by @renovate in #386
- chore(BCR): drop Bazel 6 testing by @alexeagle in #397
- chore(release): no longer creating prereleases by @alexeagle in #398
- fix: add missing python version flag attr to pex by @mattem in #399
New Contributors
Full Changelog: v0.8.0...v0.8.2