From 80b99add8a00dbf6e495164d9490de2274626929 Mon Sep 17 00:00:00 2001 From: Vieri <15050873171@163.com> Date: Tue, 4 Dec 2018 17:55:50 +0000 Subject: [PATCH] Change openstack-dev to openstack-discuss Mailinglists have been updated. Openstack-discuss replaces openstack-dev. Update the setup.py to support twine; explicitly say that the long description is a markdown file. Change-Id: Ia5315b68818e86a08c0b35e8ed896f91bf851228 --- setup.cfg | 2 +- setup.py | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/setup.cfg b/setup.cfg index 2f2fc0d7..e2444664 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,7 +4,7 @@ summary = native lxd driver for openstack description-file = README.md author = OpenStack -author-email = openstack-dev@lists.openstack.org +author-email = openstack-discuss@lists.openstack.org home-page = https://www.openstack.org/ classifier = Environment :: OpenStack diff --git a/setup.py b/setup.py index 566d8443..6f3da25e 100644 --- a/setup.py +++ b/setup.py @@ -14,6 +14,7 @@ # limitations under the License. # THIS FILE IS MANAGED BY THE GLOBAL REQUIREMENTS REPO - DO NOT EDIT +import os import setuptools # In python < 2.7.4, a lazy loading of package `pbr` will break @@ -24,6 +25,12 @@ try: except ImportError: pass +this_directory = os.path.abspath(os.path.dirname(__file__)) +with open(os.path.join(this_directory, 'README.md'), 'rb') as f: + long_description = f.read().decode('utf-8') + setuptools.setup( + long_description=long_description, + long_description_content_type='text/markdown', setup_requires=['pbr>=2.0.0'], pbr=True)