-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
92 lines (82 loc) · 2.12 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
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "sdx-controller"
version = "3.0.0.dev0"
description = "AtlanticWave-SDX project's main controller"
authors = [
{ name = "Yufeng Xin", email = "yxin@renci.org" },
{ name = "Cong Wang", email = "cwang@renci.org" },
{ name = "Sajith Sasidharan", email = "sajith@renci.org" },
{ name = "Italo Valcy", email = "italo@ampath.net" },
]
readme = "README.md"
requires-python = ">=3.9"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
dependencies = [
"jsonschema == 3.2.0",
"connexion[swagger-ui] >= 2.14.1",
"asgiref >= 3.7.2",
"python_dateutil >= 2.8",
"setuptools >= 21.0.0",
"pika >= 1.2.0",
"dataset",
"pymongo > 3.0",
"sdx-pce @ git+https://github.com/atlanticwave-sdx/pce@3.0.0.dev5",
]
[project.optional-dependencies]
test = [
"flask_testing == 0.8.1",
"coverage >= 4.0.3",
"networkx == 2.8.8",
"pytest >= 7.2.0",
"pytest-cov >= 4.0.0",
"pluggy >= 0.3.1",
"py >= 1.4.31",
"randomize >= 0.13",
]
lint = [
"black == 24.*",
"isort == 5.*",
]
wsgi = [
"uvicorn"
]
[tool.setuptools]
packages = ["sdx_controller", "bapm_server"]
[tool.setuptools_scm]
# Write version info collected from git to a file. This happens when
# during package build step.
write_to = "sdx_controller/_version.py"
[tool.black]
include = '\.py?$'
[tool.isort]
profile = "black"
src_paths = ["sdx_controller", "bapm_server"]
[tool.pytest.ini_options]
addopts = "--cov=sdx_controller --cov=bapm_server"
testpaths = [
"sdx_controller/test"
]
[tool.coverage.run]
branch = true
omit = [ "sdx_controller/test/*" ]
relative_files = true
# The section below will let us have relative paths in test coverage
# report. See https://hynek.me/articles/testing-packaging/
[tool.coverage.paths]
source = [
# In checkouts.
"sdx_controller/",
"bapm_server/",
# In installed paths.
"**/site-packages/",
# In tox environments.
".tox/**/site-packages/",
]