Skip to content

ci: Build the mir-python wheel without the mirlib pin - #124

Merged
mcocdawc merged 7 commits into
developfrom
ci/python-wheel
Nov 26, 2026
Merged

mcocdawc merged 7 commits into
developfrom
ci/python-wheel

Conversation

@mcocdawc

@mcocdawc mcocdawc commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Adds a mir-python CI package that builds the Cython bindings as a wheel against the CI-built mir, for Python 3.11–3.14, runs the bindings' pytest suite against it, and installs it into <prefix>/wheels, where Python consumers such as earthkit-data pick it up. Until now those consumers installed the PyPI mir-python, whose mirlib pin pulls in PyPI builds of mir, eckit, eccodes, and atlas next to the CI ones; that corrupted the heap in earthkit-data's CI. setup.py now requires mirlib only when VERSION_SUFFIX is set, which the PyPI build (wheelmaker's multirelease.sh) always does, so PyPI wheels are unchanged; the eckit requirement stays. The old python build leg, which only compiled the bindings inside the main build, is dropped with its preset and recipe. The tests import the eckit bindings, so mir-python depends on eckit's new eckit-python CI package; its CI can only go green once ecmwf/eckit#462 is merged. The Python tests get a conftest.py that puts the eckit::geo and mir caches in a temporary directory, as eckit's tests do, and skip the swisslv95 cases with eckit's projdb_is_available() when eckit is built without PROJ (the CI build is); the previous check built the grid, which succeeds without PROJ. Draft: it goes with ecmwf/eckit#462 and ecmwf/earthkit-data#1237, which consumes it; the bot regenerates the other workflows after merge.

🤖 Generated with Claude Code

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

mcocdawc and others added 3 commits November 26, 2026 00:05
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mcocdawc
mcocdawc marked this pull request as ready for review November 26, 2026 15:30
mcocdawc and others added 3 commits November 26, 2026 17:09
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mcocdawc mcocdawc added the downstream-ci-not-needed Deliberately skip the downstream fan-out label Nov 26, 2026
@mcocdawc
mcocdawc merged commit 31bb8d1 into develop Nov 26, 2026
18 checks passed
@mcocdawc
mcocdawc deleted the ci/python-wheel branch November 26, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

downstream-ci-not-needed Deliberately skip the downstream fan-out

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants