Migrate setup configuration to pyproject.toml

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I8d19c8bec50964cbe58abbbfb2148ccdeee7ee63
This commit is contained in:
Stephen Finucane
2025-09-11 18:05:02 +01:00
parent ad228a34f1
commit d7cc3fa084
2 changed files with 39 additions and 31 deletions

View File

@@ -1,3 +1,42 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "oslo.rootwrap"
description = "Oslo Rootwrap"
readme = "README.rst"
authors = [
{name = "OpenStack", email = "openstack-discuss@lists.openstack.org"},
]
requires-python = ">=3.10"
dynamic = ["version", "dependencies"]
classifiers = [
"Environment :: OpenStack",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"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.rootwrap/latest/"
[project.scripts]
oslo-rootwrap = "oslo_rootwrap.cmd:main"
oslo-rootwrap-daemon = "oslo_rootwrap.cmd:daemon"
[tool.pbr]
packages = ["oslo_rootwrap"]
[tool.setuptools.packages.find]
include = ["oslo_rootwrap*"]
exclude = ["releasenotes*"]

View File

@@ -1,33 +1,2 @@
[metadata]
name = oslo.rootwrap
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
summary = Oslo Rootwrap
description_file =
README.rst
home_page = https://docs.openstack.org/oslo.rootwrap/latest/
python_requires = >=3.10
classifier =
Environment :: OpenStack
Intended Audience :: Developers
Intended Audience :: Information Technology
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
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_rootwrap
[entry_points]
console_scripts =
oslo-rootwrap = oslo_rootwrap.cmd:main
oslo-rootwrap-daemon = oslo_rootwrap.cmd:daemon