-
Notifications
You must be signed in to change notification settings - Fork 321
Description
Your Environment
Thank you for taking the time to report an issue.
To more efficiently resolve this issue, we'd like to know some basic information about your system and setup.
- Your operating system:
Ubuntu 20.04
- Version of python you are running:
Python 3.8.10
- How did you install twine? Did you use your operating system's package manager or pip or something else?
pip (via tox)
- Version of twine you have installed (include complete output of):
twine --version
twine version 4.0.2 (importlib-metadata: 6.0.0, keyring: 23.13.1, pkginfo: 1.9.6, requests: 2.28.2, requests-toolbelt: 0.10.1, urllib3: 1.26.14)
- Which package repository are you targeting?
PyPI
The Issue
Please describe the issue that you are experiencing.
Running twine emits a deprecation warning:
python3 -Walways -m twine --version
venv/lib/python3.8/site-packages/twine/__init__.py:43: DeprecationWarning: Implicit None on return values is deprecated and will raise KeyErrors.
__license__ = metadata["license"]
twine version 4.0.2 (importlib-metadata: 6.0.0, keyring: 23.13.1, pkginfo: 1.9.6, requests: 2.28.2, requests-toolbelt: 0.10.1, urllib3: 1.26.14)
It appears that twine's metadata does not include the License key. As a result, the metadata
"dictionary" twine is getting from importlib_metadata
doesn't contain a key license
.
The metadata in the wheel uploaded to PyPI can be seen here: https://www.wheelodex.org/projects/twine/#metadata
Steps to Reproduce
If the issue is predictable and consistently reproducible, please list the steps here.
- Run
python3 -Walways -m twine --version