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

Also remove the unused sections for translation and doc build.

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: Ie91f09aaaf3375cbfb3a0e764682e729283be2a5
This commit is contained in:
Takashi Kajinami
2024-09-27 16:00:39 +09:00
parent f69d75ce6d
commit 3ee69d2d37
2 changed files with 3 additions and 27 deletions

View File

@@ -1,2 +0,0 @@
[python: **.py]

View File

@@ -1,11 +1,11 @@
[metadata]
name = python-scciclient
summary = Python ServerView Common Command Interface (SCCI) Client Library
description-file =
description_file =
README.rst
author = FUJITSU LIMITED
author-email = fj-lsoft-scciclient@dl.jp.fujitsu.com
home-page = https://opendev.org/x/python-scciclient
author_email = fj-lsoft-scciclient@dl.jp.fujitsu.com
home_page = https://opendev.org/x/python-scciclient
classifier =
Development Status :: 4 - Beta
Environment :: Console
@@ -20,25 +20,3 @@ classifier =
[files]
packages =
scciclient
[build_sphinx]
source-dir = doc/source
build-dir = doc/build
all_files = 1
[upload_sphinx]
upload-dir = doc/build/html
[compile_catalog]
directory = scciclient/locale
domain = python-scciclient
[update_catalog]
domain = python-scciclient
output_dir = scciclient/locale
input_file = scciclient/locale/python-scciclient.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = scciclient/locale/python-scciclient.pot