Or at least the bare minimum we need to to get things passing. Change-Id: I713e591ec08a706a17f104c418ce47d45d9a9707 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
86 lines
2.2 KiB
TOML
86 lines
2.2 KiB
TOML
[build-system]
|
|
requires = ["pbr>=6.1.1"]
|
|
build-backend = "pbr.build"
|
|
|
|
[project]
|
|
name = "stevedore"
|
|
description = "Manage dynamic plugins for Python applications"
|
|
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 :: Console",
|
|
"Intended Audience :: Developers",
|
|
"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/stevedore"
|
|
Repository = "https://opendev.org/openstack/stevedore"
|
|
|
|
[project.entry-points."stevedore.example.formatter"]
|
|
simple = "stevedore.example.simple:Simple"
|
|
field = "stevedore.example2.fields:FieldList"
|
|
plain = "stevedore.example.simple:Simple"
|
|
|
|
[project.entry-points."stevedore.test.extension"]
|
|
t1 = "stevedore.tests.test_extension:FauxExtension"
|
|
t2 = "stevedore.tests.test_extension:FauxExtension"
|
|
e1 = "stevedore.tests.test_extension:BrokenExtension"
|
|
e2 = "stevedore.tests.notfound:UnimportableExtension"
|
|
|
|
[tool.setuptools]
|
|
packages = [
|
|
"stevedore"
|
|
]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.10"
|
|
show_column_numbers = true
|
|
show_error_context = true
|
|
ignore_missing_imports = true
|
|
strict = true
|
|
# keep this in-sync with 'mypy.exclude' in '.pre-commit-config.yaml'
|
|
exclude = '''(?x)(
|
|
doc
|
|
| examples
|
|
| releasenotes
|
|
)'''
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["stevedore.tests.*"]
|
|
disallow_untyped_calls = false
|
|
disallow_untyped_defs = false
|
|
disallow_subclassing_any = false
|
|
disallow_any_generics = false
|
|
|
|
[tool.ruff]
|
|
line-length = 79
|
|
|
|
[tool.ruff.lint]
|
|
select = ["C4", "E4", "E5", "E7", "E9", "F", "S", "U"]
|
|
ignore = [
|
|
# we only use asserts for type narrowing
|
|
"S101",
|
|
]
|
|
|
|
[tool.ruff.lint.per-file-ignores]
|
|
"stevedore/tests/*" = ["S"]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "preserve"
|
|
docstring-code-format = true
|
|
skip-magic-trailing-comma = true
|