Opened 7 days ago
Closed 20 hours ago
#6090 closed enhancement (fixed)
packaging-26.4 (Python module)
| Reported by: | Bruce Dubbs | Owned by: | lfs-book |
|---|---|---|---|
| Priority: | normal | Milestone: | 13.2 |
| Component: | Book | Version: | git |
| Severity: | normal | Keywords: | |
| Cc: |
Description
New minor version.
Note:
See TracTickets
for help on using tickets.

26.4 - 2026-11-23
Removals:
1354)Features:
~packaging.markers.prepare_environmentand :meth:Marker.evaluate_prepared() <packaging.markers.Marker.evaluate_prepared>to evaluate many markers against one prepared environment.Pylock.select()now uses them. (:pull:1469)replaceto :class:~packaging.requirements.Requirement, :class:~packaging.specifiers.Specifier, and :class:~packaging.specifiers.SpecifierSet, forcopy.replace()on Python 3.13+. (:pull:1377, :pull:1457)VersionRange.from_bounds() <packaging.ranges.VersionRange.from_bounds>to make a range from explicit bounds. (:pull:1475)VersionRange.snap_bounds() <packaging.ranges.VersionRange.snap_bounds>to move range endpoints onto known versions. (:pull:1477)VersionRange.relation() <packaging.ranges.VersionRange.relation>and :class:~packaging.ranges.RangeRelation, which give containment and disjointness in one pass. (:pull:1473)~packaging.tags.interpreter_abi. (:pull:611)Marker.evaluate()accepts a set of names forextra, to evaluate a marker against several selected extras at once. (:pull:1438)message,source, andspanattributes to :class:~packaging.requirements.InvalidRequirementand :class:~packaging.markers.InvalidMarkerfor syntax errors.Behavior adaptations:
str()of markers joined with&or|has fewer parentheses when unambiguous. Evaluation and parsed markers do not change. (:pull:1510)pylockanddirect_urldataclasses useslots. Pickles from 26.3 still load. (:pull:1366, :pull:1548)Version.replace()raisesTypeErrorfor unknown keyword arguments instead of ignoring them. (:pull:1378)Fixes for versions and specifiers:
SpecifierSet, and raiseTypeErrorfor elements that are notSpecifierorstr. (:pull:1485)===) in specifiers and requirements. (:pull:1430)~=pre, post, and dev segments. (:pull:1384)VersionRange. (:pull:1511)copyandpickleforVersionRange, which raisedTypeErrorbefore. (:pull:1504)Fixes for requirements and markers:
1379)===followed by a comma and a spaced specifier in a requirement. (:pull:1531)prereleasesoverride of each specifier when aRequirementis pickled or copied. (:pull:1462)InvalidMarkerfor markers nested more than 200 levels deep. (:pull:1450)&and|on markers flat, so long chains do not raise. (:pull:1510)Marker.evaluate()raisesUndefinedComparisonwhenextrasordependency_groupsis a string instead of a set. (:pull:1507)Fixes for metadata and licenses:
Metadatasubclasses. (:pull:1454)License-Filepaths likeC:LICENSE. (:pull:1382)LicenseRef-identifier incanonicalize_license_expression(). (:pull:1412)LicenseRef-identifiers before normalization. (:pull:1481)Fixes for tags and filenames:
1427)platformsiterables incpython_tags(),generic_tags(), andcompatible_tags()instead of using the host platforms. (:pull:1360)cpython_tags()when a generic ABI such asabi3ornonecomes first inabis, or whenabisholds onlyabi3t. (:pull:1555)Fixes for pylock and dependency groups:
Pylock.select()raisesPylockSelectErrorfor an explicitly emptyenvironmentslist (:pull:1362), and for unknown extras and dependency groups. (:pull:1376)pylockfile names from paths with mixed Windows path separators. (:pull:1436)is_valid_pylock_path(). (:pull:1446)lock-version2, such as2.0rc1. (:pull:1522)1411, :pull:1439, :pull:1492)1519)Performance:
1129)Specifier. (:pull:1372)str(Marker). (:pull:1371, :pull:1459)literal_evalfor plain marker strings. (:pull:1429)VersionRangeconstruction, 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)Versionparsing, string conversion, and release validation. (:pull:1520, :pull:1523, :pull:1524, :pull:1538)Specifierparsing, string conversion, hashing, and equality. (:pull:1529, :pull:1544, :pull:1571)Specifier.contains()for simple comparisons. (:pull:1536)1494, :pull:1495, :pull:1525, :pull:1545)Documentation:
1444)pylockandrequirementsAPI reference (:pull:1393), and forpackaging.tags.INTERPRETER_SHORT_NAMES. (:pull:1491)1516)1383, :pull:1456)Benchmarks:
1380)VersionRangeand PubGrub resolver benchmarks. (:pull:1541, :pull:1543, :pull:1570)1526, :pull:1528)Internal:
1347, :pull:1365, :pull:1367, :pull:1368, :pull:1369)1392)metadata. (:pull:1488)1385, :pull:1386, :pull:1387, :pull:1388, :pull:1389, :pull:1390, :pull:1391)1381)VersioninSpecifier. (:pull:1539)1400, :pull:1479, :pull:1490, :pull:1493)1513, :pull:1517)1514, :pull:1515)pylockanddirect_urlobjects. (:pull:1550)1355, :pull:1414, :pull:1423, :pull:1441, :pull:1442, :pull:1443, :pull:1463)