From 661bb85b781575e45d151a475b65d5f61404a6db Mon Sep 17 00:00:00 2001 From: YuehuiLei Date: Wed, 5 May 2021 10:10:40 +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 replacing the dashes with underscores. 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 Change-Id: I48d280192d3713e09571842d5515da2dcc637d08 --- setup.cfg | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.cfg b/setup.cfg index bd4b96ffe..d3c20a003 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,12 +1,12 @@ [metadata] name = diskimage-builder summary = Golden Disk Image builder. -description-file = +description_file = README.rst author = OpenStack -author-email = openstack-discuss@lists.openstack.org +author_email = openstack-discuss@lists.openstack.org license: Apache License (2.0) -home-page = https://docs.openstack.org/diskimage-builder/latest/ +home_page = https://docs.openstack.org/diskimage-builder/latest/ classifier = Development Status :: 5 - Production/Stable License :: OSI Approved :: Apache Software License @@ -17,7 +17,7 @@ classifier = Programming Language :: Python :: 3.7 Programming Language :: Python :: 3.8 Environment :: Console -python-requires = >=3.5 +python_requires = >=3.5 [files] packages =