Update dependency semver to v3.1.0 - #6803
Closed
elastic-renovate-prod[bot] wants to merge 1 commit into
Closed
elastic-renovate-prod[bot] wants to merge 1 commit into
elastic-renovate-prod[bot] wants to merge 1 commit into
Conversation
elastic-renovate-prod
Bot
force-pushed
the
renovate/semver-3.x
branch
from
September 25, 2026 20:44
4e1cd66 to
bd5e691
Compare
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_build: Improve test coverage to 100% by ignoring the optional Rust backend fallback.
: Improve test suite for comparisons and fix test coverage.
: Suppress deprecation warnings in test suite.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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 Renovate Bot.