From 09417bf0a30b8e423ba69d6898a039a55fbbfceb Mon Sep 17 00:00:00 2001 From: yangyawei Date: Thu, 13 May 2021 17:48:35 +0800 Subject: [PATCH] setup.cfg: Replace dashes with underscores Setuptools v54.1.0 introduces a warning that the use of dash-separated options in 'setup.cfg' will not be supported in a future version [1]. Get ahead of the issue by updating to canonical configuration[2]. Without this, we see 'UserWarning' messages like the following on new enough versions of setuptools: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb [2] https://setuptools.pypa.io/en/stable/userguide/declarative_config.html Change-Id: I9c51ffdeb548833f2cc303d2e53ba169756690d3 --- setup.cfg | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index 97fcfea3..5a5160db 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,18 +1,16 @@ [metadata] name = pbr author = OpenStack -author-email = openstack-discuss@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/ +author_email = openstack-discuss@lists.openstack.org +description = Python Build Reasonableness +long_description = file: README.rst +long_description_content_type = text/x-rst; charset=UTF-8 +url = https://docs.openstack.org/pbr/latest/ project_urls = Bug Tracker = https://bugs.launchpad.net/pbr/ Documentation = https://docs.openstack.org/pbr/ Source Code = https://opendev.org/openstack/pbr -python-requires = >=2.6 -classifier = +classifiers = Development Status :: 5 - Production/Stable Environment :: Console Environment :: OpenStack @@ -28,6 +26,9 @@ classifier = Programming Language :: Python :: 3.6 Programming Language :: Python :: 3.7 +[options] +python_requires = >=2.6 + [files] packages = pbr