diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-07-30 08:15:53 -0700 |
---|---|---|
committer | Dustin Ingram <di@users.noreply.github.com> | 2017-08-28 12:32:11 -0500 |
commit | 4fc60ed1e47f725a833dd63656ceec981a58e1a0 (patch) | |
tree | 647d0139be73475e45d74101ed00666875f5db23 /setuptools/command | |
parent | b4d58d4929dd4e19870b5eafa48046a0a0c2bf07 (diff) | |
download | external_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-x | setuptools/command/egg_info.py | 4 |
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 |