Commit 538d2c21 authored by Jeremy Stanley's avatar Jeremy Stanley

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
parent 73cc4189
......@@ -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 =
......
......@@ -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 =
......
......@@ -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"), # **
......
......@@ -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 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment