Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python-semver/python-semver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: improve-issue-templates2
Choose a base ref
...
head repository: python-semver/python-semver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 16 commits
  • 25 files changed
  • 10 contributors

Commits on Nov 17, 2024

  1. Merge pull request #451 from python-semver/improve-issue-templates2

    Turn our Markdown issue templates into YAML
    tomschr authored Nov 17, 2024
    Configuration menu
    Copy the full SHA
    2eeefcb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bd97cfc View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2024

  1. Configuration menu
    Copy the full SHA
    bc41390 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #453 from viccie30/fix-subclass-comparison

    Fix comparison with subclasses
    tomschr authored Dec 13, 2024
    Configuration menu
    Copy the full SHA
    15aa6a6 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2025

  1. Change version to 3.0.3

    * Allow uvx to be executed by tox
    * Adjust building semver section
    * Rework release procedure with uv
    * Add restview to `pyproject.toml`
    * Mention PEP 639 in `pyproject.toml`
    * Update Changelog
    * Extend `.readthedocs.yaml` with jobs
    tomschr committed Jan 18, 2025
    Configuration menu
    Copy the full SHA
    cc4ae07 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #454 from python-semver/release/3.0.3

    Release/3.0.3
    tomschr authored Jan 18, 2025
    Configuration menu
    Copy the full SHA
    486e489 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2025

  1. Fix #459: Fix 3.0.3

    * Raise version 3.0.3 -> 3.0.4
    * Fix #457: Re-enable Trove license identifier
    * Fix #456: Fix source dist file
      - Sort MANIFEST.in and add missing files
      - Add CONTRIBUTORS, .pytest.ini, .ruff.toml, and uv.lock
    * Update Changelog
    tomschr committed Jan 24, 2025
    Configuration menu
    Copy the full SHA
    bae0b7c View commit details
    Browse the repository at this point in the history
  2. Merge pull request #459 from python-semver/fix-3.0.3

    Fix 3.0.3
    tomschr authored Jan 24, 2025
    Configuration menu
    Copy the full SHA
    6adf876 View commit details
    Browse the repository at this point in the history

Commits on Jan 28, 2025

  1. Fix #463: Remove duplicate code Version.bump_build (#464)

    * Fix #463: Remove duplicate code Version.bump_build
    * Update changelog
    tomschr authored Jan 28, 2025
    Configuration menu
    Copy the full SHA
    d959aa7 View commit details
    Browse the repository at this point in the history
  2. Fix #460 Improve bump_prerelease to alway get a newer version (#462)

    Raising a prerelease version always results in a newer version, and raising
    an empty prerelease version has the option to raise the patch version as well
    
    Co-authored-by: Tom Schraitle <tomschr@users.noreply.github.com>
    
    ---------
    
    Co-authored-by: Bas Roos <bas.roos@enreach.com>
    Co-authored-by: Tom Schraitle <tomschr@users.noreply.github.com>
    3 people authored Jan 28, 2025
    Configuration menu
    Copy the full SHA
    d8813b6 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2025

  1. 441 update pydantic section of docs (#442)

    * Update docs/advanced/combine-pydantic-and-semver.rst
    * Update example with pydantic 2.10.5 semantic_version type
    
    ---------
    
    Co-authored-by: Tom Schraitle <tomschr@users.noreply.github.com>
    jbkroner and tomschr authored Jul 4, 2025
    Configuration menu
    Copy the full SHA
    cc5b1d3 View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2026

  1. Fix #448: Remove Python 3.7-3.9 (EOL) (#470)

    According to the Status of Python versions (https://devguide.python.org/versions/),
    Python 3.7, 3.8, and 3.9 are already "end-of-life".
    
    * Python 3.7: PEP 537, end of life 2023-06-27
    * Python 3.8: PEP 569, end of life 2024-10-07
    * Python 3.9: PEP 596, end of life 2025-10-31
    
    => For semver, the lowest supported Python version is Python 3.10 now.
    
    Additional changes:
    
    * Remove docformatter
    * Add version identifiers for packages in `pyproject.toml`
    * Update uv.lock
    tomschr authored Jun 29, 2026
    Configuration menu
    Copy the full SHA
    9c19156 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2026

  1. fix: replace deprecated semver.parse() with semver.Version.parse() in…

    … docstrings (#471)
    
    The docstrings in bump_major, bump_minor, bump_patch, bump_prerelease, bump_build, and next_version used semver.parse() which returns a plain dict, not a Version object. Calling instance methods like .bump_major() on a dict raises AttributeError.
    
    Replace all 6 occurrences with semver.Version.parse() which correctly returns a Version instance, making the doctests runnable and accurate.
    koteshyelamati authored Jul 5, 2026
    Configuration menu
    Copy the full SHA
    a8bb4f8 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2026

  1. fix: next_version should bump version for build-only versions (#469)

    next_version('patch') on a version with build metadata but no prerelease
    (e.g. 1.2.3+build.5) would strip the build and return the same version
    (1.2.3) instead of bumping the patch (1.2.4).
    
    The condition in next_version was (version.prerelease or version.build),
    which caused build-only versions to enter the 'finalization' path meant
    for prereleases. Build metadata does not affect version precedence, so
    its presence should not trigger version finalization.
    
    Change the condition to only check version.prerelease.
    
    * docs: update next_version build-only example for new bump behavior
    gaoflow authored Jul 15, 2026
    Configuration menu
    Copy the full SHA
    4e09ef0 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2026

  1. fix(next_version): reset prerelease when token changes (#339) (#472)

    When next_version("prerelease", prerelease_token="rc") is called on a
    version that already has a prerelease with a different token (e.g. dev),
    bump_prerelease() ignores the token argument and simply increments the
    existing counter. 1.2.4-dev.1 becomes 1.2.4-dev.2 instead of 1.2.4-rc.1.
    
    Fix: before delegating to bump_prerelease, check whether the existing
    prerelease token matches the requested one. When they differ, replace
    the prerelease directly with "{prerelease_token}.1".
    Mukller authored Jul 30, 2026
    Configuration menu
    Copy the full SHA
    fdec4ae View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2026

  1. Bump cryptography from 49.0.0 to 50.0.0 (#473)

    Bumps [cryptography](https://github.com/pyca/cryptography) from 49.0.0 to 50.0.0.
    - [Changelog](https://github.com/pyca/cryptography/blob/main/CHANGELOG.rst)
    - [Commits](pyca/cryptography@49.0.0...50.0.0)
    
    ---
    updated-dependencies:
    - dependency-name: cryptography
      dependency-version: 50.0.0
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 5, 2026
    Configuration menu
    Copy the full SHA
    99d2032 View commit details
    Browse the repository at this point in the history
Loading