From d4ef4c44448c56a626d24bf2110457fb88fb99e5 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 11 Sep 2025 18:12:38 +0100 Subject: [PATCH] Migrate setup configuration to pyproject.toml Change-Id: I1e8b069a3244bd72a99f71036c604f57039a8c26 Signed-off-by: Stephen Finucane --- pyproject.toml | 33 +++++++++++++++++++++++++++++++++ setup.cfg | 25 ------------------------- 2 files changed, 33 insertions(+), 25 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 2a38d6b..e03eb1c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,36 @@ [build-system] requires = ["pbr>=6.1.1"] build-backend = "pbr.build" + +[project] +name = "oslo.upgradecheck" +description = "Common code for writing OpenStack upgrade checks" +authors = [ + {name = "OpenStack", email = "openstack-discuss@lists.openstack.org"}, +] +readme = {file = "README.rst", content-type = "text/x-rst"} +license = {text = "Apache-2.0"} +dynamic = ["version", "dependencies"] +requires-python = ">=3.10" +classifiers = [ + "Environment :: OpenStack", + "Intended Audience :: Information Technology", + "Intended Audience :: System Administrators", + "License :: OSI Approved :: Apache Software License", + "Operating System :: POSIX :: Linux", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", +] + +[project.urls] +Homepage = "https://docs.openstack.org/oslo.upgradecheck" +Repository = "https://opendev.org/openstack/oslo.upgradecheck" + +[tool.setuptools] +packages = [ + "oslo_upgradecheck" +] diff --git a/setup.cfg b/setup.cfg index 91131a3..9a940b5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,27 +1,2 @@ [metadata] name = oslo.upgradecheck -summary = Common code for writing OpenStack upgrade checks -description_file = - README.rst -author = OpenStack -author_email = openstack-discuss@lists.openstack.org -home_page = http://launchpad.net/oslo -python_requires = >=3.10 -classifier = - Environment :: OpenStack - Intended Audience :: Information Technology - Intended Audience :: System Administrators - License :: OSI Approved :: Apache Software License - Operating System :: POSIX :: Linux - Programming Language :: Python - Programming Language :: Python :: 3 - Programming Language :: Python :: 3.10 - Programming Language :: Python :: 3.11 - Programming Language :: Python :: 3.12 - Programming Language :: Python :: 3.13 - Programming Language :: Python :: 3 :: Only - Programming Language :: Python :: Implementation :: CPython - -[files] -packages = - oslo_upgradecheck