Skip to content

Releases: aspect-build/rules_py

v1.6.4-rc2

24 Sep 00:16
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.4-rc2")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "b34cb7579470e2440cdbff63f19402fc5dcc86b29469b4e22d8f36a81ffd96b2",
    strip_prefix = "rules_py-1.6.4-rc2",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.4-rc2/rules_py-v1.6.4-rc2.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix: don't use version 0.0.0 by @alexeagle in #626
  • feat(py_venv): activate-less interpreter by @arrdem in #629
  • fix(pytest): Correct starlark deps by @mgred in #637
  • fix(py_venv): Switch to symlinks for huge efficiency improvements

New Contributors

Full Changelog: v1.6.3...v1.6.4-rc2

v1.6.4-rc1

09 Sep 16:54
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.4-rc1")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "e04710b92be447e1e66550baace85dbbef685c274c6286e9b69c9a6c59690288",
    strip_prefix = "rules_py-1.6.4-rc1",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.4-rc1/rules_py-v1.6.4-rc1.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

Full Changelog: v1.6.3...v1.6.4-rc1

v1.6.3

15 Aug 20:31
b0f6a0a
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.3")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "c0bdd4a562a40b1931a373dfa3999e8aafdb2cfc25dcd641934a9164f3cd3431",
    strip_prefix = "rules_py-1.6.3",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.3/rules_py-v1.6.3.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix(pypex): spill to a param file for PyPex when necessary by @plobsing in #617
  • chore(deps): Bump tools_telemetry by @arrdem in #624

New Contributors

Full Changelog: v1.6.2...v1.6.3

v1.6.2

14 Aug 03:12
88716fa
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.2")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "48a64cabfda973015e9bc3874c1296fd89320088fe3b706aefffbeafdd95953b",
    strip_prefix = "rules_py-1.6.2",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.2/rules_py-v1.6.2.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix(venv_link): Correct name argument by @arrdem in #601
  • Add language regarding telemetry to the README by @arrdem in #614
  • Fix debug logging in release by @arrdem in #613
  • chore(deps): Bump tools_telemetry by @arrdem in #623

Full Changelog: v1.6.1...v1.6.2

v1.6.1

24 Jul 04:47
e5168aa
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.1")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "75214e4cec5c372a18f3cb53d517050c3245fe19d47dd46eeb2329c030a272f3",
    strip_prefix = "rules_py-1.6.1",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.1/rules_py-v1.6.1.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix(venv_link): Repair venv link munging by @arrdem in #599
  • feat(telemetry): Integrate tools_telemetry by @arrdem in #612

Full Changelog: v1.6.0...v1.6.1

v1.6.0

10 Jun 19:20
5f6c518
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.0")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "5d271622647b3f7b5fee0e9f079ae06d89c3840a116c81af0b5aa9978df858bc",
    strip_prefix = "rules_py-1.6.0",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.0/rules_py-v1.6.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix(py_venv): Activate embedded interpreters by @arrdem in #576
  • fix(py_venv): Implement collision handling by @arrdem in #578
  • chore(deps): update dependency gitdb to v4.0.12 by @renovate in #574
  • Disable typing in py/private/pytest.py.tmpl by @Synss in #577
  • Turn off the dashboard issue by @arrdem in #583
  • chore(deps): update ubuntu:latest docker digest to b59d215 by @renovate in #586
  • fix(py_venv): Repair runfiles-relative venv roots by @arrdem in #579
  • tweak(pre-commit): Automate manifest updates by @arrdem in #584
  • fix(venv): Use the interpreter to abspath by @arrdem in #590

New Contributors

Full Changelog: v1.5.2...v1.6.0

v1.6.0-rc0

09 Jun 22:17
5ea06cb
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.6.0-rc0")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "91aa96511d32cd92eb1406f07ab46e978f836bffa2a6bc997ea3a56620b01043",
    strip_prefix = "rules_py-1.6.0-rc0",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.6.0-rc0/rules_py-v1.6.0-rc0.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix(py_venv): Activate embedded interpreters by @arrdem in #576
  • fix(py_venv): Implement collision handling by @arrdem in #578
  • chore(deps): update dependency gitdb to v4.0.12 by @renovate in #574
  • Disable typing in py/private/pytest.py.tmpl by @Synss in #577
  • Turn off the dashboard issue by @arrdem in #583
  • chore(deps): update ubuntu:latest docker digest to b59d215 by @renovate in #586
  • fix(py_venv): Repair runfiles-relative venv roots by @arrdem in #579

New Contributors

Full Changelog: v1.5.2...v1.6.0-rc0

v1.5.2

31 May 05:01
65da8da
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.5.2")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "8dfa4b68154aad31534fb0e7006a8ab4056b2d05bff623c90f86fc6b1a218ee2",
    strip_prefix = "rules_py-1.5.2",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.5.2/rules_py-v1.5.2.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix(py_venv): Need venv in the exec config by @arrdem in #571

Full Changelog: v1.5.1...v1.5.2

v1.5.1

30 May 19:33
d13c4c2
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.5.1")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "7761547b62bb682db7211f897a2f4fe131ad2abd6129550910edcc31706b1029",
    strip_prefix = "rules_py-1.5.1",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.5.1/rules_py-v1.5.1.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • chore(deps): upgrade publish-to-bcr by @alexeagle in #563
  • fix(shim): Apply path canonicalization by @arrdem in #565
  • tweak: Automate docs updates by @arrdem in #557
  • fix(release): Configure the interpreter shim via a prebuilt toolchain by @arrdem in #568

Full Changelog: v1.5.0...v1.5.1

v1.5.0

28 May 19:27
3d7ea65
Compare
Choose a tag to compare

Using Bzlmod with Bazel 6:

Add to your MODULE.bazel file:

bazel_dep(name = "aspect_rules_py", version = "1.5.0")

And also register a Python toolchain, see rules_python. For example:

# Minimum version needs:
# feat: add interpreter_version_info to py_runtime by @mattem in #1671
bazel_dep(name = "rules_python", version = "0.29.0", dev_dependency = True)

python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
    configure_coverage_tool = True,
    python_version = "3.11",
)

Using WORKSPACE

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
    name = "aspect_rules_py",
    sha256 = "cc3397982ee767d269ad28cc7731923ecc9d94eee1c78b9807e1630022e46f8a",
    strip_prefix = "rules_py-1.5.0",
    url = "https://github.com/aspect-build/rules_py/releases/download/v1.5.0/rules_py-v1.5.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()

load("@aspect_rules_py//py:toolchains.bzl", "rules_py_toolchains")

rules_py_toolchains()

# "Installation" for rules_python
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

python_register_toolchains(
    name = "python_toolchain",
    python_version = "3.9",
)

py_repositories()

What's Changed

  • fix: pass through publish token from release workflow by @alexeagle in #559
  • Add CcInfo to allowed providers of py_library deps. by @lgulich in #550
  • chore: update BCR publish to latest release by @alexeagle in #560
  • feat(venv): Static site-packages trees by @arrdem in #551
  • chore(release): Add shim tool by @arrdem in #562

New Contributors

Full Changelog: v1.4.0...v1.5.0