Skip to content

Add next_breaking_uv_version function#1483

Merged
nathanjmcdougall merged 2 commits intomainfrom
copilot/create-function-next-breaking-version
Mar 25, 2026
Merged

Add next_breaking_uv_version function#1483
nathanjmcdougall merged 2 commits intomainfrom
copilot/create-function-next-breaking-version

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 24, 2026

Adds a utility to compute the next semver-breaking version from a uv version string, for use in #1469.

  • src/usethis/_backend/uv/version.py: New next_breaking_uv_version(version: str) -> str using packaging.version.Version for parsing
  • tests/usethis/_backend/uv/test_version.py: Tests covering pre-1.0 and post-1.0 cases
>>> next_breaking_uv_version("0.10.2")
"0.11.0"
>>> next_breaking_uv_version("1.0.2")
"2.0.0"

Semver rules: major ≥ 1 bumps major; major = 0 bumps minor.

Original prompt

This section details on the original issue you should resolve

<issue_title>Create a function to take a uv version and find the next breaking version</issue_title>
<issue_description>This will be for #1469

basically semver
0.10.2 -> 0.11.0

1.0.2 -> 2.0.0</issue_description>

Comments on the Issue (you are @copilot in this section)


🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI changed the title [WIP] Add function to find next breaking version for semver Add next_breaking_uv_version function Mar 24, 2026
Copilot AI requested a review from nathanjmcdougall March 24, 2026 04:18
@nathanjmcdougall nathanjmcdougall marked this pull request as ready for review March 24, 2026 23:18
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 24, 2026

Merging this PR will not alter performance

✅ 2 untouched benchmarks


Comparing copilot/create-function-next-breaking-version (e1cb979) with main (b0505d5)

Open in CodSpeed

@nathanjmcdougall nathanjmcdougall merged commit 16a2b2b into main Mar 25, 2026
20 checks passed
@nathanjmcdougall nathanjmcdougall deleted the copilot/create-function-next-breaking-version branch March 25, 2026 00:01
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.

Create a function to take a uv version and find the next breaking version

2 participants