-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
102 lines (82 loc) · 2.9 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# SPDX-FileCopyrightText: 2022 - 2023 StorPool <[email protected]>
# SPDX-License-Identifier: Apache-2.0
[build-system]
requires = ["setuptools >= 61", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "sp-osi"
description = "Update the StorPool drivers in an existing OpenStack installation"
readme = "README.md"
requires-python = ">= 3.6"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: DFSG approved",
"License :: Freely Distributable",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dynamic = ["dependencies", "version"]
[[project.authors]]
name = "StorPool"
email = "[email protected]"
[project.scripts]
kolla-rebuild = "kolla_rebuild.__main__:main"
sp-openstack = "sp_osi.__main__:main"
[project.urls]
Home = "https://repo.storpool.com/public/doc/storpool-openstack-integration/"
Source = "https://github.com/storpool/storpool-openstack-integration"
Changelog = "https://github.com/storpool/storpool-openstack-integration/blob/master/docs/changes.md"
[tool.setuptools]
zip-safe = true
package-dir = {"" = "python"}
packages = ["kolla_rebuild", "sp_osi"]
[tool.setuptools.package-data]
sp_osi = ["py.typed"]
[tool.setuptools.dynamic]
dependencies = {file = "python/requirements/install.txt"}
version = {attr = "sp_osi.VERSION"}
[tool.black]
line-length = 100
[tool.ruff]
line-length = 100
select = ["ALL"]
ignore = [
# We know what "self" is... I hope
"ANN101",
# We leave most of the formatting to the "black" tool
"COM812",
# No blank lines before the class docstring, TYVM
"D203",
# The multi-line docstring summary starts on the same line
"D213",
# Our exceptions are simple enough
"EM",
# Much too restrictive
"TRY",
]
[tool.ruff.isort]
force-single-line = true
known-first-party = ["chroot_test", "kolla_rebuild", "sp_osi"]
lines-after-imports = 2
single-line-exclusions = ["typing"]
[tool.ruff.per-file-ignores]
# This is a command-line test tool, console output is part of its task.
"*/chroot_test/__main__.py" = ["T201"]
# This is a command-line test tool, console output is part of its task; also, Python 3.6.
"*/sp_osi/**.py" = ["T201", "UP011"]
# This is a unit test suite; also, Python 3.6.
"*/unit_tests/**.py" = ["S101", "UP011", "UP022"]
[tool.test-stages]
stages = ["ruff and not @manual", "@check and not @manual", "@tests and not @manual"]