0.24.0
BREAKING CHANGES
Users of this Gazelle extension must upgrade to Gazelle v0.30.0 or above.
Using Bzlmod with Bazel 6
NOTE: bzlmod support is still beta; APIs are settling down but some are still subject to change
Add to your MODULE.bazel
file:
bazel_dep(name = "rules_python", version = "0.24.0")
pip = use_extension("@rules_python//python:extensions.bzl", "pip")
pip.parse(
name = "pip",
requirements_lock = "//:requirements_lock.txt",
)
use_repo(pip, "pip")
Using WORKSPACE
Paste this snippet into your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python",
sha256 = "0a8003b044294d7840ac7d9d73eef05d6ceb682d7516781a4ec62eeb34702578",
strip_prefix = "rules_python-0.24.0",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.24.0/rules_python-0.24.0.tar.gz",
)
load("@rules_python//python:repositories.bzl", "py_repositories")
py_repositories()
Gazelle plugin
Paste this snippet into your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_python_gazelle_plugin",
sha256 = "0a8003b044294d7840ac7d9d73eef05d6ceb682d7516781a4ec62eeb34702578",
strip_prefix = "rules_python-0.24.0/gazelle",
url = "https://github.com/bazelbuild/rules_python/releases/download/0.24.0/rules_python-0.24.0.tar.gz",
)
# To compile the rules_python gazelle extension from source,
# we must fetch some third-party go dependencies that it uses.
load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps")
_py_gazelle_deps()
What's Changed
- fix: Ignore tempoary pyc.NNN files in wheels by @rickeylev in #1266
- fix(bzlmod): Fixing Windows Python Interpreter symlink issues by @chrislovecnm in #1265
- feat(bzlmod)!: Calling pip multiple times allowing for multiple Python versions by @chrislovecnm in #1254
- fix(py_wheel.publish): allow twine tags and args by @alexeagle in #1271
- feat(py_wheel): Add support for specifying Description-Content-Type and Summary in METADATA by @sfc-gh-zpeng in #1274
- feat(py_wheel): Add support for specifying Project-URL in METADATA by @sfc-gh-wzhao in #1276
- test: basic analysis tests for py_wheel by @rickeylev in #1279
- fix: plugin_output in py_proto_library rule by @comius in #1280
- cleanup: Typos, doc, and formatting cleanup in pip extension et al by @rickeylev in #1275
- feat: Upgrading gazelle and rules_go by @chrislovecnm in #1283
- tests: make analysis tests support --incompatible_enable_cc_toolchain_resolution by @comius in #1281
- feat!: using Gazelle's lifecycle manager to manage external processes by @linzhp in #1284
- fix(toolchain): restrict coverage tool visibility under bzlmod by @aignas in #1252
- fix: add
format()
calls toglob_exclude
templates by @lpulley in #1285 - feat: Expose Python C headers through the toolchain. by @rickeylev in #1287
- feat(bzlmod): Implementing wheel annotations via whl_mods by @chrislovecnm in #1278
- feat(gazelle): support multiple requirements files in manifest generation by @aignas in #1301
- feat: Add setting generate_hashes for requirements by @vonschultz in #1290
- feat(bzlmod): Use a common constant for detecting bzlmod being enabled by @chrislovecnm in #1302
- fix(bzlmod)!: Changing repository name "python_aliases" to "python_versions" by @chrislovecnm in #1304
- feat(bzlmod): Allow bzlmod pip.parse to reference the default python toolchain and interpreter by @chrislovecnm in #1303
- feat: Create
all_data_requirements
alias by @kevinpark1217 in #1292 - chore: Bump rules_testing to 0.4.0 from 0.0.5 by @rickeylev in #1306
- cleanup(tests): Use new APIs in rules_testing 0.4.0 by @rickeylev in #1307
New Contributors
- @sfc-gh-zpeng made their first contribution in #1274
- @sfc-gh-wzhao made their first contribution in #1276
- @vonschultz made their first contribution in #1290
- @kevinpark1217 made their first contribution in #1292
Full Changelog: 0.23.1...0.24.0