Releases: aspect-build/rules_py
Releases · aspect-build/rules_py
v0.3.0
Using Bzlmod with Bazel 6:
Add to your MODULE.bazel
file:
bazel_dep(name = "aspect_rules_py", version = "0.3.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 = "d87463035d7df79b79e9a03247c463bda3623f26b7a24dd1ebee9ced2be38f4e",
strip_prefix = "rules_py-0.3.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v0.3.0/rules_py-v0.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()
What's Changed
- chore: update django to resolve dependabot alert by @gregmagolan in #155
- chore: bzlmod by @alexeagle in #162
Full Changelog: v0.2.0...v0.3.0
v0.2.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "c977cadb8703e325f02c1e6a3718e85f52b158e199654b1a28125c420588d720",
strip_prefix = "rules_py-0.2.0",
url = "https://github.com/aspect-build/rules_py/releases/download/v0.2.0/rules_py-v0.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()
What's Changed
- Remove EXPERIMENTAL by @alexeagle in #115
- Clean up all symlinks in venv by @mvukov in #112
- chore(deps): update io_bazel_rules_docker digest to 48ad6d6 by @renovate in #108
- chore(deps): update dependency io_bazel_rules_go to v0.37.0 by @renovate in #107
- chore(deps): update dependency aspect_bazel_lib to v1.19.1 by @renovate in #106
- chore(deps): update aspect_gcc_toolchain digest to ac745d4 by @renovate in #80
- chore: update Python dependencies by @mattem in #118
- chore(deps): update dependency bazel to v5.4.0 by @renovate in #120
- chore(deps): bump rules_python to 0.16.1 by @mattem in #119
- fix black and flake8 errors in generated pytest runner. by @tellett in #129
- chore(deps): update dependency bazel_gazelle to v0.29.0 by @renovate in #128
- chore(deps): update dependency aspect_bazel_lib to v1.23.3 by @renovate in #122
- chore(deps): update io_bazel_rules_docker digest to e48c7cc by @renovate in #124
- chore(deps): update dependency rules_python to v0.16.2 by @renovate in #126
- chore(deps): update dependency pytest to v7.2.1 by @renovate in #127
- chore(deps): update dependency packaging to v23 by @renovate in #125
- chore(deps): update dependency iniconfig to v2 by @renovate in #123
- chore: add workflows for new issues & PRs by @gregmagolan in #140
- chore: remove New PR workflows as it doesn't work on forks by @gregmagolan in #141
- release: publish release artifact by @alexeagle in #142
- Fix/repo relative imports by @mvukov in #113
- chore(deps): update aspect_gcc_toolchain digest to 4a03b37 by @renovate in #138
- chore(deps): update dependency aspect_bazel_lib to v1.24.2 by @renovate in #137
- chore(deps): update dependency io_bazel_rules_go to v0.38.1 by @renovate in #133
- chore(deps): update io_bazel_rules_docker digest to fc729d8 by @renovate in #132
- chore(deps): update dependency django to v4.0.9 [security] by @renovate in #139
- chore: update renovate config by @gregmagolan in #146
New Contributors
- @mvukov made their first contribution in #112
- @tellett made their first contribution in #129
- @gregmagolan made their first contribution in #140
Full Changelog: v0.1.0...v0.2.0
v0.1.0
WORKSPACE snippet:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "aspect_rules_py",
sha256 = "66da30b09cf47ee40f2ae1c46346cc9a412940965d04899bd68d06a9d3380085",
strip_prefix = "rules_py-0.1.0",
url = "https://github.com/aspect-build/rules_py/archive/refs/tags/v0.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()
What's Changed
- feat: py_* rules in Starlark by @mattem in #10
- fix: ensure transitive wheels are passed from py_library by @mattem in #11
- feat: create venv in a separate action by @mattem in #12
- fix: don't pass kwargs to py_venv rule by @mattem in #16
- fix: ensure all Python toolchain files are added to runfiles by @mattem in #20
- fix: ensure VIRTUAL_ENV var is set correctly, unset PYTHONHOME if set by @mattem in #23
- fix: check for setuptools before creating symlinks by @mattem in #24
- feat: support interpreter_path from py3_toolchain by @mattem in #22
- fix: remove check on missing interpreter or interpreter_path on the toolchain by @mattem in #27
- feat: add autodetecting toolchain compatible with rules_py venvs by @mattem in #26
- fix: don't treat all transitive py_library rules as external by @mattem in #29
- chore: tidy and add django example by @mattem in #28
- test: import from external non-wheel py_library by @mattem in #30
- fix: typo autodecting -> autodetecting by @mattem in #34
- fix: workspace import pathing on py_library by @mattem in #32
- chore: bump bazel version to 5.1.1 by @mattem in #35
- fix: don't add source files to requirements files from transitive native py_library rules by @mattem in #36
- chore: rename BUILD to BUILD.bazel by @mattem in #38
- chore: show errors by default for failed tests by @mattem in #41
- chore: update rules_python to 0.8.1 by @mattem in #42
- chore: simplify default import attrs on macros by @mattem in #40
- fix: symlink to python3 instead of python_real by @mattem in #37
- chore: update aspect_bazel_lib to 0.12.1 by @mattem in #44
- fix: don't set sibling directory for venvs output directory by @mattem in #45
- fix: add the runfiles root as a python package by @mattem in #39
- feat: add support for variable and location expansion on
env
attr by @mattem in #47 - chore: add configuration for the Aspect gcc toolchain by @mattem in #43
- feat: return PyInfo provider from py_binary rules by @mattem in #48
- chore: update aspect_bazel_lib to 1.0.0 by @mattem in #49
- tests: adds first party dependencies to the container test, add note about usage by @mattem in #54
- Configure Renovate by @renovate in #50
- chore(deps): update actions/checkout action to v3 by @renovate in #59
- chore(deps): update actions/cache action to v3 by @renovate in #58
- chore(deps): update dependency asgiref to v3.5.2 by @renovate in #55
- refactor: remove use of maybe() helper by @alexeagle in #60
- chore: have less strict testing dependency constraints by @mattem in #61
- chore(deps): update aspect_gcc_toolchain digest to 2feb7ad by @renovate in #64
- chore(deps): update dependency io_bazel_rules_go to v0.33.0 by @renovate in #67
- chore(deps): update dependency bazel_skylib to v1.2.1 by @renovate in #66
- chore(deps): update build_bazel_integration_testing digest to 7d3e9ae by @renovate in #62
- chore(deps): update aspect_gcc_toolchain digest to b15575d by @renovate in #68
- chore(deps): update dependency colorama to v0.4.5 by @renovate in #69
- chore(deps): update io_bazel_rules_docker digest to ed321b3 by @renovate in #71
- chore(deps): update aspect_gcc_toolchain digest to efc23c5 by @renovate in #70
- Remove duplicated comment line in venv.bzl by @dzbarsky in #73
- chore(deps): update aspect_gcc_toolchain digest to 60ac9bb by @renovate in #74
- chore(deps): update dependency bazel to v5.2.0 by @renovate in #72
- chore(deps): update aspect_gcc_toolchain digest to 01f4347 by @renovate in #75
- chore(deps): update dependency bazel_gazelle to v0.26.0 by @renovate in #65
- chore(deps): update aspect_gcc_toolchain digest to 0e00070 by @renovate in #76
- chore(deps): update dependency io_bazel_rules_go to v0.34.0 by @renovate in #79
- chore(deps): update io_bazel_rules_docker digest to a8aff40 by @renovate in #78
- chore(deps): update dependency io_bazel_stardoc to v0.5.2 by @renovate in #63
- chore(deps): update dependency bazel to v5.3.0 by @renovate in #82
- chore(deps): update dependency aspect_bazel_lib to v1.13.0 by @renovate in #89
- chore(deps): update dependency bazel_skylib to v1.3.0 by @renovate in #92
- fix: dependabot alerts by @f0rmiga in #98
- feat: py_pytest_main by @f0rmiga in #96
- chore(deps): update dependency bazel to v5.3.2 by @renovate in #86
- chore(deps): update dependency io_bazel_rules_go to v0.35.0 by @renovate in #83
- fix: skylib download warning by @f0rmiga in #101
- chore(deps): update io_bazel_rules_docker digest to 88fb10b by @renovate in #81
- chore(deps): update dependency bazel_gazelle to v0.28.0 by @renovate in #84
- chore(deps): update dependency io_bazel_stardoc to v0.5.3 by @renovate in #91
- chore(deps): update dependency aspect_bazel_lib to v1.16.1 by @renovate in #99
- fix: generated docs by @f0rmiga in #102
- chore(deps): update io_bazel_rules_docker digest to 6482756 by @renovate in #103
- chore(deps): update dependency rules_python to v0.14.0 by @renovate in #90
- build: set container related targets as manual by @mattem in #105
New Contributors
- @mattem made their first contribution in #10
- @renovate made their first contribution in #50
- @alexeagle made their first contribution in #60
- @dzbarsky made their first contribution in #73
- @f0rmiga made their first contribution in #98
Full Changelog: https://github.com/aspect-build/rules_py/commits/v0.1.0