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: Tue Nov 24 06:40:10 UTC 2026
Modified Files:
pkgsrc/devel/py-packaging: Makefile distinfo
Log Message:
py-packaging: updated to 26.4
26.4 - 2026-11-23
Removals:
* Drop support for EOL Python 3.9. (:pull:`1354`)
Features:
* Add :func:`~packaging.markers.prepare_environment` and
:meth:`Marker.evaluate_prepared() <packaging.markers.Marker.evaluate_prepared>`
to evaluate many markers against one prepared environment.
``Pylock.select()`` now uses them. (:pull:`1469`)
* Add ``__replace__`` to :class:`~packaging.requirements.Requirement`,
:class:`~packaging.specifiers.Specifier`, and
:class:`~packaging.specifiers.SpecifierSet`, for ``copy.replace()`` on
Python 3.13+. (:pull:`1377`, :pull:`1457`)
* Add :meth:`VersionRange.from_bounds() <packaging.ranges.VersionRange.from_bounds>`
to make a range from explicit bounds. (:pull:`1475`)
* Add :meth:`VersionRange.snap_bounds() <packaging.ranges.VersionRange.snap_bounds>`
to move range endpoints onto known versions. (:pull:`1477`)
* Add :meth:`VersionRange.relation() <packaging.ranges.VersionRange.relation>`
and :class:`~packaging.ranges.RangeRelation`, which give containment and
disjointness in one pass. (:pull:`1473`)
* Add :func:`~packaging.tags.interpreter_abi`. (:pull:`611`)
* ``Marker.evaluate()`` accepts a set of names for ``extra``, to evaluate
a marker against several selected extras at once. (:pull:`1438`)
* Add ``message``, ``source``, and ``span`` attributes to
:class:`~packaging.requirements.InvalidRequirement` and
:class:`~packaging.markers.InvalidMarker` for syntax errors. (:pull:`1547`, :pull:`1554`)
Behavior adaptations:
* ``str()`` of markers joined with ``&`` or ``|`` has fewer parentheses when
unambiguous. Evaluation and parsed markers do not change. (:pull:`1510`)
* The ``pylock`` and ``direct_url`` dataclasses use ``__slots__``. Pickles
from 26.3 still load. (:pull:`1366`, :pull:`1548`)
* ``Version.__replace__()`` raises ``TypeError`` for unknown keyword arguments
instead of ignoring them. (:pull:`1378`)
Fixes for versions and specifiers:
* Parse plain strings in the iterable form of ``SpecifierSet``, and raise
``TypeError`` for elements that are not ``Specifier`` or ``str``.
(:pull:`1485`)
* Reject an empty arbitrary-equality version (``===``) in specifiers and
requirements. (:pull:`1430`)
* Reject non-ASCII letters in ``~=`` pre, post, and dev segments.
(:pull:`1384`)
* Keep the explicit pre-release opt-in of a literal pre-release version that
overlaps an ordinary bound in a ``VersionRange``. (:pull:`1511`)
* Support ``copy`` and ``pickle`` for ``VersionRange``, which raised
``TypeError`` before. (:pull:`1504`)
Fixes for requirements and markers:
* Reject all whitespace in the URL of a requirement, including Unicode
whitespace such as a no-break space. (:pull:`1379`)
* Parse ``===`` followed by a comma and a spaced specifier in a requirement.
(:pull:`1531`)
* Keep the ``prereleases`` override of each specifier when a ``Requirement``
is pickled or copied. (:pull:`1462`)
* Raise ``InvalidMarker`` for markers nested more than 200 levels deep.
(:pull:`1450`)
* Keep chains of ``&`` and ``|`` on markers flat, so long chains do not
raise. (:pull:`1510`)
* ``Marker.evaluate()`` raises ``UndefinedComparison`` when ``extras`` or
``dependency_groups`` is a string instead of a set. (:pull:`1507`)
Fixes for metadata and licenses:
* Validate and serialize inherited fields in ``Metadata`` subclasses.
(:pull:`1454`)
* Reject Windows drive-relative ``License-File`` paths like ``C:LICENSE``.
(:pull:`1382`)
* Use one spelling, the first one, for case variants of a ``LicenseRef-``
identifier in ``canonicalize_license_expression()``. (:pull:`1412`)
* Reject non-ASCII ``LicenseRef-`` identifiers before normalization.
(:pull:`1481`)
Fixes for tags and filenames:
* Reject wheel build tags that contain a line break. (:pull:`1427`)
* Keep explicitly empty ``platforms`` iterables in ``cpython_tags()``,
``generic_tags()``, and ``compatible_tags()`` instead of using the host
platforms. (:pull:`1360`)
* Detect free-threaded builds in ``cpython_tags()`` when a generic ABI such
as ``abi3`` or ``none`` comes first in ``abis``, or when ``abis`` holds
only ``abi3t``. (:pull:`1555`)
Fixes for pylock and dependency groups:
* ``Pylock.select()`` raises ``PylockSelectError`` for an explicitly empty
``environments`` list (:pull:`1362`), and for unknown extras and
dependency groups. (:pull:`1376`)
* Get ``pylock`` file names from paths with mixed Windows path separators.
(:pull:`1436`)
* Require the complete file name to match in ``is_valid_pylock_path()``.
(:pull:`1446`)
* Reject pre-releases of ``lock-version`` 2, such as ``2.0rc1``.
(:pull:`1522`)
* Collect errors from all includes in dependency groups, including sibling
includes after a parse error and includes in malformed groups, and report
each failing group once. (:pull:`1411`, :pull:`1439`, :pull:`1492`)
* Name the correct group when a dependency group includes itself with a
different spelling. (:pull:`1519`)
Performance:
* Support lazy imports on Python 3.15+. (:pull:`1129`)
* Cache the canonical form of a ``Specifier``. (:pull:`1372`)
* Speed up and cache ``str(Marker)``. (:pull:`1371`, :pull:`1459`)
* Avoid ``literal_eval`` for plain marker strings. (:pull:`1429`)
* Speed up ``VersionRange`` construction, subtraction, comparison,
disjointness checks, membership checks, and filtering. (:pull:`1458`,
:pull:`1460`, :pull:`1471`, :pull:`1506`, :pull:`1542`, :pull:`1551`,
:pull:`1556`, :pull:`1558`, :pull:`1562`, :pull:`1563`, :pull:`1564`,
:pull:`1568`)
* Speed up ``Version`` parsing, string conversion, and release validation.
(:pull:`1520`, :pull:`1523`, :pull:`1524`, :pull:`1538`)
* Speed up ``Specifier`` parsing, string conversion, hashing, and equality.
(:pull:`1529`, :pull:`1544`, :pull:`1571`)
* Speed up ``Specifier.contains()`` for simple comparisons. (:pull:`1536`)
* Speed up marker and requirement parsing. (:pull:`1494`, :pull:`1495`,
:pull:`1525`, :pull:`1545`)
* Validate license expressions without compiling Python code.
(:pull:`1527`)
Documentation:
* Add a GitHub link next to the page icons. (:pull:`1444`)
* Use autodoc for the ``pylock`` and ``requirements`` API reference
(:pull:`1393`), and for ``packaging.tags.INTERPRETER_SHORT_NAMES``.
(:pull:`1491`)
* Fix duplicated words in comments and docstrings. (:pull:`1516`)
* Update the contribution guide for batched changelog edits and remove
PyPy 3.9 from the nox example. (:pull:`1383`, :pull:`1456`)
Benchmarks:
* Add Python 3.15 to the benchmarks. (:pull:`1380`)
* Add ``VersionRange`` and PubGrub resolver benchmarks. (:pull:`1541`,
:pull:`1543`, :pull:`1570`)
* Report benchmark changes in a summary table and as PR comments.
(:pull:`1526`, :pull:`1528`)
* Make the cold benchmarks independent of internal caches, and do not filter
compatible release examples in tests. (:pull:`1407`, :pull:`1508`)
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 pkgsrc/devel/py-packaging/Makefile
cvs rdiff -u -r1.24 -r1.25 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.29 pkgsrc/devel/py-packaging/Makefile:1.30
--- pkgsrc/devel/py-packaging/Makefile:1.29 Fri Aug 7 09:10:00 2026
+++ pkgsrc/devel/py-packaging/Makefile Tue Nov 24 06:40:10 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.29 2026/08/07 09:10:00 adam Exp $
+# $NetBSD: Makefile,v 1.30 2026/11/24 06:40:10 adam Exp $
-DISTNAME= packaging-26.3
+DISTNAME= packaging-26.4
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/packaging/}
@@ -10,11 +10,11 @@ HOMEPAGE= https://github.com/pypa/packag
COMMENT= Core utilities for Python packages
LICENSE= modified-bsd OR apache-2.0
-TEST_DEPENDS+= ${PYPKGPREFIX}-pretend-[0-9]*:../../devel/py-pretend
+TEST_DEPENDS+= ${PYPKGPREFIX}-pretend>=0:../../devel/py-pretend
# cyclic dependency
-#TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
-#TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
-TEST_DEPENDS+= ${PYPKGPREFIX}-tomli_w-[0-9]*:../../textproc/py-tomli_w
+#TEST_DEPENDS+= ${PYPKGPREFIX}-test>=0:../../devel/py-test
+#TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis>=0:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-tomli_w>=0:../../textproc/py-tomli_w
USE_LANGUAGES= # none
Index: pkgsrc/devel/py-packaging/distinfo
diff -u pkgsrc/devel/py-packaging/distinfo:1.24 pkgsrc/devel/py-packaging/distinfo:1.25
--- pkgsrc/devel/py-packaging/distinfo:1.24 Fri Aug 7 09:10:01 2026
+++ pkgsrc/devel/py-packaging/distinfo Tue Nov 24 06:40:10 2026
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.24 2026/08/07 09:10:01 adam Exp $
+$NetBSD: distinfo,v 1.25 2026/11/24 06:40:10 adam Exp $
-BLAKE2s (packaging-26.3.tar.gz) = 1637ad18989f72e2eb3e921c1ba01daac708ac11b38f3b910f2a290c959f4013
-SHA512 (packaging-26.3.tar.gz) = 6a649d40efe6e6e9a7aaa1c4be9dc9e5eac40c35c57834407f9e610cda9f7c9c74d42bd2d5d86d3a7637cfa0201ad534997da8697acd7e5261f2fa18be478a95
-Size (packaging-26.3.tar.gz) = 313412 bytes
+BLAKE2s (packaging-26.4.tar.gz) = 0cc928d86acba858f5562fa2c0d5f33d3fef8d7509496d8a1e028c54225d060f
+SHA512 (packaging-26.4.tar.gz) = 0f21b314cc6b48ea0d788734ce3af38bbce4e7cdbfaa7c3c2d7bf4ce6be6a4eaf497f50f71ca293d6bc51bb9995514795fee7ca179201607a1a5d3a853a545eb
+Size (packaging-26.4.tar.gz) = 355877 bytes
Home |
Main Index |
Thread Index |
Old Index