diff options
author | Jeremy Stanley <fungi@yuggoth.org> | 2017-11-21 00:48:44 +0000 |
---|---|---|
committer | Jeremy Stanley <fungi@yuggoth.org> | 2017-11-22 19:24:12 +0000 |
commit | df2246449c271c07586bcecc3eaa36e9b0e94e3d (patch) | |
tree | a729506809366de107bf68d4d9962cd043dc0e93 /setuptools/command/egg_info.py | |
parent | d45be2cc4f7a1e4ddc70b363baaa613c6b068b98 (diff) | |
download | python-setuptools-git-df2246449c271c07586bcecc3eaa36e9b0e94e3d.tar.gz |
Support PEP 345 Project-URL metadata
By including one or more Project-URL entries in PKG-INFO metadata,
PyPI can display helpful hyperlinks in a generic manner. Add support
here to be able to pass it through setup.cfg and setup.py with a
project_urls dict. See the corresponding section of the Core
Metadata Specifications from the Python Packaging User Guide for
details:
https://packaging.python.org/specifications/core-metadata/#project-url-multiple-use
Diffstat (limited to 'setuptools/command/egg_info.py')
-rwxr-xr-x | setuptools/command/egg_info.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index a1d41b27..c8b2bd17 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -597,6 +597,7 @@ def write_pkg_info(cmd, basename, filename): metadata = cmd.distribution.metadata metadata.version, oldver = cmd.egg_version, metadata.version metadata.name, oldname = cmd.egg_name, metadata.name + metadata.project_urls = cmd.distribution.metadata.project_urls metadata.long_description_content_type = getattr( cmd.distribution, 'long_description_content_type' |