Skip to content

build: keep crypt4gh 1.7 on Python 3.15 - #83

Merged
uniqueg merged 3 commits into
devfrom
build/72-crypt4gh-py315
Nov 15, 2026
Merged

uniqueg merged 3 commits into
devfrom
build/72-crypt4gh-py315

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Closes #82
Supersedes #72

Summary

Takes Dependabot's #72 (ast-grep-cli, coverage, ruff bumps) plus current dev, and sets the Python 3.15 crypt4gh line back to >=1.7,<1.8. crypt4gh 1.8.6 has no cp315 wheel and its sdist fails to build the bundled libsodium, which broke every Python 3.15 test job. Python versions below 3.15 keep crypt4gh 1.8.6. uv.lock re-locked.

Light lane: only a dependency pin and the lock file change; no reviewer subagents.

Verification

  • Python 3.15.0rc2: uv sync --frozen installs crypt4gh 1.7; pytest plugins: 347 passed
  • ruff check, ruff format --check: pass
  • Full CI matrix: see checks on this PR

🤖 Generated with Claude Code

Summary by Sourcery

Ensure Python 3.15 compatibility by pinning crypt4gh to the 1.7 release line and refreshing development dependencies.

Bug Fixes:

  • Keep crypt4gh below 1.8 on Python 3.15 so test environments can install successfully.

Enhancements:

  • Update development dependencies for ast-grep-cli, coverage, and Ruff.
  • Refresh the uv lockfile with the dependency updates.

dependabot Bot and others added 3 commits November 14, 2026 20:14
…y with 4 updates

Bumps the python-dependencies group with 4 updates in the / directory: [ast-grep-cli](https://github.com/ast-grep/ast-grep), [coverage](https://github.com/coveragepy/coveragepy), [crypt4gh](https://github.com/EGA-archive/crypt4gh) and [ruff](https://github.com/astral-sh/ruff).


Updates `ast-grep-cli` from 0.51.0 to 0.51.2
- [Release notes](https://github.com/ast-grep/ast-grep/releases)
- [Changelog](https://github.com/ast-grep/ast-grep/blob/main/CHANGELOG.md)
- [Commits](ast-grep/ast-grep@0.51.0...0.51.2)

Updates `coverage` from 7.17.0 to 7.17.2
- [Release notes](https://github.com/coveragepy/coveragepy/releases)
- [Changelog](https://github.com/coveragepy/coveragepy/blob/main/CHANGES.rst)
- [Commits](coveragepy/coveragepy@7.17.0...7.17.2)

Updates `crypt4gh` from 1.7 to 1.8.6
- [Release notes](https://github.com/EGA-archive/crypt4gh/releases)
- [Commits](EGA-archive/crypt4gh@v1.7...v1.8.6)

Updates `ruff` from 0.17.3 to 0.17.4
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.17.3...0.17.4)

---
updated-dependencies:
- dependency-name: ast-grep-cli
  dependency-version: 0.51.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-dependencies
- dependency-name: coverage
  dependency-version: 7.17.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-dependencies
- dependency-name: crypt4gh
  dependency-version: 1.8.6
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: python-dependencies
- dependency-name: ruff
  dependency-version: 0.17.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: python-dependencies
...

Signed-off-by: dependabot[bot] <[email protected]>
Dependabot raised the Python 3.15 crypt4gh pin to 1.8.6, which has
no cp315 wheel; its sdist fails to build the bundled libsodium, so
every Python 3.15 test job failed. Restore the 1.7 pin (pure Python).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Update the development dependency minimums for ast-grep-cli, coverage, and ruff.

  • pyproject.toml L25-26, L41

Lock files and vendored code

Re-lock the dependencies to reflect the dependency updates.

  • uv.lock L267-277, L887-1008, L3474-3494 (+2 small edits)

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b134cb0) to head (e453c3b).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev       #83   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           11        11           
  Lines         1001      1001           
  Branches       143       143           
=========================================
  Hits          1001      1001           
Flag Coverage Δ
foca-plugin-generic-example-noop 100.00% <ø> (ø)
foca-plugin-generic-routing-random 100.00% <ø> (ø)
foca-plugin-tes-data-crypt4gh 100.00% <ø> (ø)
foca-plugin-tes-routing-distance 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 15, 2026 21:46
@sourcery-ai

sourcery-ai Bot commented Nov 15, 2026

Copy link
Copy Markdown

Linked issues

Checked at commit e453c3b

#82 build: keep crypt4gh <1.8 on Python 3.15 · 2 of 3 met · 1 to check by hand

# Requirement Status Notes
1 Python 3.15 uses crypt4gh >=1.7,<1.8; other Python versions use 1.8.6 ✅ Met The dependency markers in pyproject.toml and the lockfile resolve 1.7 on Python 3.15 and 1.8.6 below 3.15.
2 The ast-grep-cli, coverage, and Ruff updates from #72 land ✅ Met pyproject.toml raises their minimum versions to 0.51.2, 7.17.2, and 0.17.4, respectively.
3 CI passes on all Python versions 👀 Check by hand (external system) Check the PR's CI results to confirm all Python-version matrix jobs pass.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path="pyproject.toml" line_range="41" />
<code_context>
     "pre-commit>=4.6",
     "pytest>=9.2.0",
-    "ruff>=0.17.3",
+    "ruff>=0.17.4",
 ]
 # Documentation (`mkdocs.yml`), built by Read the Docs (`.readthedocs.yaml`)
</code_context>
<issue_to_address>
**Local lint checks disagree with CI**

When a changed file is affected by a behavior difference between Ruff 0.17.3 and 0.17.4, the pre-commit Ruff hook and the per-package CI lint step use different Ruff versions, so they report different lint or formatting results and developers can see a local pass followed by a CI failure (or the reverse).

Update the Ruff pre-commit hook pin to match the version used by CI.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: pyproject.toml:41


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread pyproject.toml Resolved
@uniqueg
uniqueg merged commit 87e5878 into dev Nov 15, 2026
220 checks passed
@uniqueg
uniqueg deleted the build/72-crypt4gh-py315 branch November 15, 2026 21:54
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.

build: keep crypt4gh <1.8 on Python 3.15

1 participant