pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-packaging
Module Name: pkgsrc
Committed By: adam
Date: Thu Jan 22 20:20:58 UTC 2026
Modified Files:
pkgsrc/devel/py-packaging: Makefile PLIST distinfo
Log Message:
py-packaging: updated to 26.0
26.0 - 2026-01-20
Features:
* PEP 751: support pylock
* PEP 794: import name metadata
* Support for writing metadata to a file
* Support ``__replace__`` on Version
* Support positional pattern matching for ``Version`` and ``SpecifierSet``
Behavior adaptations:
* PEP 440 handling of prereleases for ``Specifier.contains``, ``SpecifierSet.contains``, and ``SpecifierSet.filter``
* Handle PEP 440 edge case in ``SpecifierSet.filter``
* Adjust arbitrary equality intersection preservation in ``SpecifierSet``
* Return ``False`` instead of raising for ``.contains`` with invalid version
* Support arbitrary equality on arbitrary strings for ``Specifier`` and ``SpecifierSet``'s ``filter`` and ``contains`` method.
* Only try to parse as ``Version`` on certain marker keys, return ``False`` on unequal ordered comparisons
Fixes:
* Update ``_hash`` when unpickling ``Tag()``
* Correct comment and simplify implicit prerelease handling in ``Specifier.prereleases``
* Use explicit ``_GLibCVersion`` ``NamedTuple`` in ``_manylinux``
* Detect invalid license expressions containing ``()``
* Correct regex for metadata ``'name'`` format
* Improve the message around expecting a semicolon
* Support nested parens in license expressions
* Add space before at symbol in ``Requirements`` string
* A root logger use found, use a ``packaging`` logger instead
* Better support for subclassing ``Marker`` and ``Requirement``
* Normalize all extras, not just if it comes first
* Don't produce a broken repr if ``Marker`` fails to construct
Performance:
* Avoid recompiling regexes in the tokenizer for a 3x speedup
* Improve performance in ``_manylinux.py``
* Minor cleanups to ``Version``
* Skip redundant creation of ``Version``'s in specifier comparison
* Cache the ``Specifier``'s ``Version``
* Make ``Version`` a little faster
* Minor ``Version`` regex cleanup
* Faster regex on Python 3.11.5+ for ``Version``
* Lazily calculate ``_key`` in ``Version``
* Faster ``canonicalize_version``
* Use ``re.fullmatch`` in a couple more places
* Use ``map`` instead of generator
* Deprecate ``._version`` (``_Version``, a ``NamedTuple``)
* Avoid duplicate ``Version`` creation in ``canonicalize_version``
* Add ``__slots__`` to core classes
* Use ``Version.__replace__`` in specifier comparison
* Use ``_get_spec_version`` in more places in ``Specifier``
* Pull ``set`` construction out of function
* Letter normalization dict for prereleases and the like
* Use ``str.partition`` in ``_parse_project_urls``
* Avoid normalizing extras again when comparing
* Speed up ``Version.__str__`` by about 10%
* Much faster ``canonicalize_name`` by avoiding a regex
* Faster zero stripping
Type annotations:
* Fix a type annotation
* Fix type hint of function used with ``contextlib.contextmanager``
* Fix tags return type in ``parse_wheel_filename`` docs
* Add type hint for ``_version`` in ``.version.Version``
* Changed static type annotations in prereleases setter method in ``specifier.py``
* Statically type our test suite
Internal:
* Test and declare support for Python 3.14
* Change our license metadata to use an SPDX license expression
* Expand the Ruff checks run on our codebase
* Add spell checking
* Improve links back to source in the documentation
* Add case insensitivity tests for arbitrary equality
* Fix incorrectly implicitly concatenated string in specifiers test
* Simpler else instead of assert in a check
* Synchronize documentation and code for markers
* Use the GitHub Actions slim runner for the all pass check
* Use ``actionlint`` to check CI workflows
* Use Trusted Publishing
* Use zizmor to check CI
* Test on first public release of CPython 3.11 and newer
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/py-packaging/Makefile
cvs rdiff -u -r1.9 -r1.10 pkgsrc/devel/py-packaging/PLIST
cvs rdiff -u -r1.20 -r1.21 pkgsrc/devel/py-packaging/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-packaging/Makefile
diff -u pkgsrc/devel/py-packaging/Makefile:1.25 pkgsrc/devel/py-packaging/Makefile:1.26
--- pkgsrc/devel/py-packaging/Makefile:1.25 Sun Apr 20 20:40:03 2025
+++ pkgsrc/devel/py-packaging/Makefile Thu Jan 22 20:20:58 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.25 2025/04/20 20:40:03 wiz Exp $
+# $NetBSD: Makefile,v 1.26 2026/01/22 20:20:58 adam Exp $
-DISTNAME= packaging-25.0
+DISTNAME= packaging-26.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/packaging/}
Index: pkgsrc/devel/py-packaging/PLIST
diff -u pkgsrc/devel/py-packaging/PLIST:1.9 pkgsrc/devel/py-packaging/PLIST:1.10
--- pkgsrc/devel/py-packaging/PLIST:1.9 Sun Feb 23 18:13:03 2025
+++ pkgsrc/devel/py-packaging/PLIST Thu Jan 22 20:20:58 2026
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.9 2025/02/23 18:13:03 wiz Exp $
+@comment $NetBSD: PLIST,v 1.10 2026/01/22 20:20:58 adam Exp $
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
@@ -39,6 +39,9 @@ ${PYSITELIB}/packaging/metadata.py
${PYSITELIB}/packaging/metadata.pyc
${PYSITELIB}/packaging/metadata.pyo
${PYSITELIB}/packaging/py.typed
+${PYSITELIB}/packaging/pylock.py
+${PYSITELIB}/packaging/pylock.pyc
+${PYSITELIB}/packaging/pylock.pyo
${PYSITELIB}/packaging/requirements.py
${PYSITELIB}/packaging/requirements.pyc
${PYSITELIB}/packaging/requirements.pyo
Index: pkgsrc/devel/py-packaging/distinfo
diff -u pkgsrc/devel/py-packaging/distinfo:1.20 pkgsrc/devel/py-packaging/distinfo:1.21
--- pkgsrc/devel/py-packaging/distinfo:1.20 Sun Apr 20 20:40:03 2025
+++ pkgsrc/devel/py-packaging/distinfo Thu Jan 22 20:20:58 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.20 2025/04/20 20:40:03 wiz Exp $
+$NetBSD: distinfo,v 1.21 2026/01/22 20:20:58 adam Exp $
-BLAKE2s (packaging-25.0.tar.gz) = 266affee58799100443c9f5f0facf57fce793865f907d1518f34f752f4660f7b
-SHA512 (packaging-25.0.tar.gz) = 0672602d2e18c3aee71b3e567b0de572bc8613ee3d24a79a655ded23ac08ec4582193225bc0c0ea390ed81cf5efbb46e8afbe0798d14f2235f811f263c25728c
-Size (packaging-25.0.tar.gz) = 165727 bytes
+BLAKE2s (packaging-26.0.tar.gz) = a86b6867848e8f444ceb43c98b1ba06d3732362ef48b701d0574829f3fe83be7
+SHA512 (packaging-26.0.tar.gz) = 27a066a7d65ba76189212973b6a0d162f3d361848b1b0c34a82865cf180b3284a837cc34206c297f002a73feae414e25a26c5960bb884a74ea337f582585f1d2
+Size (packaging-26.0.tar.gz) = 143416 bytes
Home |
Main Index |
Thread Index |
Old Index