aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2016-07-30 08:15:53 -0700
committerDustin Ingram <di@users.noreply.github.com>2017-08-28 12:32:11 -0500
commit4fc60ed1e47f725a833dd63656ceec981a58e1a0 (patch)
tree647d0139be73475e45d74101ed00666875f5db23 /setuptools/command
parentb4d58d4929dd4e19870b5eafa48046a0a0c2bf07 (diff)
downloadexternal_python_setuptools-4fc60ed1e47f725a833dd63656ceec981a58e1a0.tar.gz
external_python_setuptools-4fc60ed1e47f725a833dd63656ceec981a58e1a0.tar.bz2
external_python_setuptools-4fc60ed1e47f725a833dd63656ceec981a58e1a0.zip
Add new long_description_content_type kwarg
This is used to populate the new `Description-Content-Type` field. `Description-Content-Type` is described at https://github.com/pypa/python-packaging-user-guide/pull/258
Diffstat (limited to 'setuptools/command')
-rwxr-xr-xsetuptools/command/egg_info.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py
index 6c00b0b7..a183d15d 100755
--- a/setuptools/command/egg_info.py
+++ b/setuptools/command/egg_info.py
@@ -599,6 +599,10 @@ 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.long_description_content_type = getattr(
+ cmd.distribution,
+ 'long_description_content_type'
+ )
try:
# write unescaped data to PKG-INFO, so older pkg_resources
# can still parse it