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: I74130dab437c7ec7333d19bf2efc6f9b6095a0ff
This commit is contained in:
niuke 2023-05-04 09:22:14 +08:00
parent 795122864b
commit 2a59c043ed

View File

@ -1,11 +1,11 @@
[metadata] [metadata]
name = ansible-config_template name = ansible-config_template
summary = Config Template plugin for Ansible summary = Config Template plugin for Ansible
description-file = description_file =
README.rst README.rst
author = OpenStack author = OpenStack
author-email = openstack-discuss@lists.openstack.org author_email = openstack-discuss@lists.openstack.org
home-page = https://docs.openstack.org/ansible-config_template/latest/ home_page = https://docs.openstack.org/ansible-config_template/latest/
classifier = classifier =
Intended Audience :: Developers Intended Audience :: Developers
Intended Audience :: System Administrators Intended Audience :: System Administrators
@ -14,8 +14,8 @@ classifier =
[build_sphinx] [build_sphinx]
all_files = 1 all_files = 1
build-dir = doc/build build_dir = doc/build
source-dir = doc/source source_dir = doc/source
[pbr] [pbr]
skip_authors = True skip_authors = True
@ -25,7 +25,7 @@ skip_changelog = True
universal = 1 universal = 1
[global] [global]
setup-hooks = setup_hooks =
pbr.hooks.setup_hook pbr.hooks.setup_hook
[files] [files]