📦 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
This commit is contained in:
Sviatoslav Sydorenko 2025-01-22 13:35:03 +01:00 committed by Sviatoslav Sydorenko
parent e0449d218c
commit 10df67dae0
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 9345E8FEA89CA455
3 changed files with 4 additions and 12 deletions

View file

@ -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

View file

@ -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.

View file

@ -38,6 +38,7 @@ id==1.4.0
# via
# -r runtime.in
# sigstore
# twine
idna==3.7
# via
# email-validator
@ -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
@ -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