forked from hyperspy/exspy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
146 lines (133 loc) · 3.6 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
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "exspy"
description = "EELS and EDS analysis with the HyperSpy framework"
requires-python = ">=3.8"
readme = "README.md"
keywords=[
"python",
"hyperspy",
"data analysis",
"microscopy",
"electron microscopy",
"electron energy loss spectroscopy",
"energy-dispersive X-ray spectroscopy",
"X-ray energy-dispersive spectroscopy",
"EELS",
"EDS",
"EDX",
"SEM",
"STEM",
"TEM",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
"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",
]
dependencies = [
"dask[array]",
"hyperspy>=2.0rc0",
"matplotlib",
"numexpr",
"numpy",
"pint",
"pooch",
"prettytable",
"requests",
"scipy",
"traits",
]
dynamic = ["version"]
[project.entry-points."hyperspy.extensions"]
exspy = "exspy"
[project.license]
file = "LICENSE"
[project.optional-dependencies]
"gui-jupyter" = ["hyperspy_gui_ipywidgets>=2.0"]
"gui-traitsui" = ["hyperspy_gui_traitsui>=2.0"]
"doc" = [
"numpydoc",
"pydata-sphinx-theme>=0.13",
"sphinx",
"sphinx-copybutton",
"sphinx-design",
"sphinx-favicon",
"sphinx-gallery",
"sphinxcontrib-towncrier",
"towncrier",
]
"tests" = [
"pytest >= 5.0",
"pytest-mpl",
"pytest-cov >= 2.8.1",
"pytest-xdist",
"setuptools-scm",
]
"dev" = ["black"]
"all" = [
"exspy[gui-jupyter]",
"exspy[gui-traitsui]"
]
[project.urls]
"Homepage" = "https://hyperspy.org/exspy"
"Bug Reports" = "https://github.com/hyperspy/exspy/issues"
"Source" = "https://github.com/hyperspy/exspy"
[tool.black]
force-exclude = '''
exspy/misc/eds/ffast_mac.py
| exspy/misc/elements.py
'''
[tool.coverage.run]
branch = true
source = ["hyperspy"]
omit = [
"hyperspy/tests/*",
"prepare_release.py",
]
[tool.coverage.report]
precision = 2
[tool.pytest.ini_options]
addopts = "-ra -n auto --dist loadfile"
testpaths = ["exspy/tests", ]
[tool.setuptools.packages.find]
include = ["exspy*"]
# Excluding rsciio.tests.data folder is done in MANIFEST.in
# because setuptools doesn't support it in pyproject.toml
[tool.setuptools.package-data]
"*" = [
"*hspy",
"*.yaml",
"*.msa",
]
[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.3.dev0"
[tool.towncrier]
directory = "upcoming_changes/"
filename = "CHANGES.rst"
issue_format = "`#{issue} <https://github.com/hyperspy/exspy/issues/{issue}>`_"
title_format = "{version} ({project_date})"
package_dir = "exspy"
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 },
]