Migrate setup configuration to pyproject.toml
Change-Id: If9e9fe2e955498d4a14b1a8496bc5b6b7ad567e2 Signed-off-by: Brian Haley <haleyb.dev@gmail.com>
This commit is contained in:
@@ -1,7 +1,65 @@
|
||||
[build-system]
|
||||
requires = ["pbr>=5.7.0", "setuptools>=64.0.0", "wheel"]
|
||||
requires = ["pbr>=6.1.1"]
|
||||
build-backend = "pbr.build"
|
||||
|
||||
[project]
|
||||
name = "neutron-lib"
|
||||
description = "Neutron shared routines and utilities"
|
||||
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 :: 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",
|
||||
]
|
||||
|
||||
[project.optional-dependencies]
|
||||
osprofiler = [
|
||||
"osprofiler>=1.4.0", # Apache-2.0
|
||||
]
|
||||
|
||||
[project.urls]
|
||||
"Bug Tracker" = "https://bugs.launchpad.net/neutron"
|
||||
"Documentation" = "https://docs.openstack.org/neutron-lib"
|
||||
"Source Code" = "https://opendev.org/openstack/neutron-lib"
|
||||
|
||||
[project.entry-points."oslo.policy.enforcer"]
|
||||
neutron_lib = "neutron_lib._policy:get_enforcer"
|
||||
|
||||
[project.entry-points."oslo.policy.policies"]
|
||||
neutron_lib = "neutron_lib._policy:list_rules"
|
||||
|
||||
[project.entry-points."flake8.extension"]
|
||||
N521 = "neutron_lib.hacking.checks:use_jsonutils"
|
||||
N524 = "neutron_lib.hacking.checks:check_no_contextlib_nested"
|
||||
N529 = "neutron_lib.hacking.checks:no_mutable_default_args"
|
||||
N530 = "neutron_lib.hacking.checks:check_neutron_namespace_imports"
|
||||
N532 = "neutron_lib.hacking.translation_checks:check_log_warn_deprecated"
|
||||
N534 = "neutron_lib.hacking.translation_checks:check_raised_localized_exceptions"
|
||||
N536 = "neutron_lib.hacking.checks:assert_equal_none"
|
||||
N537 = "neutron_lib.hacking.translation_checks:no_translate_logs"
|
||||
N535 = "neutron_lib.hacking.checks:check_no_eventlet_imports"
|
||||
|
||||
[tool.setuptools]
|
||||
packages = [
|
||||
"neutron_lib"
|
||||
]
|
||||
|
||||
[tool.mypy]
|
||||
incremental = true
|
||||
pretty = true
|
||||
|
||||
40
setup.cfg
40
setup.cfg
@@ -1,42 +1,2 @@
|
||||
[metadata]
|
||||
name = neutron-lib
|
||||
summary = Neutron shared routines and utilities
|
||||
description_file =
|
||||
README.rst
|
||||
author = OpenStack
|
||||
author_email = openstack-discuss@lists.openstack.org
|
||||
home_page = https://docs.openstack.org/neutron-lib/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
|
||||
|
||||
[files]
|
||||
packages =
|
||||
neutron_lib
|
||||
|
||||
[entry_points]
|
||||
oslo.policy.enforcer =
|
||||
neutron_lib = neutron_lib._policy:get_enforcer
|
||||
oslo.policy.policies =
|
||||
neutron_lib = neutron_lib._policy:list_rules
|
||||
flake8.extension =
|
||||
N521 = neutron_lib.hacking.checks:use_jsonutils
|
||||
N524 = neutron_lib.hacking.checks:check_no_contextlib_nested
|
||||
N529 = neutron_lib.hacking.checks:no_mutable_default_args
|
||||
N530 = neutron_lib.hacking.checks:check_neutron_namespace_imports
|
||||
N532 = neutron_lib.hacking.translation_checks:check_log_warn_deprecated
|
||||
N534 = neutron_lib.hacking.translation_checks:check_raised_localized_exceptions
|
||||
N536 = neutron_lib.hacking.checks:assert_equal_none
|
||||
N537 = neutron_lib.hacking.translation_checks:no_translate_logs
|
||||
N535 = neutron_lib.hacking.checks:check_no_eventlet_imports
|
||||
|
||||
Reference in New Issue
Block a user