-
Notifications
You must be signed in to change notification settings - Fork 6
/
pyproject.toml
125 lines (111 loc) · 2.73 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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
packages = ["httomolibgpu",
"httomolibgpu.misc",
"httomolibgpu.prep",
"httomolibgpu.recon",
"httomolibgpu.cuda_kernels"]
[tool.setuptools.package-data]
httomolibgpu = ["*.cu", "*.cuh"] # include cuda kernels in package
[tool.setuptools-git-versioning]
enabled = true
template = "{tag}"
dev_template = "{tag}"
[project]
name = "httomolibgpu"
description = "Commonly used tomography data processing methods at DLS."
readme = "README.rst"
license = {text = "BSD-3-Clause"}
authors = [
{name = "Daniil Kazantsev", email = "[email protected]"},
{name = "Yousef Moazzam", email = "[email protected]"},
{name = "Naman Gera", email = "[email protected]"},
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 3.10",
"Environment :: GPU :: NVIDIA CUDA"
]
requires-python = ">=3.10"
dynamic = ["version"]
dependencies = [
"cupy==12.3.0",
"nvtx",
"numpy",
"scipy",
"pillow",
"scikit-image",
"tomobar"
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-xdist",
"pytest-benchmark",
"flake8",
"pyproject-flake8",
"pydocstyle",
"toml",
"imageio",
"h5py",
"pre-commit",
"pyfftw"
]
[project.urls]
"Repository" = "https://github.com/DiamondLightSource/httomolibgpu"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"-vv",
"-ra",
"-q",
"--benchmark-sort=mean",
"--benchmark-columns=mean",
"--tb=native",
"--cov-report=term",
"--cov-report=xml:cov.xml",
]
testpaths = [
"tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::pytest.PytestUnknownMarkWarning",
"ignore::scipy.stats.ConstantInputWarning",
]
[tool.coverage.run]
data_file = "/tmp/httomolibgpu.coverage"
[tool.coverage.paths]
# Tests are run from installed location, map back to the src directory
source = [
"httomolibgpu",
"**/site-packages/"
]
[tool.mypy]
# Ignore missing stubs for modules we use
ignore_missing_imports = true
[tool.isort]
profile = "black"
float_to_top = true
[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.flake8]
# Make flake8 respect black's line length (default 88),
max-line-length = 88
extend-ignore = [
"E203",
"F811"
]
per-file-ignores = [
"*pyi:E302"
]