v0.4.0
Pre-release
Pre-release
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel file:
bazel_dep(name = "aspect_rules_py", version = "0.4.0")And also register a Python toolchain, see rules_python. For example:
bazel_dep(name = "rules_python", dev_dependency = True, version = "0.22.0")
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
name = "python3_9",
configure_coverage_tool = True,
python_version = "3.9",
)
use_repo(python, "python3_9_toolchains")
register_toolchains(
"@python3_9_toolchains//:all",
)Using WORKSPACE
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "50b4b43491cdfc13238c29cb159b7ccacf0a1e54bd27b65ff2d5fac69af4d46f",
strip_prefix = "rules_py-0.4.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v0.4.0/rules_py-v0.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()What's Changed
- chore(deps): update io_bazel_rules_docker digest to 8e70c6b by @renovate in #148
- chore(deps): update dependency bazel_gazelle to v0.32.0 by @renovate in #156
- chore(deps): update dependency aspect_bazel_lib to v1.33.0 by @renovate in #144
- chore: update .gitignore by @mattem in #166
- chore(deps): update aspect_gcc_toolchain digest to 4bd1f94 by @renovate in #145
- chore: bump Python dependencies by @mattem in #167
- Allow passing deps in py_pytest_main by @linzhp in #163
- fix: ensure coverage providers are output from both py_library and py_binary rules by @mattem in #168
- chore: update sqlparse by @mattem in #169
- chore: bump bazel version to 6.3.1 by @mattem in #170
- chore(deps): update aspect_gcc_toolchain digest to 70a8c93 by @renovate in #171
- chore(deps): update dependency bazel to v6.3.2 by @renovate in #177
- fix: use rlocation for interpreter location by @mattem in #182
- chore(deps): update dependency rules_python to v0.18.0 by @renovate in #134
- chore: update Python dependencies by @mattem in #183
- chore(deps): update dependency bazel_skylib to v1.4.2 by @renovate in #135
- chore(deps): update dependency io_bazel_rules_go to v0.41.0 by @renovate in #178
- feat: expose py_venv rule, allowing creation of virtual envs from multiple targets by @mattem in #181
- chore: skip examples in release artifact by @alexeagle in #185
- Update readme by @alexeagle in #186
- Add
testonlyanddataparameters topy_pytest_mainrule by @kpark-hrp in #190 - chore: run pre-commit on all files by @alexeagle in #199
- docs: update README by @alexeagle in #197
- chore: update rules_python by @mattem in #200
- chore: dogfood our rules rather than rules_python by @alexeagle in #204
- docs: improve generated documentation by @alexeagle in #203
- chore: use modern helper from bazel-lib by @alexeagle in #207
New Contributors
- @linzhp made their first contribution in #163
- @kpark-hrp made their first contribution in #190
Full Changelog: v0.3.0...v0.4.0