Commit ae99b14
authored
chore(deps): update dependency aspect_rules_py to v1 (#112)
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| [aspect_rules_py](https://docs.aspect.build/rules/aspect_rules_py)
([source](https://redirect.github.com/aspect-build/rules_py)) |
bazel_dep | major | `0.7.3` -> `1.6.6` |
---
### Release Notes
<details>
<summary>aspect-build/rules_py (aspect_rules_py)</summary>
###
[`v1.6.6`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.6.6)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.6.6")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "54ce31edca66e48bf4d683904940b40c1977b14e0b3393f4caf06d2c19230b8a",
strip_prefix = "rules_py-1.6.6",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.6/rules_py-v1.6.6.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: switch to bzl\_library that checks docs by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​655](https://redirect.github.com/aspect-build/rules_py/pull/655)
- tweak(py\_venv): Don't modifying shell flags in `activate` by
[@​jgsogo](https://redirect.github.com/jgsogo) in
[#​669](https://redirect.github.com/aspect-build/rules_py/pull/669)
- chore: remove generated docs by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​673](https://redirect.github.com/aspect-build/rules_py/pull/673)
- feat: publish stardocs on releases by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​672](https://redirect.github.com/aspect-build/rules_py/pull/672)
- fix(ci): Allow cancelling slow pre-commit job by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​674](https://redirect.github.com/aspect-build/rules_py/pull/674)
- chore(ci): Move subrepo e2e tests to workflows by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​675](https://redirect.github.com/aspect-build/rules_py/pull/675)
#### New Contributors
- [@​jgsogo](https://redirect.github.com/jgsogo) made their first
contribution in
[#​669](https://redirect.github.com/aspect-build/rules_py/pull/669)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.6.5...v1.6.6>
###
[`v1.6.5`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.6.5)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.6.5")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "6aabfc2c2f3b6a8ad80e4dfc251cfae872417134c1982396b1fce77dc518a62c",
strip_prefix = "rules_py-1.6.5",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.5/rules_py-v1.6.5.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: Support --incompatible\_disable\_native\_repo\_rules by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​659](https://redirect.github.com/aspect-build/rules_py/pull/659)
- chore: remove BCR homepage, as we now use the BCR UI itself by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​660](https://redirect.github.com/aspect-build/rules_py/pull/660)
- chore(deps): update ubuntu:latest docker digest to
[`66460d5`](https://redirect.github.com/aspect-build/rules_py/commit/66460d5)
by [@​renovate](https://redirect.github.com/renovate)\[bot] in
[#​663](https://redirect.github.com/aspect-build/rules_py/pull/663)
- chore: Add tests covering the version transition by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​661](https://redirect.github.com/aspect-build/rules_py/pull/661)
- fix(venv): Don't use dirs as the interpreter by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​665](https://redirect.github.com/aspect-build/rules_py/pull/665)
- chore(deps): Bump tools\_telemetry by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​667](https://redirect.github.com/aspect-build/rules_py/pull/667)
- fix(py\_venv): Partially resolve PYTHONHOME by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​668](https://redirect.github.com/aspect-build/rules_py/pull/668)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.6.4...v1.6.5>
###
[`v1.6.4`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.6.4)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.6.4")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "6db8959662f743d9c31b6ed4c71df5b6d047407007c5256e70d56105ff487ff9",
strip_prefix = "rules_py-1.6.4",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.4/rules_py-v1.6.4.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: don't use version 0.0.0 by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​626](https://redirect.github.com/aspect-build/rules_py/pull/626)
- feat(py\_venv): activate-less interpreter by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​629](https://redirect.github.com/aspect-build/rules_py/pull/629)
- fix(pytest): Correct starlark deps by
[@​mgred](https://redirect.github.com/mgred) in
[#​637](https://redirect.github.com/aspect-build/rules_py/pull/637)
- feat(py\_venv): Replace untennable copying with symlinks by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​644](https://redirect.github.com/aspect-build/rules_py/pull/644)
- Fix bug in `py_venv` when using non runfiles python interpreter by
[@​kriscfoster](https://redirect.github.com/kriscfoster) in
[#​653](https://redirect.github.com/aspect-build/rules_py/pull/653)
- Implement env/env\_inherit semantics for
py\_venv\_binary/py\_venv\_test by
[@​plobsing](https://redirect.github.com/plobsing) in
[#​616](https://redirect.github.com/aspect-build/rules_py/pull/616)
- chore(rules\_rust): Use compile\_data by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​656](https://redirect.github.com/aspect-build/rules_py/pull/656)
- chore(py\_venv): Cherry pick in tests from
[#​635](https://redirect.github.com/aspect-build/rules_py/issues/635)
by [@​arrdem](https://redirect.github.com/arrdem) in
[#​657](https://redirect.github.com/aspect-build/rules_py/pull/657)
- chore(ci): Automate pre-commit runs by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​585](https://redirect.github.com/aspect-build/rules_py/pull/585)
- fix(py\_venv): Carefully resolve executable name to identify runfiles
by [@​arrdem](https://redirect.github.com/arrdem) in
[#​654](https://redirect.github.com/aspect-build/rules_py/pull/654)
- feat(pex): support building PEX archives to inherit from the sys.path
by [@​plobsing](https://redirect.github.com/plobsing) in
[#​619](https://redirect.github.com/aspect-build/rules_py/pull/619)
- fix(module): Avoid subrepo use by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​658](https://redirect.github.com/aspect-build/rules_py/pull/658)
#### New Contributors
- [@​mgred](https://redirect.github.com/mgred) made their first
contribution in
[#​637](https://redirect.github.com/aspect-build/rules_py/pull/637)
- [@​kriscfoster](https://redirect.github.com/kriscfoster) made
their first contribution in
[#​653](https://redirect.github.com/aspect-build/rules_py/pull/653)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.6.3...v1.6.4>
###
[`v1.6.3`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.6.3)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.6.3")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "c0bdd4a562a40b1931a373dfa3999e8aafdb2cfc25dcd641934a9164f3cd3431",
strip_prefix = "rules_py-1.6.3",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.3/rules_py-v1.6.3.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(pypex): spill to a param file for PyPex when necessary by
[@​plobsing](https://redirect.github.com/plobsing) in
[#​617](https://redirect.github.com/aspect-build/rules_py/pull/617)
- chore(deps): Bump tools\_telemetry by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​624](https://redirect.github.com/aspect-build/rules_py/pull/624)
#### New Contributors
- [@​plobsing](https://redirect.github.com/plobsing) made their
first contribution in
[#​617](https://redirect.github.com/aspect-build/rules_py/pull/617)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.6.2...v1.6.3>
###
[`v1.6.2`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.6.2)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.6.2")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "48a64cabfda973015e9bc3874c1296fd89320088fe3b706aefffbeafdd95953b",
strip_prefix = "rules_py-1.6.2",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.2/rules_py-v1.6.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
- fix(venv\_link): Correct name argument by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​601](https://redirect.github.com/aspect-build/rules_py/pull/601)
- Add language regarding telemetry to the README by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​614](https://redirect.github.com/aspect-build/rules_py/pull/614)
- Fix debug logging in release by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​613](https://redirect.github.com/aspect-build/rules_py/pull/613)
- chore(deps): Bump tools\_telemetry by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​623](https://redirect.github.com/aspect-build/rules_py/pull/623)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.6.1...v1.6.2>
###
[`v1.6.1`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.6.1)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.6.1")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "75214e4cec5c372a18f3cb53d517050c3245fe19d47dd46eeb2329c030a272f3",
strip_prefix = "rules_py-1.6.1",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.1/rules_py-v1.6.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(venv\_link): Repair venv link munging by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​599](https://redirect.github.com/aspect-build/rules_py/pull/599)
- feat(telemetry): Integrate tools\_telemetry by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​612](https://redirect.github.com/aspect-build/rules_py/pull/612)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.6.0...v1.6.1>
###
[`v1.6.0`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.6.0)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.6.0")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "5d271622647b3f7b5fee0e9f079ae06d89c3840a116c81af0b5aa9978df858bc",
strip_prefix = "rules_py-1.6.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.0/rules_py-v1.6.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\_venv): Activate embedded interpreters by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​576](https://redirect.github.com/aspect-build/rules_py/pull/576)
- fix(py\_venv): Implement collision handling by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​578](https://redirect.github.com/aspect-build/rules_py/pull/578)
- chore(deps): update dependency gitdb to v4.0.12 by
[@​renovate](https://redirect.github.com/renovate) in
[#​574](https://redirect.github.com/aspect-build/rules_py/pull/574)
- Disable typing in `py/private/pytest.py.tmpl` by
[@​Synss](https://redirect.github.com/Synss) in
[#​577](https://redirect.github.com/aspect-build/rules_py/pull/577)
- Turn off the dashboard issue by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​583](https://redirect.github.com/aspect-build/rules_py/pull/583)
- chore(deps): update ubuntu:latest docker digest to
[`b59d215`](https://redirect.github.com/aspect-build/rules_py/commit/b59d215)
by [@​renovate](https://redirect.github.com/renovate) in
[#​586](https://redirect.github.com/aspect-build/rules_py/pull/586)
- fix(py\_venv): Repair runfiles-relative venv roots by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​579](https://redirect.github.com/aspect-build/rules_py/pull/579)
- tweak(pre-commit): Automate manifest updates by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​584](https://redirect.github.com/aspect-build/rules_py/pull/584)
- fix(venv): Use the interpreter to abspath by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​590](https://redirect.github.com/aspect-build/rules_py/pull/590)
#### New Contributors
- [@​Synss](https://redirect.github.com/Synss) made their first
contribution in
[#​577](https://redirect.github.com/aspect-build/rules_py/pull/577)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.5.2...v1.6.0>
###
[`v1.5.2`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.5.2)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.5.2")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "8dfa4b68154aad31534fb0e7006a8ab4056b2d05bff623c90f86fc6b1a218ee2",
strip_prefix = "rules_py-1.5.2",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.5.2/rules_py-v1.5.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
- fix(py\_venv): Need venv in the exec config by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​571](https://redirect.github.com/aspect-build/rules_py/pull/571)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.5.1...v1.5.2>
###
[`v1.5.1`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.5.1)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.5.1")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "7761547b62bb682db7211f897a2f4fe131ad2abd6129550910edcc31706b1029",
strip_prefix = "rules_py-1.5.1",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.5.1/rules_py-v1.5.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(deps): upgrade publish-to-bcr by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​563](https://redirect.github.com/aspect-build/rules_py/pull/563)
- fix(shim): Apply path canonicalization by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​565](https://redirect.github.com/aspect-build/rules_py/pull/565)
- tweak: Automate docs updates by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​557](https://redirect.github.com/aspect-build/rules_py/pull/557)
- fix(release): Configure the interpreter shim via a prebuilt toolchain
by [@​arrdem](https://redirect.github.com/arrdem) in
[#​568](https://redirect.github.com/aspect-build/rules_py/pull/568)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.5.0...v1.5.1>
###
[`v1.5.0`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.5.0)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.5.0")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "cc3397982ee767d269ad28cc7731923ecc9d94eee1c78b9807e1630022e46f8a",
strip_prefix = "rules_py-1.5.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.5.0/rules_py-v1.5.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: pass through publish token from release workflow by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​559](https://redirect.github.com/aspect-build/rules_py/pull/559)
- Add CcInfo to allowed providers of py\_library deps. by
[@​lgulich](https://redirect.github.com/lgulich) in
[#​550](https://redirect.github.com/aspect-build/rules_py/pull/550)
- chore: update BCR publish to latest release by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​560](https://redirect.github.com/aspect-build/rules_py/pull/560)
- feat(venv): Static site-packages trees by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​551](https://redirect.github.com/aspect-build/rules_py/pull/551)
- chore(release): Add shim tool by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​562](https://redirect.github.com/aspect-build/rules_py/pull/562)
#### New Contributors
- [@​lgulich](https://redirect.github.com/lgulich) made their
first contribution in
[#​550](https://redirect.github.com/aspect-build/rules_py/pull/550)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.4.0...v1.5.0>
###
[`v1.4.0`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.4.0)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.4.0")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "8e9a1f00e4ba5696f9e93a770a6c1de863544cce489df91809fc3a4027ccfddc",
strip_prefix = "rules_py-1.4.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.4.0/rules_py-v1.4.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
- feat(venv): Create a relocatable venv shim by
[@​arrdem](https://redirect.github.com/arrdem) in
[#​546](https://redirect.github.com/aspect-build/rules_py/pull/546)
- Fix exec\_properties for py\_test by
[@​keith](https://redirect.github.com/keith) in
[#​529](https://redirect.github.com/aspect-build/rules_py/pull/529)
- chore: ensure we don't compile protoc by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​554](https://redirect.github.com/aspect-build/rules_py/pull/554)
- feature(py\_image\_layer): Adding Support for Custom Group for Py
Image Layer by
[@​ajrpeggio](https://redirect.github.com/ajrpeggio) in
[#​556](https://redirect.github.com/aspect-build/rules_py/pull/556)
#### New Contributors
- [@​arrdem](https://redirect.github.com/arrdem) made their first
contribution in
[#​546](https://redirect.github.com/aspect-build/rules_py/pull/546)
- [@​ajrpeggio](https://redirect.github.com/ajrpeggio) made their
first contribution in
[#​556](https://redirect.github.com/aspect-build/rules_py/pull/556)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.3.4...v1.4.0>
###
[`v1.3.4`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.3.4)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.3.4")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "b05d462aaa0e86add00a7e180263d8b48f1e6c1ce10f653bbebfa52102fa2f69",
strip_prefix = "rules_py-1.3.4",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.3.4/rules_py-v1.3.4.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: add missing maintainers by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​552](https://redirect.github.com/aspect-build/rules_py/pull/552)
- chore: switch to upstream release workflow by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​553](https://redirect.github.com/aspect-build/rules_py/pull/553)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.3.3...v1.3.4>
###
[`v1.3.3`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.3.3)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.3.3")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "bdcc05267a44ba9276f5a5ba9eb8931ed9c646bdd84334b09acabfa15f89c406",
strip_prefix = "rules_py-1.3.3",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.3.3/rules_py-v1.3.3.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
- feat: port pytest\_test macro by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​401](https://redirect.github.com/aspect-build/rules_py/pull/401)
- chore: demonstrate py\_binary stamping by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​532](https://redirect.github.com/aspect-build/rules_py/pull/532)
- Fix bash runfiles with rules\_shell by
[@​keith](https://redirect.github.com/keith) in
[#​536](https://redirect.github.com/aspect-build/rules_py/pull/536)
- Add data to py\_venv rule by
[@​keith](https://redirect.github.com/keith) in
[#​534](https://redirect.github.com/aspect-build/rules_py/pull/534)
- Add an owner arg to py\_image\_layer by
[@​vinnybod](https://redirect.github.com/vinnybod) in
[#​545](https://redirect.github.com/aspect-build/rules_py/pull/545)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.3.2...v1.3.3>
###
[`v1.3.2`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.3.2)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.3.2")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
load("@​bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "c07a82ea093189cd0fd682db2bb8f64e59ebe8834c756753514ee504e6090fac",
strip_prefix = "rules_py-1.3.2",
url = "https://github.com/aspect-build/rules_py/releases/download/v1.3.2/rules_py-v1.3.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
- fix: workaround absolute paths appearing in coverage data by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​524](https://redirect.github.com/aspect-build/rules_py/pull/524)
- chore(release): upgrade Ubuntu by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​528](https://redirect.github.com/aspect-build/rules_py/pull/528)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.3.1...v1.3.2>
###
[`v1.3.1`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.3.1)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.3.1")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
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](https://redirect.github.com/alexeagle) in
[#​521](https://redirect.github.com/aspect-build/rules_py/pull/521)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.3.0...v1.3.1>
###
[`v1.3.0`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.3.0)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.3.0")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
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](https://redirect.github.com/alexeagle) in
[#​509](https://redirect.github.com/aspect-build/rules_py/pull/509)
- chore: clarify that the coverage report isn't for the whole repo by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​511](https://redirect.github.com/aspect-build/rules_py/pull/511)
- refactor: remove rules\_docker dependency by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​512](https://redirect.github.com/aspect-build/rules_py/pull/512)
- Update README.md by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​510](https://redirect.github.com/aspect-build/rules_py/pull/510)
- pytest test sharding by
[@​vinnybod](https://redirect.github.com/vinnybod) in
[#​493](https://redirect.github.com/aspect-build/rules_py/pull/493)
- fix(coverage): produce combined coverage report by
[@​dizzy57](https://redirect.github.com/dizzy57) in
[#​520](https://redirect.github.com/aspect-build/rules_py/pull/520)
- fix: write **init** shim for pip runfiles helper by
[@​thesayyn](https://redirect.github.com/thesayyn) in
[#​519](https://redirect.github.com/aspect-build/rules_py/pull/519)
#### New Contributors
- [@​dizzy57](https://redirect.github.com/dizzy57) made their
first contribution in
[#​520](https://redirect.github.com/aspect-build/rules_py/pull/520)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.2.1...v1.3.0>
###
[`v1.2.1`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.2.1)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.2.1")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
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](https://redirect.github.com/hofbi) in
[#​501](https://redirect.github.com/aspect-build/rules_py/pull/501)
- fix(ci): assert that patches apply exactly by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​508](https://redirect.github.com/aspect-build/rules_py/pull/508)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.2.0...v1.2.1>
###
[`v1.2.0`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.2.0)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.2.0")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
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](https://redirect.github.com/keith) in
[#​485](https://redirect.github.com/aspect-build/rules_py/pull/485)
- fix: propagate `target_compatible_with` to `_py_env` when creating a …
by [@​RoyShulman](https://redirect.github.com/RoyShulman) in
[#​438](https://redirect.github.com/aspect-build/rules_py/pull/438)
- chore: test on Bazel 8.0.0 by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​478](https://redirect.github.com/aspect-build/rules_py/pull/478)
- fix: make py\_binary#resolutions and py\_test#resolutions identical.
by [@​njlr](https://redirect.github.com/njlr) in
[#​487](https://redirect.github.com/aspect-build/rules_py/pull/487)
- refactor(ci): re-enable testing against prior release artifacts by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​496](https://redirect.github.com/aspect-build/rules_py/pull/496)
- Fix py\_image\_layers tar options by
[@​betaboon](https://redirect.github.com/betaboon) in
[#​494](https://redirect.github.com/aspect-build/rules_py/pull/494)
- feat: add coverage output to py\_pytest\_main by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​492](https://redirect.github.com/aspect-build/rules_py/pull/492)
- chore(deps): update dependency aspect\_bazel\_lib to v2.10.0 by
[@​renovate](https://redirect.github.com/renovate) in
[#​482](https://redirect.github.com/aspect-build/rules_py/pull/482)
- chore: Autoformat with buildifier by
[@​hofbi](https://redirect.github.com/hofbi) in
[#​480](https://redirect.github.com/aspect-build/rules_py/pull/480)
- docs/example-pytest-fixtures by
[@​njlr](https://redirect.github.com/njlr) in
[#​452](https://redirect.github.com/aspect-build/rules_py/pull/452)
- ci: Add pre-commit GitHub action by
[@​hofbi](https://redirect.github.com/hofbi) in
[#​500](https://redirect.github.com/aspect-build/rules_py/pull/500)
- chore: gitignore node\_modules folder by
[@​hofbi](https://redirect.github.com/hofbi) in
[#​499](https://redirect.github.com/aspect-build/rules_py/pull/499)
- docs: fix example of py\_image\_layer by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​491](https://redirect.github.com/aspect-build/rules_py/pull/491)
- chore: report the coverage from the e2e/use\_release test by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​498](https://redirect.github.com/aspect-build/rules_py/pull/498)
- chore: build on aspect workflows by
[@​kormide](https://redirect.github.com/kormide) in
[#​505](https://redirect.github.com/aspect-build/rules_py/pull/505)
- chore: Add typos pre-commit hook by
[@​hofbi](https://redirect.github.com/hofbi) in
[#​503](https://redirect.github.com/aspect-build/rules_py/pull/503)
#### New Contributors
- [@​RoyShulman](https://redirect.github.com/RoyShulman) made
their first contribution in
[#​438](https://redirect.github.com/aspect-build/rules_py/pull/438)
- [@​njlr](https://redirect.github.com/njlr) made their first
contribution in
[#​487](https://redirect.github.com/aspect-build/rules_py/pull/487)
- [@​betaboon](https://redirect.github.com/betaboon) made their
first contribution in
[#​494](https://redirect.github.com/aspect-build/rules_py/pull/494)
**Full Changelog**:
<https://github.com/aspect-build/rules_py/compare/v1.1.0...v1.2.0>
###
[`v1.1.0`](https://redirect.github.com/aspect-build/rules_py/releases/tag/v1.1.0)
#### Using [Bzlmod] with Bazel 6:
Add to your `MODULE.bazel` file:
```starlark
bazel_dep(name = "aspect_rules_py", version = "1.1.0")
```
And also register a Python toolchain, see rules\_python. For example:
```starlark
### 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",
)
```
[Bzlmod]: https://bazel.build/build/bzlmod
#### Using WORKSPACE
```starlark
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](https://redirect.github.com/mattem) in
[#​435](https://redirect.github.com/aspect-build/rules_py/pull/435)
- Add backwards compatible types to file generated by **test**.py by
[@​hofbi](https://redirect.github.com/hofbi) in
[#​441](https://redirect.github.com/aspect-build/rules_py/pull/441)
- example: Add example for pybind11 by
[@​hofbi](https://redirect.github.com/hofbi) in
[#​375](https://redirect.github.com/aspect-build/rules_py/pull/375)
- chore: downstream
<https://github.com/bazel-contrib/rules-template/pul…> by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​445](https://redirect.github.com/aspect-build/rules_py/pull/445)
- Revert "example: Add example for pybind11" by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​444](https://redirect.github.com/aspect-build/rules_py/pull/444)
- docs: document virtual\_deps and resolutions by
[@​alexeagle](https://redirect.github.com/alexeagle) in
[#​448](https://redirect.github.com/aspect-build/rules_py/pull/448)
- Don't bake env into binary by
[@​keith](https://redirect.github.com/keith) in
[#​464](https://redirect.github.com/aspect-build/rules_py/pull/464)
- Add env\_inherit to py\_t
</details>
---
### 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.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/aspect-build/rules_aws).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS43MS4xIiwidXBkYXRlZEluVmVyIjoiNDEuMTU2LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent cacd22a commit ae99b14
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
0 commit comments