-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
124 lines (107 loc) · 2.98 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[project]
name = "genie_python"
dynamic = ["version"]
description = "Instrument control & scripting for the ISIS Neutron & Muon source"
readme = "README.md"
requires-python = ">=3.11"
license = {file = "LICENSE"}
authors = [
{name = "ISIS Experiment Controls", email = "[email protected]" }
]
maintainers = [
{name = "ISIS Experiment Controls", email = "[email protected]" }
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.11",
]
dependencies = [
# EPICS Channel access lib
"CaChannel",
# Send log messages to graylog
"graypy",
# genie_python will install ipython completers
"ipython",
# Getting user details from database
"mysql-connector-python",
# Array support for CA calls
"numpy",
# EPICS PV access lib
"p4p",
# Used to find process by name to kill it
"psutil",
# For linting user scripts on g.load_script()
"pylint",
# For type-checking user scripts on g.load_script()
"pyright",
# For setting windows job-object flags
"pywin32;platform_system=='Windows'",
]
[project.optional-dependencies]
# Make plotting an optional dependency as:
# - It fixes a *specific* matplotlib version
# - It depends on a couple of heavyweight libs (py4j and tornado) that aren't necessary otherwise
plot = [
# When updating, check plotting works in GUI. Must keep pinned to a specific, tested version.
"matplotlib==3.9.2",
# Python <-> Java communication, to spawn matplotlib plots in GUI
"py4j",
# Tornado webserver used by custom backend
"tornado",
]
doc = [
"sphinx",
"sphinx_rtd_theme",
"myst_parser",
"sphinx-autobuild",
]
dev = [
"genie_python[plot,doc]",
"mock",
"parameterized",
"pyhamcrest",
"pytest",
"pytest-cov",
"ruff>=0.6",
]
[project.urls]
"Homepage" = "https://github.com/isiscomputinggroup/genie"
"Bug Reports" = "https://github.com/isiscomputinggroup/genie/issues"
"Source" = "https://github.com/isiscomputinggroup/genie"
[tool.pytest.ini_options]
testpaths = "tests"
addopts = "--cov --cov-report=html -vv"
[tool.coverage.run]
branch = true
source = ["src"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@abstractmethod",
]
[tool.coverage.html]
directory = "coverage_html_report"
[tool.pyright]
include = ["src", "tests"]
reportConstantRedefinition = true
reportDeprecated = true
reportInconsistentConstructor = true
reportMissingParameterType = true
reportMissingTypeArgument = true
reportUnnecessaryCast = true
reportUnnecessaryComparison = true
reportUnnecessaryContains = true
reportUnnecessaryIsInstance = true
reportUntypedBaseClass = true
reportUntypedClassDecorator = true
reportUntypedFunctionDecorator = true
[tool.setuptools_scm]
version_file = "src/genie_python/_version.py"
[tool.build_sphinx]