forked from hyperspy/rosettasciio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
169 lines (151 loc) · 4.18 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
[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",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"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",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
dependencies = [
"dask[array]>=2021.3.1",
"python-dateutil",
"numpy>=1.20.0",
"pint>=0.8",
"python-box>=6,<7",
"pyyaml",
]
dynamic = ["version"]
[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>=2020.2.16", "imagecodecs>=2020.1.31"]
# Add sidpy dependency and pinning as workaround to fix pyUSID import
# Remove sidpy dependency once https://github.com/pycroscopy/pyUSID/issues/85 is fixed.
usid = ["pyUSID", "sidpy<=0.12.0"]
zspy = ["zarr"]
tests = [
"pooch",
"pytest>=3.6",
"pytest-xdist",
"pytest-rerunfailures",
"pytest-cov",
"setuptools_scm",
]
docs = [
"numpydoc",
"pooch",
"pydata-sphinx-theme>=0.13",
"setuptools_scm",
"sphinx",
"sphinx-favicon",
"sphinxcontrib-towncrier",
"towncrier",
]
all = [
"rosettasciio[blockfile]",
"rosettasciio[eds-stream]",
"rosettasciio[hdf5]",
"rosettasciio[mrcz]",
"rosettasciio[scalebar_export]",
"rosettasciio[speed]",
"rosettasciio[tiff]",
"rosettasciio[usid]",
"rosettasciio[zspy]",
]
dev = [
"black",
"rosettasciio[docs]",
"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
[tool.towncrier]
package = "rsciio"
filename = "CHANGES.rst"
directory = "upcoming_changes/"
title_format = "{version} ({project_date})"
issue_format = "`#{issue} <https://github.com/hyperspy/rosettasciio/issues/{issue}>`_"
[[tool.towncrier.type]]
directory = "new"
name = "New features"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "doc"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "enhancements"
name = "Enhancements"
showcontent = true
[[tool.towncrier.type]]
directory = "api"
name = "API changes"
showcontent = true
[[tool.towncrier.type]]
directory = "maintenance"
name = "Maintenance"
showcontent = true
[tool.coverage.run]
branch = true
source = ["rsciio"]
omit = [
"rsciio/tests/*",
"setup.py",
"update_registry.py"
]
[tool.coverage.report]
precision = 2