Skip to content

Install climate-ref from PyPI#40

Merged
lewisjared merged 1 commit into
mainfrom
chore/loosen-climate-ref-pin
Jul 16, 2026
Merged

Install climate-ref from PyPI#40
lewisjared merged 1 commit into
mainfrom
chore/loosen-climate-ref-pin

Conversation

@lewisjared

@lewisjared lewisjared commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Removes the git-tag source for climate-ref from the backend, because v0.16 is now published to PyPI. The >=0.16.0,<0.17 constraint is unchanged.

  • Drops the [tool.uv.sources] entry for climate-ref in backend/pyproject.toml.
  • Relocks so climate-ref 0.16.2 and its provider packages resolve from PyPI.
  • Migrates the committed test database, because 0.16.2 adds a level dimension to cv_cmip7_aft.yaml and the fixture predates it. This is the same in-place alembic migration that scripts/update-test-data.sh performs.

Summary by CodeRabbit

  • Chores

    • Updated backend installation to use the published climate-ref v0.16 package from PyPI.
  • Documentation

    • Added a changelog entry documenting the updated package source.

v0.16 is now published, so the git-tag source is no longer needed.
The lock resolves climate-ref 0.16.2, which adds a level dimension
to the CMIP7 AFT CV, so the committed test database is migrated to match.
@netlify

netlify Bot commented Jul 16, 2026

Copy link
Copy Markdown

Deploy Preview for climate-ref canceled.

Name Link
🔨 Latest commit 8726cd2
🔍 Latest deploy log https://app.netlify.com/projects/climate-ref/deploys/6a58e990fc0482000853bebc

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7605ae48-7e38-4de2-9234-67e365e1629b

📥 Commits

Reviewing files that changed from the base of the PR and between 695bb6d and 8726cd2.

⛔ Files ignored due to path filters (2)
  • backend/tests/test-data/tests.integration.test_cmip7_aft/test_solve_cmip7_aft/db/climate_ref.db is excluded by !**/*.db
  • backend/uv.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • backend/pyproject.toml
  • changelog/40.trivial.md
💤 Files with no reviewable changes (1)
  • backend/pyproject.toml

📝 Walkthrough

Walkthrough

The backend now installs climate-ref from PyPI instead of a git tag, and the change is documented in the trivial changelog.

Changes

Climate-ref package sourcing

Layer / File(s) Summary
Use PyPI climate-ref package
backend/pyproject.toml, changelog/40.trivial.md
Removes the git-based uv source override for climate-ref and records the switch to the published v0.16 package on PyPI.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly states the main change: switching climate-ref installation to PyPI.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/loosen-climate-ref-pin

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

lewisjared added a commit that referenced this pull request Jul 16, 2026
Replaces the fixture with a fresh full-provider solve run locally, on top of
the 0.16.2 pin from #40. The DB is migrated to 0.16.2 head (a4c5d6e7f8b9) and
loads UP_TO_DATE.

- pmp now has 5 successful executions (was 0)
- esmvaltool 16 successful; ilamb 1 (gpp-fluxnet2015) — most ILAMB diagnostics
  need reference datasets absent from the decimated sample-data after the
  obs4MIPs/obs4REF rework
- pruned for git (~17M, was ~26M): dropped the two heavy regional-historical
  esmvaltool diagnostics (DB rows + results) and all .nc outputs; VACUUMed

Constraint: fixture must stay small enough to commit to git
Not-tested: ref-app backend suite locally (relies on PR CI against 0.16.2)
@lewisjared
lewisjared merged commit f2813e7 into main Jul 16, 2026
9 checks passed
lewisjared added a commit that referenced this pull request Jul 16, 2026
Replaces the fixture with a fresh full-provider solve run locally, on top of
the 0.16.2 pin from #40. The DB is migrated to 0.16.2 head (a4c5d6e7f8b9) and
loads UP_TO_DATE.

- pmp now has 5 successful executions (was 0)
- esmvaltool 16 successful; ilamb 1 (gpp-fluxnet2015) — most ILAMB diagnostics
  need reference datasets absent from the decimated sample-data after the
  obs4MIPs/obs4REF rework
- pruned for git (~17M, was ~26M): dropped the two heavy regional-historical
  esmvaltool diagnostics (DB rows + results) and all .nc outputs; VACUUMed

Constraint: fixture must stay small enough to commit to git
Not-tested: ref-app backend suite locally (relies on PR CI against 0.16.2)
lewisjared added a commit that referenced this pull request Jul 16, 2026
Replaces the fixture with a fresh full-provider solve run locally, on top of
the 0.16.2 pin from #40. The DB is migrated to 0.16.2 head (a4c5d6e7f8b9) and
loads UP_TO_DATE.

- pmp now has 5 successful executions (was 0)
- esmvaltool 16 successful; ilamb 1 (gpp-fluxnet2015) — most ILAMB diagnostics
  need reference datasets absent from the decimated sample-data after the
  obs4MIPs/obs4REF rework
- pruned for git (~17M, was ~26M): dropped the two heavy regional-historical
  esmvaltool diagnostics (DB rows + results) and all .nc outputs; VACUUMed

Constraint: fixture must stay small enough to commit to git
Not-tested: ref-app backend suite locally (relies on PR CI against 0.16.2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant