Skip to content

v2.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 19:51
· 15 commits to main since this release
b1b69a5

rules_pycross 2.2.0 adds per-repo @<repo>//_variants string flags, caching and configuration-deduplication improvements, and sdist build fixes on top of 2.1.0; no configuration changes are needed. See the CHANGELOG for details.

Highlights

  • Per-repo @<repo>//_variants string flag: repos with uv conflict variants now expose a string_flag accepting comma-separated variant names (e.g. extra_cu124,group_test), enabling per-target config_settings transitions with rules_python.
  • Automatic single-variant selection and isolation: uv repos that request a single item of a conflict set now select it automatically (matching uv sync --extra ...), and _variants flags no longer leak into transitioned repos.
  • Better caching across configurations and output bases: variant-independent packages are installed once across repo configurations, wheel install and extraction actions opt into Bazel path mapping (supports-path-mapping), and pycross_sdist_repo marks itself reproducible for Bazel's repo contents cache.
  • Sdist build & venv fixes: preserves toolchain ARFLAGS (fixing setuptools build_clib builds), fixes Meson longdouble_format on macOS x86_64, defaults SOURCE_DATE_EPOCH=315532800 and PYTHONHASHSEED=0, collects Windows .lib static and import libraries in native_deps, and fixes packages missing from the venv under venvs_site_packages=yes when reached through two configurations.

Using Bzlmod:

Add to your MODULE.bazel file:

bazel_dep(name = "rules_pycross", version = "2.2.0")

Maturin backend (optional):

bazel_dep(name = "rules_pycross_backend_maturin", version = "2.2.0")

SHA-256: c6306dd77b74c3b007fbc3bb7a2c34054212e0cf2920df456616dfea94c9d2da

What's Changed

  • feat: include Windows .lib files in CC layer extraction by @dimatcimbal in #389
  • feat(uv): select a repo's only requested conflict item by @jvolkman in #390
  • fix: keep packages in the venv when reached through two configurations by @jvolkman in #392
  • fix(uv): stop _variants flags leaking into transitioned repos by @jvolkman in #393
  • Mark sdist repos as reproducible by @alexander-scott in #394
  • perf(uv): install variant-independent packages once across configurations by @jvolkman in #395
  • fix(sdist): watch pre_build_patches and unpinned sdists for repo cache by @jvolkman in #398
  • perf: enable path mapping for wheel install and extract actions by @jvolkman in #399
  • feat(uv): add per-repo @//_variants string_flag by @jvolkman in #400
  • fix(build): preserve ARFLAGS, fix darwin x86_64 longdouble_format, and set reproducibility defaults by @jvolkman in #402
  • docs: prepare CHANGELOG for 2.2.0 by @jvolkman in #403

Full Changelog: v2.1.0...v2.2.0