-
Notifications
You must be signed in to change notification settings - Fork 28
/
pyproject.toml
210 lines (198 loc) · 4.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
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8", "wheel", "cython"]
build-backend = "setuptools.build_meta"
[project]
name = "rosettasciio"
description = "Reading and writing scientific file formats"
requires-python = ">=3.8"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"dask[array] >=2021.5.1",
"python-dateutil",
"numpy >=1.20",
"pint >=0.8",
# python-box API changed on major release
# and compatibility needs to be checked
"python-box >=6,<8",
"pyyaml",
]
dynamic = ["version"]
keywords = [
"electron microscopy",
"hyperspy",
"input/output",
"io",
"microscopy",
"scientific data formats",
"spectroscopy",
"numpy",
"python",
"scipy",
"asw",
"blo",
"bcf",
"de5",
"dens",
"dm3",
"dm4",
"eds",
"elid",
"emd",
"emi",
"hdf5",
"hspy",
"img",
"itex",
"map",
"mib",
"mrc",
"mrcz",
"msa",
"nxs",
"prz",
"pts",
"rpl",
"ser",
"spc",
"sur",
"spx",
"tvf",
"tvips",
"unf",
"usid",
"wdf",
"zspy",
]
[project.urls]
"Homepage" = "https://hyperspy.org/rosettasciio"
"Bug Reports" = "https://github.com/hyperspy/rosettasciio/issues"
"Source" = "https://github.com/hyperspy/rosettasciio"
[project.license]
file = "COPYING.txt"
[project.optional-dependencies]
blockfile = ["scikit-image>=0.18"]
eds-stream = ["sparse"]
hdf5 = ["h5py>=2.3"]
image = ["imageio>=2.16"]
mrcz = ["blosc>=1.5", "mrcz>=0.3.6"]
scalebar_export = ["matplotlib-scalebar", "matplotlib>=3.5"]
speed = ["numba>=0.52"]
tiff = ["tifffile>=2022.7.28", "imagecodecs"]
usid = ["pyUSID>=0.0.11"]
zspy = ["zarr", "msgpack"]
tests = [
"filelock",
"pooch",
"pytest>=3.6",
"pytest-xdist",
"pytest-rerunfailures",
"pytest-cov",
"setuptools_scm",
]
doc = [
"numpydoc",
"pooch",
"pydata-sphinx-theme>=0.13",
"setuptools_scm",
"sphinx",
"sphinx-favicon",
"sphinxcontrib-towncrier",
# unpin when sphinxcontrib-towncrier supports towncrier >=24
"towncrier<24",
]
all = [
"rosettasciio[blockfile]",
"rosettasciio[eds-stream]",
"rosettasciio[hdf5]",
"rosettasciio[mrcz]",
"rosettasciio[scalebar_export]",
"rosettasciio[speed]",
"rosettasciio[tiff]",
"rosettasciio[usid]",
"rosettasciio[zspy]",
]
dev = [
"ruff",
"rosettasciio[doc]",
"rosettasciio[all]",
"rosettasciio[tests]"
]
[tool.pytest.ini_options]
# Note we may need to use `-n 2` argument for pytest-xdist on CI
# due to https://github.com/pytest-dev/pytest-xdist/issues/9.
# "-ra", # Display summary: "all except passes"
# "--numprocesses auto --dist loadfile", # for pytest-xdist
addopts = "-ra --numprocesses auto --dist loadfile"
minversion = "6.0"
testpaths = [
"rsciio/tests",
]
[tool.setuptools.packages.find]
where = ["."] # default
include = ["rsciio*"]
# Excluding rsciio.tests.data folder is done in MANIFEST.in
# because setuptools doesn't support it in pyproject.toml
[tool.setuptools.package-data]
"rsciio" = ["*test_compilers.c", "*.yaml", "*registry.txt"]
[tool.setuptools_scm]
# Presence enables setuptools_scm, the version will be determine at build time from git
# The version will be updated by the `prepare_release.py` script
fallback_version = "0.7.dev0"
[tool.towncrier]
directory = "upcoming_changes/"
filename = "CHANGES.rst"
issue_format = "`#{issue} <https://github.com/hyperspy/rosettasciio/issues/{issue}>`_"
title_format = "{version} ({project_date})"
package = "rsciio"
type = [
{ directory = "new", name = "New features", showcontent = true },
{ directory = "enhancements", name = "Enhancements", showcontent = true },
{ directory = "bugfix", name = "Bug Fixes", showcontent = true },
{ directory = "api", name = "API changes", showcontent = true },
{ directory = "deprecation", name = "Deprecations", showcontent = true },
{ directory = "doc", name = "Improved Documentation", showcontent = true },
{ directory = "maintenance", name = "Maintenance", showcontent = true },
]
[tool.coverage.run]
branch = true
source = ["rsciio"]
omit = [
"prepare_release.py",
"rsciio/tests/*",
"setup.py",
"update_registry.py"
]
[tool.coverage.report]
precision = 2
[tool.ruff.lint]
select = [
# Pyflakes
"F",
# Pycodestyle
"E",
"W",
# isort
"I001"
]
exclude = [
"examples",
]
# Rely on the formatter to define line-length
# and avoid conflicting lint rules
# https://docs.astral.sh/ruff/formatter/#conflicting-lint-rules
extend-ignore = ["E501"]