Skip to content

Automatically update minimum allowed versions of core dependencies - #3048

Open
namurphy wants to merge 21 commits into
PlasmaPy:mainfrom
namurphy:nox-session-spec0
Open

namurphy wants to merge 21 commits into
PlasmaPy:mainfrom
namurphy:nox-session-spec0

Conversation

@namurphy

@namurphy namurphy commented Jul 4, 2025

Copy link
Copy Markdown
Member

This 🐰🕳️🐉 PR is an attempt to automate updating pyproject.toml to follow the recommendations in SPEC 0 via a Nox session.

I typically update PlasmaPy's requirements to follow SPEC 0 recommendations shortly before or soon after a release. This is moderately annoying to do since it adds a ∼20 minute manual step to our release process.

The implementation was made significantly easier because a lot of the needed functionality was provided by pyproject_parser, dep_logic, nep29, and uv. I'm considering how useful it would be to create a standalone Python package that automates SPEC 0 updates, since probably a bunch of other package maintainers would find it useful.

The implementation is kind of a mess so far, but the holiday weekend awaits!

@github-actions github-actions Bot added python Pull requests that update Python code nox Related to the nox automation software run comprehensive tests Add this label to run comprehensive tests in CI labels Jul 4, 2025
@codecov

codecov Bot commented Jul 4, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.71%. Comparing base (3ab83bd) to head (7c58a3d).
⚠️ Report is 151 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3048   +/-   ##
=======================================
  Coverage   94.71%   94.71%           
=======================================
  Files         108      108           
  Lines        9868     9868           
  Branches     1501     1501           
=======================================
  Hits         9346     9346           
  Misses        325      325           
  Partials      197      197           

☔ 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.

@namurphy namurphy removed the run comprehensive tests Add this label to run comprehensive tests in CI label Jul 5, 2025
@github-actions github-actions Bot added the run comprehensive tests Add this label to run comprehensive tests in CI label Jul 5, 2025
@namurphy namurphy changed the title [PROTO] Add a Nox session to automate updating requirements to follow the SPEC 0 recommendation Automatically update minimum allowed versions of core dependencies Aug 1, 2025
@github-actions github-actions Bot added the maintenance General updates to package infrastructure label Aug 1, 2025
@namurphy
namurphy marked this pull request as ready for review August 1, 2025 23:55
@namurphy
namurphy requested a review from a team as a code owner August 1, 2025 23:55
@namurphy
namurphy requested review from ejohnson-96 and removed request for a team August 1, 2025 23:55
@namurphy
namurphy removed the request for review from ejohnson-96 August 1, 2025 23:55
@namurphy namurphy removed the run comprehensive tests Add this label to run comprehensive tests in CI label Aug 1, 2025
@github-actions github-actions Bot added the run comprehensive tests Add this label to run comprehensive tests in CI label Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance General updates to package infrastructure nox Related to the nox automation software python Pull requests that update Python code run comprehensive tests Add this label to run comprehensive tests in CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant