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: Iab9ad0d154b3e88eb56237580378dfcbe45b54e9
This commit is contained in:
XinxinShen 2021-04-28 11:02:09 +08:00
parent a7fdb13da1
commit 4260038246

View File

@ -1,11 +1,11 @@
[metadata]
name = masakari-dashboard
summary = Horizon plugin for masakari
description-file =
description_file =
README.rst
author = OpenStack
author-email = openstack-discuss@lists.openstack.org
home-page = https://opendev.org/openstack/masakari-dashboard
author_email = openstack-discuss@lists.openstack.org
home_page = https://opendev.org/openstack/masakari-dashboard
classifier =
Environment :: OpenStack
Intended Audience :: Information Technology
@ -24,6 +24,6 @@ packages =
[build_sphinx]
all_files = 1
build-dir = doc/build
source-dir = doc/source
warning-is-error = 1
build_dir = doc/build
source_dir = doc/source
warning_is_error = 1