-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.cfg
174 lines (163 loc) · 3.82 KB
/
setup.cfg
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[metadata]
name = SuPA
version = file: VERSION.txt
license = Apache-2.0
author = Guido Kollerie
author_email = [email protected]
description = SURF ultimate Provide Agent
long_description = file: README.rst
long_description_content_type = text/x-rst
keywords =
NSI
uPA
NSA
gRPC
protobuf
url= https://git.ia.surfsara.nl/automation/projects/supa/
classifiers =
Development Status :: 2 - Pre-Alpha
Intended Audience :: Telecommunications Industry
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python :: 3.12
Topic :: System :: Networking
[options]
packages = find:
package_dir = = src
include_package_data = true
python_requires = >= 3.11
install_requires =
grpcio == 1.70.0 # version number should match that of `grpcio-tools` in `pyproject.toml`
grpcio-tools == 1.70.0 # version number should match that of `grpcio-tools` in `pyproject.toml`
mypy-protobuf ~= 3.6.0
structlog ~= 25.1.0
colorama ~= 0.4.3
click ~= 8.0
pydantic-settings ~= 2.8.0
python-statemachine ~= 2.5.0
sqlalchemy ~= 2.0.37
apscheduler ~= 3.11.0
tabulate ~= 0.9.0
more-itertools ~= 10.6.0
protobuf ~= 5.29.0
requests ~= 2.0
lxml ~= 5.3.0
lxml-stubs ~= 0.5.0
cherrypy ~= 18.0
htmlgen ~= 2.0.0
paramiko >=3.0.0
pytz ~= 2025.1
[options.extras_require]
dev =
bandit
black
flake8
flake8-bandit # security checks
flake8-bugbear # assorted opinionated checks
flake8-builtins # check for name collision with builtins
flake8-comprehensions
flake8-docstrings
flake8-implicit-str-concat
flake8-print
flake8-rst # Allows run flake8 on code snippets in docstrings or rst files
flake8-string-format
grpcio-tools == 1.70.0 # version number should match that of `grpcio-tools` in `pyproject.toml`
grpc-stubs >= 1.53.0
pytest-grpc
isort
mypy
protobuf
types-pytz
types-tabulate
pip-tools
pre-commit
pytest
pytest-cov
pytest-xdist
types-requests
types-setuptools
types-paramiko >=3.0.0
doc =
sphinx
sphinx-rtd-theme
sphinx-click
[options.packages.find]
where = src
[options.data_files]
etc/supa/ = supa.env
[options.entry_points]
console_scripts =
supa = supa.main:cli
[build_sphinx]
version = file: VERSION.txt
source-dir = docs
[tool:pytest]
testpaths = tests
filterwarnings=
ignore::DeprecationWarning:tabulate
[coverage:run]
branch = True
source =
src/supa
omit =
src/supa/grpc_nsi/*
# A = builtins
# B = bugbear
# C = comprehensions
# D = docstrings
# E = pycodestyle errors, rst
# F = flake8 pyflakes, rst
# G = logging-format
# P = str-format
# RST = rst-docstrings
# S = bandit
# T = print
# W = pycodestyle warnings
# B9 = bugbear opinions
# ISC = implicit-str-concat
[flake8]
max-line-length = 120
select = A, B, C, D, E, F, G, P, RST, S, T, W, B9, ISC
doctests = True
ignore =
# Missing docstring in public module
D100
# Missing docstring in public package
D104
# Use r""" if any backslashes in a docstring
D301
# Use of assert detected
S101
# line break before binary operator
W503
# Standard pseudo-random generators are not suitable for security/cryptographic purposes.
S311
exclude =
.git
.cache
.eggs
__pycache__
docs
build
dist
.venv
venv
src/supa/grpc_nsi
[mypy]
ignore_missing_imports = True
disallow_untyped_calls = False
disallow_untyped_defs = True
disallow_incomplete_defs = True
disallow_untyped_decorators = True
no_implicit_optional = True
warn_redundant_casts = False
warn_unused_ignores = True
warn_return_any = True
warn_unreachable = True
strict_equality = True
show_error_codes = True
show_column_numbers = True
[mypy-supa.grpc_nsi.*]
disallow_untyped_defs = False
disallow_incomplete_defs = False
disallow_untyped_decorators = False