Skip to content

Commit

Permalink
📦 Enable support for PEP 639 metadata
Browse files Browse the repository at this point in the history
This is achieved by upgrading Twine to v6.1.0. Prior to this version,
Twine was unable to pick up and publish licensing information declared
in the new `License-Expression` core packaging metadata [[1]] [[2]].
And now it does that.

Resolves #325.

[1]: https://packaging.python.org/en/latest/specifications/core-metadata/#license-expression
[2]: https://peps.python.org/pep-0639/#spdx
  • Loading branch information
webknjaz committed Jan 22, 2025
1 parent 8cafb5c commit da2ed12
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
5 changes: 0 additions & 5 deletions requirements/runtime-constraints.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,3 @@
# remain in Git. #
# #
###############################################################################

# NOTE: 1.12.0 and later enable support for metadata 2.4
# NOTE: This can be dropped once twine stops using pkginfo
# Ref: https://github.com/pypa/twine/pull/1180
pkginfo >= 1.12.0
4 changes: 2 additions & 2 deletions requirements/runtime.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-c runtime-constraints.in # limits known broken versions

# NOTE: v6 is needed to support metadata v2.4
twine >= 6.0
# NOTE: v6.1 is needed to support metadata v2.4 including PEP 639
twine >= 6.1

# NOTE: Used to detect an ambient OIDC credential for OIDC publishing,
# NOTE: as well as PEP 740 attestations.
Expand Down
7 changes: 2 additions & 5 deletions requirements/runtime.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ id==1.4.0
# via
# -r runtime.in
# sigstore
# twine
idna==3.7
# via
# email-validator
Expand Down Expand Up @@ -71,10 +72,6 @@ packaging==24.1
# -r runtime.in
# pypi-attestations
# twine
pkginfo==1.12.0
# via
# -c runtime-constraints.in
# twine
platformdirs==4.2.2
# via sigstore
pyasn1==0.6.0
Expand Down Expand Up @@ -141,7 +138,7 @@ six==1.16.0
# via python-dateutil
tuf==5.0.0
# via sigstore
twine==6.0.1
twine==6.1.0
# via -r runtime.in
typing-extensions==4.11.0
# via
Expand Down

0 comments on commit da2ed12

Please sign in to comment.