Migrate setup configuration to pyproject.toml

Change-Id: I2cbe020339564507ebd7492fb119e8ef88ecaebc
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-11-19 12:41:37 +00:00
parent 76ade7df75
commit f3997ebace
2 changed files with 35 additions and 29 deletions

View File

@@ -1,3 +1,38 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "oslo.metrics"
description = "Oslo Metrics library"
readme = "README.rst"
authors = [
{name = "OpenStack", email = "openstack-discuss@lists.openstack.org"},
]
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",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
dynamic = ["version", "dependencies"]
[project.scripts]
oslo-metrics = "oslo_metrics.__main__:main"
[project.urls]
Homepage = "https://docs.openstack.org/oslo.metrics"
Repository = "https://opendev.org/openstack/oslo.metrics"
[tool.setuptools]
packages = ["oslo_metrics"]

View File

@@ -1,31 +1,2 @@
[metadata]
name = oslo.metrics
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
summary = Oslo Metrics API
description_file =
README.rst
home_page = https://opendev.org/openstack/oslo.metrics
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_metrics
[entry_points]
console_scripts =
oslo-metrics = oslo_metrics.__main__:main