-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (129 loc) · 2.96 KB
/
pyproject.toml
File metadata and controls
145 lines (129 loc) · 2.96 KB
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
[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-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 = "daniil.kazantsev@diamond.ac.uk"},
{name = "Yousef Moazzam", email = "yousef.moazzam@diamond.ac.uk"},
{name = "Jessica Verschoyle", email = "jessica.verschoyle@diamond.ac.uk"},
{name = "Naman Gera", email = "naman.gera@diamond.ac.uk"},
{name = "Garry ODonnell"},
{name = "Jacob Williamson"},
{email = "scientificsoftware@diamond.ac.uk"},
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.12"
dynamic = ["version"]
dependencies = [
"click",
"cupy==14.0.*",
"numpy==2.4.*",
"hdf5plugin",
"httomo-backends",
"loguru",
"mpi4py",
"pyyaml",
"tqdm",
"graypy"
]
[project.scripts]
httomo = "httomo.cli:main"
[project.urls]
repository = "https://github.com/DiamondLightSource/HTTomo"
[project.optional-dependencies]
cpu = ["httomolib" ]
gpu = ["httomolibgpu"]
dev-cpu = [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"flake8",
"pyproject-flake8",
"pydocstyle",
"httomolib[dev]",
"plumbum",
"mypy",
"types-PyYAML",
"pre-commit"
]
dev-gpu = [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-mock",
"flake8",
"pyproject-flake8",
"pydocstyle",
"httomolib[dev]",
"httomolibgpu[dev]",
"plumbum",
"mypy",
"types-PyYAML",
"pre-commit",
]
[tool.mypy]
# Ignore missing stubs for modules we use
ignore_missing_imports = true
python_version = "3.12" # make sure we're compatible with 3.12
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/"
]