Migrate setup configuration to pyproject.toml

Change-Id: I42cb1e9b347ce0ac2cac668b8788fa50d2b9f0aa
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-06-27 09:30:26 +01:00
parent 48b43f8d39
commit 3f4e3b1865
2 changed files with 38 additions and 25 deletions

View File

@@ -1,3 +1,41 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "osc-lib"
description = "OpenStackClient Library"
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 :: OpenStack",
"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/osc-lib/"
Repository = "https://opendev.org/openstack/osc-lib/"
"Bug Tracker" = "https://storyboard.openstack.org/#!/project/openstack/osc-lib"
[tool.setuptools]
packages = [
"osc_lib"
]
[tool.mypy]
python_version = "3.10"
show_column_numbers = true

View File

@@ -1,27 +1,2 @@
[metadata]
name = osc-lib
summary = OpenStackClient Library
description_file =
README.rst
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
url = https://docs.openstack.org/osc-lib/latest/
project_urls =
Bug Tracker = https://storyboard.openstack.org/#!/project/openstack/osc-lib
Documentation = https://docs.openstack.org/osc-lib/latest/
Source Code = https://opendev.org/openstack/osc-lib/
python_requires = >=3.10
classifier =
Development Status :: 5 - Production/Stable
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 :: Only
[files]
packages =
osc_lib