Migrate setup configuration to pyproject.toml

Change-Id: Ic35b92a95d478c597bb56c0b6f677c747f9ed9d2
Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
This commit is contained in:
Ivan Anfimov
2025-09-17 12:31:45 +00:00
parent 5294b524e0
commit 3e1db2ba6d
2 changed files with 38 additions and 33 deletions

View File

@@ -1,11 +1,46 @@
[build-system]
requires = ["pbr>=6.0.0", "setuptools>=64.0.0"]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"
[project]
name = "watcher-dashboard"
description = "Watcher Management Dashboard"
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",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
]
[project.urls]
Homepage = "https://docs.openstack.org/watcher-dashboard/latest/"
Repository = "https://opendev.org/openstack/watcher-dashboard"
[tool.setuptools]
packages = [
"watcher_dashboard"
]
[tool.ruff]
line-length = 79
target-version = "py310"
[tool.ruff.lint]
select = ["E4", "E5", "E7", "E9", "F", "S", "U", "W", "C90"]
ignore = [
@@ -22,8 +57,10 @@ ignore = [
# S110 `try`-`except`-`pass` detected, consider logging the exception
"S110",
]
[tool.ruff.lint.per-file-ignores]
"watcher_dashboard/tests/*" = ["S"]
[tool.ruff.lint.mccabe]
# Flag errors (`C901`) whenever the complexity level exceeds 5.
max-complexity = 20

View File

@@ -1,34 +1,2 @@
[metadata]
name = watcher-dashboard
summary = Watcher Management Dashboard
description_file =
README.rst
author = OpenStack
author_email = openstack-discuss@lists.openstack.org
home_page = https://docs.openstack.org/watcher-dashboard/latest
python_requires = >=3.10
classifier =
Development Status :: 5 - Production/Stable
Environment :: OpenStack
Framework :: Django
Intended Audience :: Developers
Intended Audience :: Information Technology
Intended Audience :: System Administrators
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Operating System :: POSIX :: Linux
Programming Language :: Python
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: 3
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Programming Language :: Python :: 3.12
Topic :: Internet :: WWW/HTTP
[files]
packages =
watcher_dashboard
[nosetests]
verbosity=2
detailed-errors=1