aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/config.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/config.py
parentd45be2cc4f7a1e4ddc70b363baaa613c6b068b98 (diff)
downloadexternal_python_setuptools-df2246449c271c07586bcecc3eaa36e9b0e94e3d.tar.gz
external_python_setuptools-df2246449c271c07586bcecc3eaa36e9b0e94e3d.tar.bz2
external_python_setuptools-df2246449c271c07586bcecc3eaa36e9b0e94e3d.zip
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/config.py')
-rw-r--r--setuptools/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/setuptools/config.py b/setuptools/config.py
index 53828447..a70794a4 100644
--- a/setuptools/config.py
+++ b/setuptools/config.py
@@ -404,6 +404,7 @@ class ConfigMetadataHandler(ConfigHandler):
"""Metadata item name to parser function mapping."""
parse_list = self._parse_list
parse_file = self._parse_file
+ parse_dict = self._parse_dict
return {
'platforms': parse_list,
@@ -416,6 +417,7 @@ class ConfigMetadataHandler(ConfigHandler):
'description': parse_file,
'long_description': parse_file,
'version': self._parse_version,
+ 'project_urls': parse_dict,
}
def _parse_version(self, value):