forked from workfloworchestrator/SuPA
/
setup.cfg
164 lines (153 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
[metadata]
name = SuPA
version = file: VERSION.txt
license = Apache-2.0
author = Guido Kollerie
author_email = guido@kollerie.com
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.8
Topic :: System :: Networking
[options]
packages = find:
package_dir = = src
include_package_data = true
python_requires = >= 3.8.3
install_requires =
grpcio ~= 1.62.0 # version number should match that of `grpcio-tools` in `pyproject.toml`
grpcio-tools ~= 1.62.0 # version number should match that of `grpcio-tools` in `pyproject.toml`
mypy-protobuf ~= 3.2.0
structlog ~= 20.1.0
colorama ~= 0.4.3
click ~= 8.0
pydantic[dotenv] ~= 1.6
python-statemachine ~= 0.8.0
sqlalchemy ~= 1.3.19
APScheduler ~= 3.6.3
tabulate ~= 0.8.9
more_itertools ~= 8.5.0
protobuf ~= 4.21.6
requests ~= 2.0
lxml ~= 4.0
lxml-stubs ~= 0.4.0
cherrypy ~= 18.0
htmlgen ~= 2.0.0
[options.extras_require]
dev =
bandit <= 1.7.2
black
flake8 < 5.0.0 # Due to https://github.com/tylerwince/flake8-bandit/issues/33
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.62.0 # version number should match that of `grpcio-tools` in `pyproject.toml`
grpc-stubs >= 1.53.0
pytest-grpc
isort
mypy >= 0.930, <= 1.0.1
protobuf >= 3.19.1
types-pytz
types-tabulate
pre-commit
pytest
pytest-cov
pytest-xdist
types-requests
types-setuptools
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/*
[flake8]
# 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
max-line-length = 120
select = A, B, C, D, E, F, G, P, RST, S, T, W, B9, ISC
doctests = True
ignore =
D100 # Missing docstring in public module
D104 # Missing docstring in public package
D301 # Use r""" if any backslashes in a docstring
S101 # Use of assert detected
W503 # line break before binary operator
S311 # Standard pseudo-random generators are not suitable for security/cryptographic purposes.
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