Support Description-Content-Type metadata

As of setuptools 36.4.0, support for Description-Content-Type
metadata was added via the long_description_content_type variable.
Add a metadata.description-content-type option for setup.cfg so it
can be provided through PBR. This makes it possible to instruct PyPI
and potentially other frontends to know an explicit RFC 1341 content
type, along with character set and variant, for the accompanying
long description.

Change-Id: I852f603d9ca4e4cd469eab4cae9933ef2581e3af
This commit is contained in:
Jeremy Stanley 2017-11-20 20:43:36 +00:00
parent 73cc4189ca
commit 538d2c21a1
4 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,8 @@ itself):
author = OpenStack Foundation
author-email = openstack-dev@lists.openstack.org
summary = OpenStack's setup automation in a reusable form
description-file = README
description-file = README.rst
description-content-type = text/x-rst; charset=UTF-8
home-page = https://launchpad.net/pbr
license = Apache-2
classifier =

View File

@ -10,6 +10,7 @@ summary = Test package for testing pbr
description-file =
README.txt
CHANGES.txt
description-content-type = text/plain; charset=UTF-8
requires-python = >=2.5
requires-dist =

View File

@ -104,6 +104,7 @@ D1_D2_SETUP_ARGS = {
"description": ("metadata", "summary"),
"keywords": ("metadata",),
"long_description": ("metadata", "description"),
"long_description_content_type": ("metadata", "description_content_type"),
"download_url": ("metadata",),
"classifiers": ("metadata", "classifier"),
"platforms": ("metadata", "platform"), # **

View File

@ -5,6 +5,7 @@ author-email = openstack-dev@lists.openstack.org
summary = Python Build Reasonableness
description-file =
README.rst
description-content-type = text/x-rst; charset=UTF-8
home-page = https://docs.openstack.org/pbr/latest/
requires-python = >=2.6
classifier =