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:
parent
73cc4189ca
commit
538d2c21a1
|
@ -50,7 +50,8 @@ itself):
|
||||||
author = OpenStack Foundation
|
author = OpenStack Foundation
|
||||||
author-email = openstack-dev@lists.openstack.org
|
author-email = openstack-dev@lists.openstack.org
|
||||||
summary = OpenStack's setup automation in a reusable form
|
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
|
home-page = https://launchpad.net/pbr
|
||||||
license = Apache-2
|
license = Apache-2
|
||||||
classifier =
|
classifier =
|
||||||
|
|
|
@ -10,6 +10,7 @@ summary = Test package for testing pbr
|
||||||
description-file =
|
description-file =
|
||||||
README.txt
|
README.txt
|
||||||
CHANGES.txt
|
CHANGES.txt
|
||||||
|
description-content-type = text/plain; charset=UTF-8
|
||||||
requires-python = >=2.5
|
requires-python = >=2.5
|
||||||
|
|
||||||
requires-dist =
|
requires-dist =
|
||||||
|
|
|
@ -104,6 +104,7 @@ D1_D2_SETUP_ARGS = {
|
||||||
"description": ("metadata", "summary"),
|
"description": ("metadata", "summary"),
|
||||||
"keywords": ("metadata",),
|
"keywords": ("metadata",),
|
||||||
"long_description": ("metadata", "description"),
|
"long_description": ("metadata", "description"),
|
||||||
|
"long_description_content_type": ("metadata", "description_content_type"),
|
||||||
"download_url": ("metadata",),
|
"download_url": ("metadata",),
|
||||||
"classifiers": ("metadata", "classifier"),
|
"classifiers": ("metadata", "classifier"),
|
||||||
"platforms": ("metadata", "platform"), # **
|
"platforms": ("metadata", "platform"), # **
|
||||||
|
|
|
@ -5,6 +5,7 @@ author-email = openstack-dev@lists.openstack.org
|
||||||
summary = Python Build Reasonableness
|
summary = Python Build Reasonableness
|
||||||
description-file =
|
description-file =
|
||||||
README.rst
|
README.rst
|
||||||
|
description-content-type = text/x-rst; charset=UTF-8
|
||||||
home-page = https://docs.openstack.org/pbr/latest/
|
home-page = https://docs.openstack.org/pbr/latest/
|
||||||
requires-python = >=2.6
|
requires-python = >=2.6
|
||||||
classifier =
|
classifier =
|
||||||
|
|
Loading…
Reference in New Issue