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: I239799d7dd8e9162d254a5cfc75cad03e8650e91
This commit is contained in:
zhouxinyong 2023-06-08 20:15:45 +08:00
parent 98063d3fd9
commit 9a88a310f3

View File

@ -1,9 +1,9 @@
[metadata] [metadata]
name = sahara-tests name = sahara-tests
summary = Sahara tests summary = Sahara tests
description-file = README.rst description_file = README.rst
license = Apache Software License license = Apache Software License
python-requires = >=3.6 python_requires = >=3.6
classifiers = classifiers =
Programming Language :: Python Programming Language :: Python
Programming Language :: Python :: 3 Programming Language :: Python :: 3
@ -16,8 +16,8 @@ classifiers =
License :: OSI Approved :: Apache Software License License :: OSI Approved :: Apache Software License
Operating System :: POSIX :: Linux Operating System :: POSIX :: Linux
author = OpenStack author = OpenStack
author-email = openstack-discuss@lists.openstack.org author_email = openstack-discuss@lists.openstack.org
home-page = https://docs.openstack.org/sahara-tests/latest/ home_page = https://docs.openstack.org/sahara-tests/latest/
[global] [global]
setup-hooks = pbr.hooks.setup_hook setup-hooks = pbr.hooks.setup_hook