1.0.0-rc0
Pre-release
Pre-release
For more detailed setup instructions, see https://rules-python.readthedocs.io/en/latest/getting-started.html
Using Bzlmod
Add to your MODULE.bazel
file:
bazel_dep(name = "rules_python", version = "1.0.0-rc0")
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
pip.parse(
hub_name = "pip",
python_version = "3.11",
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 = "10efbf3b700a041190e3d7a782d80508296d46c618908e40ffa26f443cc3d15b",
strip_prefix = "rules_python-1.0.0-rc0",
url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0-rc0/rules_python-1.0.0-rc0.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 = "10efbf3b700a041190e3d7a782d80508296d46c618908e40ffa26f443cc3d15b",
strip_prefix = "rules_python-1.0.0-rc0/gazelle",
url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0-rc0/rules_python-1.0.0-rc0.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
- docs: fix refs to precompile source retention flag/attr in precompiling docs by @rickeylev in #2419
- refactor: Add GAZELLE_VERBOSE env and log parser failures by @dougthor42 in #2420
- refactor(toolchain): use bazel to extract
zstd
archives by @aignas in #2412 - refactor!(toolchain): remove uname dep in the repository_rule stage by @aignas in #2406
- fix(pypi): handle multiple versions of the same package when parsing requirements files by @ewianda in #2377
- fix(uv): Fix sha256 for uv binary for aarch64-apple-darwin by @schultetwin in #2422
- feat(musl): add musl toolchain by @aignas in #2402
- chore: extra code removals before 1.0 by @aignas in #2421
- feat(pypi): Add extra_hub_aliases to pip_repository too by @gholms in #2426
- chore!(pip.parse): remove parse_all_requirements_files attribute by @aignas in #2407
- chore(gazelle): Rename GAZELLE_VERBOSE env var; use idiomatic go; add comments by @dougthor42 in #2428
- fix: make sys.executable work with script bootstrap by @rickeylev in #2409
- tests: make workspace CI jobs enable workspace mode by @comius in #2435
- fix: use com_google_protobuf in WORKSPACE by @comius in #2432
- chore: add dougthor42 as one of the gazelle owners by @aignas in #2427
- ci: rm the lock file testing by @aignas in #2430
New Contributors
- @schultetwin made their first contribution in #2422
- @gholms made their first contribution in #2426
Full Changelog: 0.40.0...1.0.0-rc0