Migrate setup configuration to pyproject.toml

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I8553f63c4ca83aedcd427ebbb2fdcc485b5419e6
This commit is contained in:
Stephen Finucane
2025-09-12 14:04:24 +01:00
parent c3d0e852b1
commit 09fa8304a3
2 changed files with 44 additions and 34 deletions

View File

@@ -1,3 +1,47 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "stevedore"
description = "Manage dynamic plugins for Python applications"
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 = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"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/stevedore"
Repository = "https://opendev.org/openstack/stevedore"
[project.entry-points."stevedore.example.formatter"]
simple = "stevedore.example.simple:Simple"
field = "stevedore.example2.fields:FieldList"
plain = "stevedore.example.simple:Simple"
[project.entry-points."stevedore.test.extension"]
t1 = "stevedore.tests.test_extension:FauxExtension"
t2 = "stevedore.tests.test_extension:FauxExtension"
e1 = "stevedore.tests.test_extension:BrokenExtension"
e2 = "stevedore.tests.notfound:UnimportableExtension"
[tool.setuptools]
packages = [
"stevedore"
]

View File

@@ -1,36 +1,2 @@
[metadata]
name = stevedore
description_file = README.rst
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
summary = Manage dynamic plugins for Python applications
home_page = https://docs.openstack.org/stevedore/latest/
python_requires = >=3.10
classifier =
Development Status :: 5 - Production/Stable
License :: OSI Approved :: Apache Software License
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
Intended Audience :: Developers
Environment :: Console
[files]
packages =
stevedore
[entry_points]
stevedore.example.formatter =
simple = stevedore.example.simple:Simple
field = stevedore.example2.fields:FieldList
plain = stevedore.example.simple:Simple
stevedore.test.extension =
t1 = stevedore.tests.test_extension:FauxExtension
t2 = stevedore.tests.test_extension:FauxExtension
e1 = stevedore.tests.test_extension:BrokenExtension
e2 = stevedore.tests.notfound:UnimportableExtension