-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
157 lines (140 loc) · 3.29 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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["httomo*"]
[tool.setuptools.package-data]
httomo = [
"methods_database/packages/*.yaml",
"methods_database/packages/external/*.yaml",
"methods_database/packages/external/httomolibgpu/*.yaml",
"methods_database/packages/external/httomolib/*.yaml",
"methods_database/packages/external/tomopy/*.yaml",
]
[tool.setuptools-git-versioning]
enabled = true
template = "{tag}"
dev_template = "{tag}"
[project]
name = "httomo"
description = "High Throughput Tomography framework."
readme = "README.rst"
license = {text = "BSD-3-Clause"}
authors = [
{name = "Daniil Kazantsev", email = "[email protected]"},
{name = "Yousef Moazzam", email = "[email protected]"},
{name = "Jessica Verschoyle", email = "[email protected]"},
{name = "Naman Gera", email = "[email protected]"},
{name = "Garry ODonnell"},
{name = "Jacob Williamson"},
{email = "[email protected]"},
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD 3-clause",
"Programming Language :: Python :: 3.10",
]
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"click",
"numpy",
"httomolib",
"loguru",
"typing-extensions",
"tqdm",
"graypy"
]
[project.scripts]
httomo = "httomo.cli:main"
[project.urls]
repository = "https://github.com/DiamondLightSource/HTTomo"
[project.optional-dependencies]
cpu = ["tomopy" ]
gpu = ["httomolibgpu"]
dev-cpu = [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"flake8",
"pyproject-flake8",
"pydocstyle",
"toml",
"httomolib[dev]",
"tomopy",
"plumbum",
"typing_extensions",
"mypy",
"types-PyYAML",
"pre-commit"
]
dev-gpu = [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"flake8",
"pyproject-flake8",
"pydocstyle",
"toml",
"httomolib[dev]",
"httomolibgpu[dev]",
"tomopy",
"plumbum",
"typing_extensions",
"mypy",
"types-PyYAML",
"pre-commit"
]
[tool.mypy]
# Ignore missing stubs for modules we use
ignore_missing_imports = true
python_version = "3.10" # make sure we're compatible with 3.9
plugins = 'numpy.typing.mypy_plugin'
[tool.isort]
profile = "black"
float_to_top = true
[tool.flake8]
# Make flake8 respect black's line length (default 88),
max-line-length = 88
extend-ignore = [
"E203",
"F811"
]
per-file-ignores = [
"*pyi:E302"
]
[tool.pydocstyle]
convention = "google"
add-ignore = [
"D100", # Ignore missing docstrings in public modules
"D104", # Ignore missing docstrings in public packages
"D418", # Ignore missing docstrings in dunder methods; See: https://github.com/PyCQA/pydocstyle/issues/525
]
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"-vv",
"-ra",
"-q",
"--tb=native",
]
testpaths = [
"tests",
]
filterwarnings = [
"ignore::ImportWarning",
"ignore:distutils:DeprecationWarning:numexpr"
]
[tool.coverage.run]
data_file = "/tmp/httomo.coverage"
[tool.coverage.paths]
# Tests are run from installed location, map back to the src directory
source = [
"httomo",
"**/site-packages/"
]