From 0b14b1704f5d6613e5299c8839f750492bb11b74 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Fri, 12 Sep 2025 10:55:48 +0100 Subject: [PATCH] Migrate setup configuration to pyproject.toml Change-Id: I7bf27f1a41776cea0c05b2a5121ad6df29fcd86d Signed-off-by: Stephen Finucane --- pyproject.toml | 36 ++++++++++++++++++++++++++++++++++++ setup.cfg | 26 -------------------------- 2 files changed, 36 insertions(+), 26 deletions(-) create mode 100644 pyproject.toml diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 0000000..9f4d09a --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,36 @@ +[build-system] +requires = ["pbr>=6.1.1"] +build-backend = "pbr.build" + +[project] +name = "os-api-ref" +description = "Sphinx Extensions to support API reference sites in OpenStack" +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/os-api-ref" +Repository = "https://opendev.org/openstack/os-api-ref" + +[tool.setuptools] +packages = [ + "os_api_ref" +] diff --git a/setup.cfg b/setup.cfg index 90ecbf8..f204752 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,28 +1,2 @@ [metadata] name = os-api-ref -summary = Sphinx Extensions to support API reference sites in OpenStack -description_file = - README.rst -author = OpenStack -author_email = openstack-discuss@lists.openstack.org -home_page = https://docs.openstack.org/os-api-ref/latest/ -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 = - os_api_ref