pypi packaging 26.1

6 hours ago

Features:

  • PEP 783: add handling for Emscripten wheel tags by @hoodmane in #804
  • PEP 803: add handling for the abi3.abi3t free-threading tag by @ngoldbaum in #1099
  • PEP 723: add packaging.dependency_groups module, based on the dependency-groups package by @sirosen in #1065
  • Add the packaging.direct_url module by @sbidoul in #944
  • Add the packaging.errors module by @henryiii in #1071
  • Add SpecifierSet.is_unsatisfiable using ranges (new internals that will be expanded in future versions) by @notatallshaw in #1119
  • Add create_compatible_tags_selector to select compatible tags by @sbidoul in #1110
  • Add a key argument to SpecifierSet.filter() by @frostming in #1068
  • Support & and | for Marker's by @henryiii in #1146
  • Normalize Version.__replace__ and add Version.from_parts by @henryiii in #1078
  • Add an option to validate compressed tag set sort order in parse_wheel_filename by @r266-tech in #1150

Behavior adaptations:

Pylock (PEP 751) updates:

  • Add pylock select function by @sbidoul in #1092
  • Document pylock select() method and PylockSelectError by @r266-tech in #1153
  • Add filename property to PackageSdist and PackageWheel, more validation by @sbidoul in #1095
  • Give preference to path over url by @sbidoul in #1128
  • Validate name/version consistency in file names by @sbidoul in #1114

Fixes:

  • Fix > comparison for versions with dev+local segments by @veeceey in #1097
  • Fix incorrect self-comparison for InfinityType and NegativeInfinityType by @bysiber in #1093
  • Canonicalize when deduplicating specifiers in SpecifierSet by @notatallshaw in #1109
  • Fix charset error message formatting by @notatallshaw in #1121
  • Handle the key parameter in SpecifierSet.filter when specifiers are empty and prerelease is False by @notatallshaw in #1096
  • Standardize inner components of repr output by @henryiii in #1090
  • Specifier's === uses original string, not normalized, when available by @notatallshaw in #1124
  • Propagate int-max-str-digits ValueError by @notatallshaw in #1155

Performance:

Internal:

Documentation:

Benchmarks

Performance improvements since 26.0, from the new integrated benchmark suite:

uv run asv run 26.0..HEAD

New Contributors

Full Changelog: 26.0...26.1

Don't miss a new packaging release

NewReleases is sending notifications on new releases.