Migrate setup configuration to pyproject.toml

Change-Id: I573111ae23625052ee08cb56f61dd167de8ba5f6
Signed-off-by: Takashi Kajinami <kajinamit@oss.nttdata.com>
This commit is contained in:
Takashi Kajinami
2026-07-14 00:16:32 +09:00
parent 7927623fc7
commit 364e09c1ca
2 changed files with 39 additions and 33 deletions
+39
View File
@@ -1,3 +1,42 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "WSME"
description = "Simplify the writing of REST APIs, and extend them with additional protocols."
authors = [
{name = "Christophe de Vienne", email = "python-wsme@googlegroups.com"},
]
readme = {file = "README.rst", content-type = "text/x-rst"}
license = {text = "MIT"}
dynamic = ["version", "dependencies"]
requires-python = ">=3.10"
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Software Development :: Libraries :: Python Modules",
]
[project.urls]
Homepage = "https://opendev.org/x/wsme"
Repository = "https://opendev.org/x/wsme"
[tool.setuptools.packages.find]
include = [
"wsme",
"wsmeext"
]
namespaces = true
[project.entry-points."wsme.protocols"]
rest = "wsme.rest.protocol:RestProtocol"
restjson = "wsme.rest.protocol:RestProtocol"
restxml = "wsme.rest.protocol:RestProtocol"
-33
View File
@@ -1,35 +1,2 @@
[metadata]
name = WSME
summary = Simplify the writing of REST APIs, and extend them with additional protocols.
author = Christophe de Vienne
author_email = python-wsme@googlegroups.com
description_file = README.rst
url = https://opendev.org/x/wsme
license = MIT
python_requires = >=3.10
classifier =
Development Status :: 3 - Alpha
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
License :: OSI Approved :: MIT License
Topic :: Internet :: WWW/HTTP :: WSGI
Topic :: Software Development :: Libraries :: Python Modules
[entry_points]
wsme.protocols =
rest = wsme.rest.protocol:RestProtocol
restjson = wsme.rest.protocol:RestProtocol
restxml = wsme.rest.protocol:RestProtocol
[files]
packages =
wsme
wsmeext
namespace_packages =
wsmeext
extra_files =
setup.py
README.rst
tests