Skip to content

Commit ae99b14

Browse files
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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;655](https://redirect.github.com/aspect-build/rules_py/pull/655) - tweak(py\_venv): Don't modifying shell flags in `activate` by [@&#8203;jgsogo](https://redirect.github.com/jgsogo) in [#&#8203;669](https://redirect.github.com/aspect-build/rules_py/pull/669) - chore: remove generated docs by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;673](https://redirect.github.com/aspect-build/rules_py/pull/673) - feat: publish stardocs on releases by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;672](https://redirect.github.com/aspect-build/rules_py/pull/672) - fix(ci): Allow cancelling slow pre-commit job by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;674](https://redirect.github.com/aspect-build/rules_py/pull/674) - chore(ci): Move subrepo e2e tests to workflows by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;675](https://redirect.github.com/aspect-build/rules_py/pull/675) #### New Contributors - [@&#8203;jgsogo](https://redirect.github.com/jgsogo) made their first contribution in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;659](https://redirect.github.com/aspect-build/rules_py/pull/659) - chore: remove BCR homepage, as we now use the BCR UI itself by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;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 [@&#8203;renovate](https://redirect.github.com/renovate)\[bot] in [#&#8203;663](https://redirect.github.com/aspect-build/rules_py/pull/663) - chore: Add tests covering the version transition by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;661](https://redirect.github.com/aspect-build/rules_py/pull/661) - fix(venv): Don't use dirs as the interpreter by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;665](https://redirect.github.com/aspect-build/rules_py/pull/665) - chore(deps): Bump tools\_telemetry by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;667](https://redirect.github.com/aspect-build/rules_py/pull/667) - fix(py\_venv): Partially resolve PYTHONHOME by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;626](https://redirect.github.com/aspect-build/rules_py/pull/626) - feat(py\_venv): activate-less interpreter by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;629](https://redirect.github.com/aspect-build/rules_py/pull/629) - fix(pytest): Correct starlark deps by [@&#8203;mgred](https://redirect.github.com/mgred) in [#&#8203;637](https://redirect.github.com/aspect-build/rules_py/pull/637) - feat(py\_venv): Replace untennable copying with symlinks by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;644](https://redirect.github.com/aspect-build/rules_py/pull/644) - Fix bug in `py_venv` when using non runfiles python interpreter by [@&#8203;kriscfoster](https://redirect.github.com/kriscfoster) in [#&#8203;653](https://redirect.github.com/aspect-build/rules_py/pull/653) - Implement env/env\_inherit semantics for py\_venv\_binary/py\_venv\_test by [@&#8203;plobsing](https://redirect.github.com/plobsing) in [#&#8203;616](https://redirect.github.com/aspect-build/rules_py/pull/616) - chore(rules\_rust): Use compile\_data by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;656](https://redirect.github.com/aspect-build/rules_py/pull/656) - chore(py\_venv): Cherry pick in tests from [#&#8203;635](https://redirect.github.com/aspect-build/rules_py/issues/635) by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;657](https://redirect.github.com/aspect-build/rules_py/pull/657) - chore(ci): Automate pre-commit runs by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;585](https://redirect.github.com/aspect-build/rules_py/pull/585) - fix(py\_venv): Carefully resolve executable name to identify runfiles by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;654](https://redirect.github.com/aspect-build/rules_py/pull/654) - feat(pex): support building PEX archives to inherit from the sys.path by [@&#8203;plobsing](https://redirect.github.com/plobsing) in [#&#8203;619](https://redirect.github.com/aspect-build/rules_py/pull/619) - fix(module): Avoid subrepo use by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;658](https://redirect.github.com/aspect-build/rules_py/pull/658) #### New Contributors - [@&#8203;mgred](https://redirect.github.com/mgred) made their first contribution in [#&#8203;637](https://redirect.github.com/aspect-build/rules_py/pull/637) - [@&#8203;kriscfoster](https://redirect.github.com/kriscfoster) made their first contribution in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;plobsing](https://redirect.github.com/plobsing) in [#&#8203;617](https://redirect.github.com/aspect-build/rules_py/pull/617) - chore(deps): Bump tools\_telemetry by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;624](https://redirect.github.com/aspect-build/rules_py/pull/624) #### New Contributors - [@&#8203;plobsing](https://redirect.github.com/plobsing) made their first contribution in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;601](https://redirect.github.com/aspect-build/rules_py/pull/601) - Add language regarding telemetry to the README by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;614](https://redirect.github.com/aspect-build/rules_py/pull/614) - Fix debug logging in release by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;613](https://redirect.github.com/aspect-build/rules_py/pull/613) - chore(deps): Bump tools\_telemetry by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;599](https://redirect.github.com/aspect-build/rules_py/pull/599) - feat(telemetry): Integrate tools\_telemetry by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;576](https://redirect.github.com/aspect-build/rules_py/pull/576) - fix(py\_venv): Implement collision handling by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;578](https://redirect.github.com/aspect-build/rules_py/pull/578) - chore(deps): update dependency gitdb to v4.0.12 by [@&#8203;renovate](https://redirect.github.com/renovate) in [#&#8203;574](https://redirect.github.com/aspect-build/rules_py/pull/574) - Disable typing in `py/private/pytest.py.tmpl` by [@&#8203;Synss](https://redirect.github.com/Synss) in [#&#8203;577](https://redirect.github.com/aspect-build/rules_py/pull/577) - Turn off the dashboard issue by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;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 [@&#8203;renovate](https://redirect.github.com/renovate) in [#&#8203;586](https://redirect.github.com/aspect-build/rules_py/pull/586) - fix(py\_venv): Repair runfiles-relative venv roots by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;579](https://redirect.github.com/aspect-build/rules_py/pull/579) - tweak(pre-commit): Automate manifest updates by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;584](https://redirect.github.com/aspect-build/rules_py/pull/584) - fix(venv): Use the interpreter to abspath by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;590](https://redirect.github.com/aspect-build/rules_py/pull/590) #### New Contributors - [@&#8203;Synss](https://redirect.github.com/Synss) made their first contribution in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;563](https://redirect.github.com/aspect-build/rules_py/pull/563) - fix(shim): Apply path canonicalization by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;565](https://redirect.github.com/aspect-build/rules_py/pull/565) - tweak: Automate docs updates by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;557](https://redirect.github.com/aspect-build/rules_py/pull/557) - fix(release): Configure the interpreter shim via a prebuilt toolchain by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;559](https://redirect.github.com/aspect-build/rules_py/pull/559) - Add CcInfo to allowed providers of py\_library deps. by [@&#8203;lgulich](https://redirect.github.com/lgulich) in [#&#8203;550](https://redirect.github.com/aspect-build/rules_py/pull/550) - chore: update BCR publish to latest release by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;560](https://redirect.github.com/aspect-build/rules_py/pull/560) - feat(venv): Static site-packages trees by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;551](https://redirect.github.com/aspect-build/rules_py/pull/551) - chore(release): Add shim tool by [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;562](https://redirect.github.com/aspect-build/rules_py/pull/562) #### New Contributors - [@&#8203;lgulich](https://redirect.github.com/lgulich) made their first contribution in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;arrdem](https://redirect.github.com/arrdem) in [#&#8203;546](https://redirect.github.com/aspect-build/rules_py/pull/546) - Fix exec\_properties for py\_test by [@&#8203;keith](https://redirect.github.com/keith) in [#&#8203;529](https://redirect.github.com/aspect-build/rules_py/pull/529) - chore: ensure we don't compile protoc by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;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 [@&#8203;ajrpeggio](https://redirect.github.com/ajrpeggio) in [#&#8203;556](https://redirect.github.com/aspect-build/rules_py/pull/556) #### New Contributors - [@&#8203;arrdem](https://redirect.github.com/arrdem) made their first contribution in [#&#8203;546](https://redirect.github.com/aspect-build/rules_py/pull/546) - [@&#8203;ajrpeggio](https://redirect.github.com/ajrpeggio) made their first contribution in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;552](https://redirect.github.com/aspect-build/rules_py/pull/552) - chore: switch to upstream release workflow by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;401](https://redirect.github.com/aspect-build/rules_py/pull/401) - chore: demonstrate py\_binary stamping by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;532](https://redirect.github.com/aspect-build/rules_py/pull/532) - Fix bash runfiles with rules\_shell by [@&#8203;keith](https://redirect.github.com/keith) in [#&#8203;536](https://redirect.github.com/aspect-build/rules_py/pull/536) - Add data to py\_venv rule by [@&#8203;keith](https://redirect.github.com/keith) in [#&#8203;534](https://redirect.github.com/aspect-build/rules_py/pull/534) - Add an owner arg to py\_image\_layer by [@&#8203;vinnybod](https://redirect.github.com/vinnybod) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;524](https://redirect.github.com/aspect-build/rules_py/pull/524) - chore(release): upgrade Ubuntu by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;509](https://redirect.github.com/aspect-build/rules_py/pull/509) - chore: clarify that the coverage report isn't for the whole repo by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;511](https://redirect.github.com/aspect-build/rules_py/pull/511) - refactor: remove rules\_docker dependency by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;512](https://redirect.github.com/aspect-build/rules_py/pull/512) - Update README.md by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;510](https://redirect.github.com/aspect-build/rules_py/pull/510) - pytest test sharding by [@&#8203;vinnybod](https://redirect.github.com/vinnybod) in [#&#8203;493](https://redirect.github.com/aspect-build/rules_py/pull/493) - fix(coverage): produce combined coverage report by [@&#8203;dizzy57](https://redirect.github.com/dizzy57) in [#&#8203;520](https://redirect.github.com/aspect-build/rules_py/pull/520) - fix: write **init** shim for pip runfiles helper by [@&#8203;thesayyn](https://redirect.github.com/thesayyn) in [#&#8203;519](https://redirect.github.com/aspect-build/rules_py/pull/519) #### New Contributors - [@&#8203;dizzy57](https://redirect.github.com/dizzy57) made their first contribution in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;hofbi](https://redirect.github.com/hofbi) in [#&#8203;501](https://redirect.github.com/aspect-build/rules_py/pull/501) - fix(ci): assert that patches apply exactly by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True) python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;keith](https://redirect.github.com/keith) in [#&#8203;485](https://redirect.github.com/aspect-build/rules_py/pull/485) - fix: propagate `target_compatible_with` to `_py_env` when creating a … by [@&#8203;RoyShulman](https://redirect.github.com/RoyShulman) in [#&#8203;438](https://redirect.github.com/aspect-build/rules_py/pull/438) - chore: test on Bazel 8.0.0 by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;478](https://redirect.github.com/aspect-build/rules_py/pull/478) - fix: make py\_binary#resolutions and py\_test#resolutions identical. by [@&#8203;njlr](https://redirect.github.com/njlr) in [#&#8203;487](https://redirect.github.com/aspect-build/rules_py/pull/487) - refactor(ci): re-enable testing against prior release artifacts by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;496](https://redirect.github.com/aspect-build/rules_py/pull/496) - Fix py\_image\_layers tar options by [@&#8203;betaboon](https://redirect.github.com/betaboon) in [#&#8203;494](https://redirect.github.com/aspect-build/rules_py/pull/494) - feat: add coverage output to py\_pytest\_main by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;492](https://redirect.github.com/aspect-build/rules_py/pull/492) - chore(deps): update dependency aspect\_bazel\_lib to v2.10.0 by [@&#8203;renovate](https://redirect.github.com/renovate) in [#&#8203;482](https://redirect.github.com/aspect-build/rules_py/pull/482) - chore: Autoformat with buildifier by [@&#8203;hofbi](https://redirect.github.com/hofbi) in [#&#8203;480](https://redirect.github.com/aspect-build/rules_py/pull/480) - docs/example-pytest-fixtures by [@&#8203;njlr](https://redirect.github.com/njlr) in [#&#8203;452](https://redirect.github.com/aspect-build/rules_py/pull/452) - ci: Add pre-commit GitHub action by [@&#8203;hofbi](https://redirect.github.com/hofbi) in [#&#8203;500](https://redirect.github.com/aspect-build/rules_py/pull/500) - chore: gitignore node\_modules folder by [@&#8203;hofbi](https://redirect.github.com/hofbi) in [#&#8203;499](https://redirect.github.com/aspect-build/rules_py/pull/499) - docs: fix example of py\_image\_layer by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;491](https://redirect.github.com/aspect-build/rules_py/pull/491) - chore: report the coverage from the e2e/use\_release test by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;498](https://redirect.github.com/aspect-build/rules_py/pull/498) - chore: build on aspect workflows by [@&#8203;kormide](https://redirect.github.com/kormide) in [#&#8203;505](https://redirect.github.com/aspect-build/rules_py/pull/505) - chore: Add typos pre-commit hook by [@&#8203;hofbi](https://redirect.github.com/hofbi) in [#&#8203;503](https://redirect.github.com/aspect-build/rules_py/pull/503) #### New Contributors - [@&#8203;RoyShulman](https://redirect.github.com/RoyShulman) made their first contribution in [#&#8203;438](https://redirect.github.com/aspect-build/rules_py/pull/438) - [@&#8203;njlr](https://redirect.github.com/njlr) made their first contribution in [#&#8203;487](https://redirect.github.com/aspect-build/rules_py/pull/487) - [@&#8203;betaboon](https://redirect.github.com/betaboon) made their first contribution in [#&#8203;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 @&#8203;mattem in #&#8203;1671 bazel_dep(name = "rules_python", dev_dependency = True, version = "0.29.0") python = use_extension("@&#8203;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("@&#8203;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("@&#8203;aspect_rules_py//py:repositories.bzl", "rules_py_dependencies") rules_py_dependencies() load("@&#8203;aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains") rules_py_toolchains() ### "Installation" for rules_python load("@&#8203;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 [@&#8203;mattem](https://redirect.github.com/mattem) in [#&#8203;435](https://redirect.github.com/aspect-build/rules_py/pull/435) - Add backwards compatible types to file generated by **test**.py by [@&#8203;hofbi](https://redirect.github.com/hofbi) in [#&#8203;441](https://redirect.github.com/aspect-build/rules_py/pull/441) - example: Add example for pybind11 by [@&#8203;hofbi](https://redirect.github.com/hofbi) in [#&#8203;375](https://redirect.github.com/aspect-build/rules_py/pull/375) - chore: downstream <https://github.com/bazel-contrib/rules-template/pul…> by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;445](https://redirect.github.com/aspect-build/rules_py/pull/445) - Revert "example: Add example for pybind11" by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;444](https://redirect.github.com/aspect-build/rules_py/pull/444) - docs: document virtual\_deps and resolutions by [@&#8203;alexeagle](https://redirect.github.com/alexeagle) in [#&#8203;448](https://redirect.github.com/aspect-build/rules_py/pull/448) - Don't bake env into binary by [@&#8203;keith](https://redirect.github.com/keith) in [#&#8203;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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bazel_dep(name = "rules_oci", version = "1.7.4")
1515
bazel_dep(name = "rules_python", version = "0.29.0")
1616

1717
# Development dependencies which are not exposed to users
18-
bazel_dep(name = "aspect_rules_py", version = "0.7.3", dev_dependency = True)
18+
bazel_dep(name = "aspect_rules_py", version = "1.6.6", dev_dependency = True)
1919
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
2020
bazel_dep(name = "container_structure_test", version = "1.16.0", dev_dependency = True)
2121

0 commit comments

Comments
 (0)