summaryrefslogtreecommitdiff
path: root/setuptools/command/egg_info.py
diff options
context:
space:
mode:
authorJeremy Stanley <fungi@yuggoth.org>2017-11-21 00:48:44 +0000
committerJeremy Stanley <fungi@yuggoth.org>2017-11-22 19:24:12 +0000
commitdf2246449c271c07586bcecc3eaa36e9b0e94e3d (patch)
treea729506809366de107bf68d4d9962cd043dc0e93 /setuptools/command/egg_info.py
parentd45be2cc4f7a1e4ddc70b363baaa613c6b068b98 (diff)
downloadpython-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-xsetuptools/command/egg_info.py1
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'