Skip to content

Commit 819cfcb

Browse files
committed
📦 Enable support for PEP 639 metadata
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
1 parent 8cafb5c commit 819cfcb

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

requirements/runtime-constraints.in

-5
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,3 @@
1313
# remain in Git. #
1414
# #
1515
###############################################################################
16-
17-
# NOTE: 1.12.0 and later enable support for metadata 2.4
18-
# NOTE: This can be dropped once twine stops using pkginfo
19-
# Ref: https://github.com/pypa/twine/pull/1180
20-
pkginfo >= 1.12.0

requirements/runtime.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-c runtime-constraints.in # limits known broken versions
22

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

66
# NOTE: Used to detect an ambient OIDC credential for OIDC publishing,
77
# NOTE: as well as PEP 740 attestations.

requirements/runtime.txt

+2-5
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ id==1.4.0
3838
# via
3939
# -r runtime.in
4040
# sigstore
41+
# twine
4142
idna==3.7
4243
# via
4344
# email-validator
@@ -71,10 +72,6 @@ packaging==24.1
7172
# -r runtime.in
7273
# pypi-attestations
7374
# twine
74-
pkginfo==1.12.0
75-
# via
76-
# -c runtime-constraints.in
77-
# twine
7875
platformdirs==4.2.2
7976
# via sigstore
8077
pyasn1==0.6.0
@@ -141,7 +138,7 @@ six==1.16.0
141138
# via python-dateutil
142139
tuf==5.0.0
143140
# via sigstore
144-
twine==6.0.1
141+
twine==6.1.0
145142
# via -r runtime.in
146143
typing-extensions==4.11.0
147144
# via

0 commit comments

Comments
 (0)