-
Notifications
You must be signed in to change notification settings - Fork 13
/
pyproject.toml
122 lines (109 loc) · 2.47 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
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools-git-versioning"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
packages = ["tomobar",
"tomobar.supp",
"tomobar.cuda_kernels",
"tomobar.astra_wrappers",
]
[tool.setuptools.package-data]
tomobar = ["*.cu", "*.cuh"] # include cuda kernels in package
[tool.setuptools-git-versioning]
enabled = true
template = "{tag}"
dev_template = "{tag}"
[project]
name = "tomobar"
version = "2024.11"
description = "TOmographic MOdel-BAsed Reconstruction (ToMoBAR) software"
readme = "Readme.md"
license = {text = "GPLv3"}
authors = [
{name = "Daniil Kazantsev", email = "[email protected]"},
{name = "Viktor Nikitin", email = "[email protected]"},
]
classifiers = [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Programming Language :: Python :: 3.10",
"Environment :: GPU :: NVIDIA CUDA"
]
requires-python = ">=3.9"
dependencies = [
"numpy",
"astra-toolbox",
"scipy",
"pillow",
"scikit-image"
]
[project.optional-dependencies]
dev = [
"pytest",
"pytest-cov",
"pytest-xdist",
"flake8",
"pyproject-flake8",
"pydocstyle",
"toml",
"imageio",
"h5py"
]
[project.urls]
"Repository" = "https://github.com/dkazanc/ToMoBAR"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = [
"-vv",
"-ra",
"-q",
"--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/tomobar.coverage"
[tool.coverage.paths]
# Tests are run from installed location, map back to the src directory
source = [
"tomobar",
"**/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.black]
line-length = 88
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
'''