-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
180 lines (163 loc) · 5.36 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
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
175
176
177
178
179
180
[project]
name = "ska-mid-disq"
version = "0.5.1"
classifiers = [
"Development Status :: 3 - Alpha",
"License :: OSI Approved :: BSD 3-Clause License",
"Programming Language :: Python :: 3.10",
]
description = "SKA-Mid Dish Structure Qualification (DiSQ) software"
requires-python = ">=3.10, <3.12"
dependencies = [
"asyncua>=1.1.5",
# Fix PyQt6 version to match pyqt6-tools Designer version
"PyQt6=6.4.2",
"PyQt6-Qt6=6.4.3",
"pyyaml>=6.0.2",
"h5py>=3.12.1",
"platformdirs>=4.3.6",
"ska-mid-dish-steering-control>=0.1.2",
# "ska-mid-dish-steering-control @ git+https://gitlab.com/ska-telescope/ska-mid-dish-steering-control.git@main",
"ska-mid-wms @ git+https://gitlab.com/ska-telescope/ska-mid-wms.git@main",
]
license.file = "LICENSE"
readme = "README.md"
[project.optional-dependencies]
dev = [
"pyqt6-tools",
"pytest",
"pytest-qt",
"pytest-cov",
"assertpy",
"isort",
"black",
"pylint",
"pylint-junit",
"flake8",
"flake8-isort",
"flake8-formatter-junit-xml",
"flake8-builtins",
"flake8-docstrings",
"flake8-use-fstring",
"flake8-rst-docstrings",
"mypy",
"pep8-naming",
"build",
"Sphinx",
"sphinx-argparse",
"ska-ser-sphinx-theme @ git+https://gitlab.com/ska-telescope/[email protected]",
"sphinx-autodoc-typehints",
"sphinxcontrib-mermaid",
"recommonmark",
"matplotlib",
"plotly",
"numpy",
]
[project.scripts]
disq-gui = "ska_mid_disq.mvcmain:main"
disq-validate-server = "ska_mid_disq.server_validator:main"
[project.urls]
GitLab = "https://gitlab.com/ska-telescope/ska-mid-disq"
source = "https://gitlab.com/ska-telescope/ska-mid-disq"
[[project.authors]] # Further authors may be added by duplicating this section
email = "[email protected]"
name = "Thomas Juerges"
[[project.authors]]
email = "[email protected]"
name = "Oliver Skivington"
[[project.authors]]
email = "[email protected]"
name = "Ulrik Pedersen"
[[project.authors]]
email = "[email protected]"
name = "Jarrett Engelbrecht"
[tool.poetry]
include = ["MANIFEST.skao.int"]
name = "ska-mid-disq"
version = "0.5.1"
description = "SKA-Mid Dish Structure Qualification (DiSQ) software"
authors = [
"Oliver Skivington <[email protected]>",
"Thomas Juerges <[email protected]>",
"Ulrik Pedersen <[email protected]>",
"Jarrett Engelbrecht <[email protected]>",
]
license = "BSD-3-Clause"
readme = "README.md"
repository = "https://gitlab.com/ska-telescope/ska-mid-disq"
documentation = "https://developer.skatelescope.org/projects/ska-mid-disq"
[tool.poetry.scripts]
disq-gui = "ska_mid_disq.mvcmain:main"
disq-validate-server = "ska_mid_disq.server_validator:main"
[[tool.poetry.source]]
name = "ska"
url = "https://artefact.skao.int/repository/pypi-all/simple"
[tool.poetry.dependencies]
python = ">=3.10, <3.12"
asyncua = "^1.1.5"
# Fix PyQt6 version to match pyqt6-tools Designer version
PyQt6 = "6.4.2"
PyQt6-Qt6 = "6.4.3"
pyyaml = "^6.0.2"
h5py = "^3.12.1"
platformdirs = "^4.3.6"
ska-mid-dish-steering-control = "^0.1.2"
# ska-mid-dish-steering-control = { path = "../ska-mid-dish-steering-control", develop = true }
# ska-mid-dish-steering-control = { git = "https://gitlab.com/ska-telescope/ska-mid-dish-steering-control.git", branch = "main" }
ska-mid-wms = {git = "https://gitlab.com/ska-telescope/ska-mid-wms.git", branch = "main"}
[tool.poetry.group.dev.dependencies]
pyqt6-tools = "^6.4.2"
pytest = "^8.1.1"
pytest-qt = "^4.4.0"
pytest-cov = "^4.0.0"
assertpy = "^1.1"
isort = "^5.13.2"
black = "^24.2.0"
pylint = "^3.2.4"
pylint-junit = "^0.3.2"
flake8 = "^7.0.0"
flake8-formatter-junit-xml = "^0.0.6"
flake8-builtins = "^2.1.0"
flake8-docstrings = "^1.7.0"
flake8-use-fstring = "^1.4"
flake8-rst-docstrings = "^0.3.0"
mypy = "^1.9.0"
pep8-naming = "^0.13.3"
build = "^1.1.1"
numpy = "^1.26.4"
matplotlib = "^3.9.2" # Used in the utility Reader class.
plotly = "^5.24.1" # Used in the utility Reader class.
[tool.poetry.group.docs.dependencies]
Sphinx = "^7.2.6"
sphinx-autodoc-typehints = "^2.0.0"
ska-ser-sphinx-theme = "^0.1.2"
sphinx-argparse = "^0.4.0"
sphinxcontrib-mermaid = "^0.9.2"
recommonmark = "^0.7.1"
[tool.mypy]
ignore_missing_imports = true # Ignore missing stubs in imported modules
strict_optional = false # TODO: Remove, see https://mypy.readthedocs.io/en/stable/config_file.html#none-and-optional-handling
disallow_incomplete_defs = true
disable_error_code = "call-overload"
[tool.isort]
profile = "black"
[tool.black] # See https://black.readthedocs.io/en/stable/usage_and_configuration/the_basics.html#configuration-format
line-length = 88
[tool.pytest.ini_options]
# Run pytest with all our checkers, and don't spam us with massive tracebacks on error
addopts = """
--tb=native -v --doctest-modules --doctest-glob="*.rst"
"""
# https://iscinumpy.gitlab.io/post/bound-version-constraints/#watch-for-warnings
filterwarnings = "error"
# Doctest python code in docs, python code in src docstrings, test functions in tests
testpaths = "docs src tests"
qt_api = "pyqt6"
[tool.coverage.run]
omit = ["__init__.py"]
[tool.coverage.paths]
# Tests are run from installed location, map back to the src directory
source = ["src", "**/site-packages/"]
[build-system]
requires = ["poetry-core>=1.8.0"]
build-backend = "poetry.core.masonry.api"