Migrate setup configuration to pyproject.toml

Change-Id: Iada58829b4e7b3d70fb5d45bbd43de91f8d97716
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2025-09-12 10:52:47 +01:00
parent f6393daae0
commit 501d07a280
2 changed files with 43 additions and 29 deletions

View File

@@ -1,3 +1,46 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "openstackdocstheme"
description = "OpenStack Docs Theme"
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 = [
"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",
"Topic :: Documentation",
]
[project.urls]
Homepage = "https://docs.openstack.org/openstackdocstheme"
Repository = "https://opendev.org/openstack/openstackdocstheme"
[tool.setuptools]
packages = [
"openstackdocstheme"
]
script-files = [
"bin/docstheme-build-translated.sh",
"bin/docstheme-lang-display-name.py",
"bin/docstheme-build-pdf",
]
[tool.ruff] [tool.ruff]
line-length = 79 line-length = 79

View File

@@ -1,31 +1,2 @@
[metadata] [metadata]
name = openstackdocstheme name = openstackdocstheme
summary = OpenStack Docs Theme
description_file =
README.rst
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
home_page = https://docs.openstack.org/openstackdocstheme/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
Topic :: Documentation
[files]
packages =
openstackdocstheme
scripts =
bin/docstheme-build-translated.sh
bin/docstheme-lang-display-name.py
bin/docstheme-build-pdf