pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-semver
Module Name: pkgsrc
Committed By: adam
Date: Thu Sep 24 11:13:09 UTC 2026
Modified Files:
pkgsrc/devel/py-semver: Makefile distinfo
Log Message:
py-semver: updated to 3.1.0
Version 3.1.0
Bug Fixes
* :pr:`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.
* :pr:`479`: Comparing a :class:`~semver.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 :py:const:`NotImplemented` for such operands, following the general rule for
invalid comparison operand types: equality evaluates to ``False`` and 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 ``.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 (:gh:`460`). Related to :gh:`466`.
* :gh:`460`: :meth:`~semver.version.Version.bump_prerelease` will now add `.0` to an
existing prerelease when the last segment of the current prerelease, split by
dots (`.`), is not numeric. This is to ensure the new prerelease is considered
higher than the previous one.
:meth:`~semver.version.Version.bump_prerelease` now also support an argument
`bump_when_empty` which will bump the patch version if there is no existing
prerelease, to ensure the resulting version is considered a higher version than
the previous one.
Features
* :pr:`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.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 pkgsrc/devel/py-semver/Makefile
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-semver/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-semver/Makefile
diff -u pkgsrc/devel/py-semver/Makefile:1.5 pkgsrc/devel/py-semver/Makefile:1.6
--- pkgsrc/devel/py-semver/Makefile:1.5 Sat Apr 12 20:15:14 2025
+++ pkgsrc/devel/py-semver/Makefile Thu Sep 24 11:13:09 2026
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2025/04/12 20:15:14 adam Exp $
+# $NetBSD: Makefile,v 1.6 2026/09/24 11:13:09 adam Exp $
-DISTNAME= semver-3.0.4
+DISTNAME= semver-3.1.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 1
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/semver/}
@@ -12,13 +11,11 @@ COMMENT= Python package to work with Sem
LICENSE= modified-bsd
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
-TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov-[0-9]*:../../devel/py-test-cov
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>=0:../../devel/py-test-cov
USE_LANGUAGES= # none
-post-install:
- cd ${DESTDIR}${PREFIX}/bin && \
- ${MV} pysemver pysemver-${PYVERSSUFFIX} || ${TRUE}
+PY_RENAME_BINARIES= pysemver
.include "../../lang/python/wheel.mk"
.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/py-semver/distinfo
diff -u pkgsrc/devel/py-semver/distinfo:1.2 pkgsrc/devel/py-semver/distinfo:1.3
--- pkgsrc/devel/py-semver/distinfo:1.2 Sat Jan 25 11:14:55 2025
+++ pkgsrc/devel/py-semver/distinfo Thu Sep 24 11:13:09 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2025/01/25 11:14:55 adam Exp $
+$NetBSD: distinfo,v 1.3 2026/09/24 11:13:09 adam Exp $
-BLAKE2s (semver-3.0.4.tar.gz) = 74585211eba9df83370e70e4595caaac4d0d0c76bcc10c4e18afe4eba1cc92bf
-SHA512 (semver-3.0.4.tar.gz) = dde83495fb759d547313b706ba783d0bb23bdc27b84d13bdb0a2b4557677fd07cab396f15b18ba469dbcd494d5c85f815b6206184af3e975b42185624f542c2a
-Size (semver-3.0.4.tar.gz) = 269730 bytes
+BLAKE2s (semver-3.1.0.tar.gz) = f990ab21b320ab3c4ad17b6e8e9898d3e2812fe057e857b0068714cb80a0049c
+SHA512 (semver-3.1.0.tar.gz) = 307cb2455814c2ae9af4b0a0c758a6ebff57807c9a8308721c85afa607d65e1597862598f4d5e8c304dbe8c7648c1eeae05269fc816a38ac3e0bbe703c317753
+Size (semver-3.1.0.tar.gz) = 304162 bytes
Home |
Main Index |
Thread Index |
Old Index