Migrate setup configuration to pyproject.toml

Change-Id: I000cc0fe2fa42580e824586a35e85b195f78c778
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane
2025-09-11 18:09:03 +01:00
parent 8d2b62ad92
commit 0d63eb2981
2 changed files with 44 additions and 40 deletions

View File

@@ -1,3 +1,47 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "oslo.service"
description = "oslo.service library"
readme = "README.rst"
authors = [
{name = "OpenStack", email = "openstack-discuss@lists.openstack.org"},
]
requires-python = ">=3.10"
dynamic = ["version", "dependencies"]
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",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
[project.urls]
Homepage = "https://docs.openstack.org/oslo.service"
Repository = "https://opendev.org/openstack/oslo.service"
[project.optional-dependencies]
threading = [
"cotyledon>=2.0.0",
"futurist>=3.1.1",
]
[project.entry-points."oslo.config.opts"]
"oslo.service.periodic_task" = "oslo_service.periodic_task:list_opts"
"oslo.service.service" = "oslo_service.service:list_opts"
"oslo.service.sslutils" = "oslo_service.sslutils:list_opts"
"oslo.service.wsgi" = "oslo_service.wsgi:list_opts"
[tool.setuptools]
packages = ["oslo_service"]

View File

@@ -1,42 +1,2 @@
[metadata]
name = oslo.service
summary = oslo.service library
description_file =
README.rst
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
home_page = https://docs.openstack.org/oslo.service/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
[options.extras_require]
threading =
cotyledon>=2.0.0
futurist>=3.1.1
[files]
packages =
oslo_service
[entry_points]
oslo.config.opts =
oslo.service.periodic_task = oslo_service.periodic_task:list_opts
oslo.service.service = oslo_service.service:list_opts
oslo.service.sslutils = oslo_service.sslutils:list_opts
oslo.service.wsgi = oslo_service.wsgi:list_opts
[upload_sphinx]
upload-dir = doc/build/html