Repository navigation
Tags
Tags
Version 3.1.1 * Bug fixes: #483, #486, #489, #495, #501, #508, #484, #487, #497, #499 * Trivial changes: #502 * pyproject.toml * Use correct license and license-files to avoid warnings. Remove licence classifiers as they are unsupported by setuptools * Raise minimum version of setuptools to >= 77.0.3
Version 3.1.0 * #478: `Version.parse()` and `Version.is_valid()` now reject non-ASCII digits and trailing newlines, in accordance with the SemVer grammar. Optional minor and patch parsing applies the same character restrictions. * #479: Comparing a `Version` with a `dict`, `tuple`, or `list` that 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 from `Version.__init__`. The comparison operators now return `NotImplemented` for such operands, following the general rule for invalid comparison operand types: equality evaluates to `False` and ordering raises Python's standard `TypeError` (for example, `>` not supported between instances of 'Version' and 'dict'). * #480: `Version.bump_build` will now add `.0` to 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+alpha` is bumped to `1.2.3+alpha.0`. This mirrors the corresponding fix for the prerelease part #460. Related to #466. * #476: Added optional `[native]` extra to accelerate parsing on CPython via the `fast-semver-rs-backend` package. The pure-Python parser remains the default; the native backend is opt-in and only available on CPython. * Update GitHub Actions for astral-sh/setup-uv (version 0.10.1), github/codeql-action (version 4)
Version 3.0.3 * #453: The check in `_comparator` does not match the check in `Version.compare`. This breaks comparision with subclasses. * #435: Several small improvements for documentation: * Add meta description to improve SEO * Use canonicals on ReadTheDocs (commit 87f639f) * Pin versions for reproducable doc builds (commit 03fb990) * Add missing `.readthedocs.yaml` file (commit ec9348a) * Correct some smaller issues when building (commit f65feab) * #436: Move search box more at the top. This makes it easier for users as if the TOC is long, the search box isn't visible anymore. * #439: Improve type hints to fix TODOs * #440: Update workflow file * #446: Add Python 3.13 to GitHub Actions * #447: Modernize project configs with `pyproject.toml` and use Astral's uv command. * In `pyproject.toml`: * Move all project related data from `setup.cfg` to `pyproject.toml` * Use new dependency group from PEP-735 * Consolidate flake8, isort, pycodestyle with ruff * Split towncrier config type "trivial" into "trivial" and "internal" * Create config file for ruff (`.ruff.toml`) * Create config file for pytest (`.pytest.ini`) * Simplify `tox.ini` and remove old stuff * Document installation with new `uv` command * Simplify Sphinx config with `find_version()` * Update the authors * Use `uv` in GitHub Action `python-testing.yml` workflow * Update `release-procedure.md`. * #451: Turn our Markdown issue templates into YAML * #438`: Replace organization placeholder in license * #445`: Improve private `_nat_cmp` method: * Remove obsolete else. * Find a better way to identify digits without the `re` module. * Fix docstring in `Version.compare`
Version 3.0.2 Bug Fixes * PR#418: Replace :class:`~collection.OrderedDict` with :class:`dict`. The dict datatype is ordered since Python 3.7. As we do not support Python 3.6 anymore, it can be considered safe to avoid :class:`~collection.OrderedDict`. Related to :gh:`419`. * PR#426: Fix :meth:`~semver.version.Version.replace` method to use the derived class of an instance instead of :class:`~semver.version.Version` class. Improved Documentation * PR#431: Clarify version policy for the different semver versions (v2, v3, >v3) and the supported Python versions. * #432: Improve external doc links to Python and Pydantic. Features * PR#417: Amend GitHub Actions to check against MacOS. Trivial/Internal Changes * PR#420: Introduce :py:class:`~typing.ClassVar` for some :class:`~semver.version.Version` class variables, mainly :data:`~semver.version.Version.NAMES` and some private. * PR#421: Insert mypy configuration into :file:`pyproject.toml` and remove config options from :file:`tox.ini`.
PreviousNext