Skip to content

1.0.0-rc1

Pre-release
Pre-release
Compare
Choose a tag to compare
@aignas aignas released this 26 Nov 00:12
· 68 commits to main since this release
077eec6

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-rc1")

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 = "cf2654855fbd8690344d3e4181a1b22608f950a98e5b5368505397942eda611b",
    strip_prefix = "rules_python-1.0.0-rc1",
    url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0-rc1/rules_python-1.0.0-rc1.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 = "cf2654855fbd8690344d3e4181a1b22608f950a98e5b5368505397942eda611b",
    strip_prefix = "rules_python-1.0.0-rc1/gazelle",
    url = "https://github.com/bazelbuild/rules_python/releases/download/1.0.0-rc1/rules_python-1.0.0-rc1.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

  • tests: make some tests compatible with Bazel 9 fix various tests relying on Bazel builtin providers existing by @rickeylev in #2433
  • refactor(pypi): move config setting processing to the macro by @aignas in #2424
  • chore: rename the dev-only setup files to more clearly self-describe what they are by @rickeylev in #2436
  • fix: correctly obtain relative path required for the venv created by --bootstrap_impl=script by @chowder in #2439
  • fix: Propagate common kwargs to sphinx_run by @tpudlik in #2442
  • fix: upgrade to bazel_features 1.21.0 for Bazel 8 rc3 support by @rickeylev in #2440

Full Changelog: 1.0.0-rc0...1.0.0-rc1