-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
79 lines (71 loc) · 1.82 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[project]
name = "netsquid_p4"
authors=[{name = "Wojciech Kozlowski", email = "w.kozlowski@tudelft.nl"}]
maintainers=[{name = "Wojciech Kozlowski", email = "w.kozlowski@tudelft.nl"}]
description = "A library for running P4 pipelines in the BMv2 JSON format in NetSquid"
readme = "README.md"
license = { file = "LICENSE" }
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS",
"Development Status :: 5 - Production/Stable",
]
version = "1.0.0"
requires-python = ">=3.8"
dependencies = [
"netsquid >= 1.1.6, < 2",
"pyp4 @ git+ssh://git@github.com:QuTech-Delft/pyp4.git",
]
[project.optional-dependencies]
dev = [
"build",
"flake8",
"netsquid_netconf",
"pylint",
"pytest",
"pytest-cov",
]
docs = [
"sphinx",
"sphinx-rtd-theme",
]
[tool.pylint]
load-plugins = [
"pylint.extensions.no_self_use",
]
disable = [
"too-few-public-methods",
]
variable-rgx = "^[a-z_][a-z0-9_]{1,30}$"
[tool.pytest.ini_options]
filterwarnings = [
"error",
"ignore::UserWarning",
# Warnings we have no control over, because e.g. they come from netsquid.
'ignore:Please use `csr_matrix` from the `scipy.sparse` namespace, the `scipy.sparse.csr` namespace is deprecated:DeprecationWarning',
]
[tool.coverage.report]
exclude_lines = [
# Have to re-enable the standard pragma
"pragma: no cover",
# Exclude defensive programming
"raise AssertionError",
"raise NotImplementedError",
]
[tool.pyright]
include = [
"netsquid_p4",
"tests",
"examples"
]
exclude = [
"**/__pycache__"
]
typeCheckingMode = "off"
pythonVersion = "3.8"
pythonPlatform = "Linux"