Migrate setup configuration to pyproject.toml

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: I7d7d0a6897990c12208651abbcebea8c6a7b83e2
This commit is contained in:
Stephen Finucane
2025-09-12 10:33:54 +01:00
parent c816ae1314
commit d235b9578d
2 changed files with 34 additions and 23 deletions

View File

@@ -1,3 +1,37 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "automaton"
description = "Friendly state machines for Python."
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",
]
[project.urls]
Homepage = "https://docs.openstack.org/automaton"
Repository = "https://opendev.org/openstack/automaton"
[tool.setuptools]
packages = [
"automaton"
]

View File

@@ -1,25 +1,2 @@
[metadata]
name = automaton
summary = Friendly state machines for python.
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
home_page = https://docs.openstack.org/automaton/latest/
description_file =
README.rst
python_requires = >=3.10
classifier =
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: POSIX
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
Topic :: Software Development :: Libraries
[files]
packages =
automaton