From 3ee69d2d37fb8feb71d1fe26b55f586407c43df9 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 27 Sep 2024 16:00:39 +0900 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 Also remove the unused sections for translation and doc build. [1] https://github.com/pypa/setuptools/commit/a2e9ae4cb Change-Id: Ie91f09aaaf3375cbfb3a0e764682e729283be2a5 --- babel.cfg | 2 -- setup.cfg | 28 +++------------------------- 2 files changed, 3 insertions(+), 27 deletions(-) delete mode 100644 babel.cfg diff --git a/babel.cfg b/babel.cfg deleted file mode 100644 index 15cd6cb..0000000 --- a/babel.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[python: **.py] - diff --git a/setup.cfg b/setup.cfg index 49986a7..1ae0e31 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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