Update dependency semver to v3.1.0 #14
Loading…
Reference in a new issue
No description provided.
Delete branch "renovate/semver-3.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
==3.0.4→==3.1.0Release Notes
python-semver/python-semver (semver)
v3.1.0Compare Source
=============
:Released: 2026-09-12
:Maintainer: Tom Schraitle
Bug Fixes
:pr:
478:Version.parse()andVersion.is_valid()now reject non-ASCII digits andtrailing newlines, in accordance with the SemVer grammar. Optional minor and
patch parsing applies the same character restrictions.
:pr:
479: Comparing a :class:~semver.Versionwith adict,tuple, orlistthat cannot construct a valid version (for example, an empty collection, wrong number of parts, non-numeric parts, or unknown keys) no longer raises internal errors fromVersion.__init__. The comparison operators now return :py:const:NotImplementedfor such operands, following the general rule for invalid comparison operand types: equality evaluates toFalseand ordering raises Python's standard :py:exc:TypeError(for example,'>' not supported between instances of 'Version' and 'dict').:pr:
480: (:meth:~semver.version.Version.bump_build) will now add.0to an existing build when the last segment of the current build metadata, split by dots (.), is not numeric. This is to ensure the bumped version contains a raised build instead of silently returning an unchanged version. For example,1.2.3+alphais bumped to1.2.3+alpha.0. This mirrors the corresponding fix for the prerelease part (:gh:460). Related to :gh:466.:gh:
460: :meth:~semver.version.Version.bump_prereleasewill now add.0to anexisting prerelease when the last segment of the current prerelease, split by
dots (
.), is not numeric. This is to ensure the new prerelease is consideredhigher than the previous one.
:meth:
~semver.version.Version.bump_prereleasenow also support an argumentbump_when_emptywhich will bump the patch version if there is no existingprerelease, to ensure the resulting version is considered a higher version than
the previous one.
Features
476: Added optional[native]extra to accelerate parsing on CPython via thefast-semver-rs-backendpackage. The pure-Python parser remains the default;the native backend is opt-in and only available on CPython.
Internal Changes
: Update GitHub Actions for astral-sh/setup-uv (version 0.10.1), github/codeql-action (version 4)
Trivial Changes
463: Remove double code in :meth:Version.bump_buildImprove test suite for comparisons and fix test coverage.
Suppress deprecation warnings in test suite.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.
⚠️ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below:
File name: requirements.txt
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.