-
Notifications
You must be signed in to change notification settings - Fork 50
/
pyproject.toml
112 lines (105 loc) · 2.9 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "orix"
authors = [{name = "orix developers"}]
description = "orix is an open-source Python library for handling crystal orientation mapping data"
license = {file = "LICENSE"}
readme = {file = "README.rst", content-type = "text/x-rst"}
dynamic = ["version"]
requires-python = ">= 3.10"
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
]
dependencies = [
"dask[array]",
"diffpy.structure >= 3.0.2",
"h5py",
"matplotlib >= 3.6.1",
"matplotlib-scalebar",
"numba",
"numpy",
"pooch >= 0.13",
# TODO: Remove once diffpy.structure >= 3.2.1
"pycifrw",
"scipy",
"tqdm",
# TODO: Remove once Python >= 3.11
"typing_extensions",
]
[project.optional-dependencies]
all = [ # NB! Update constants.py if this list is updated!
"numpy-quaternion",
]
doc = [
"ipykernel", # Used by nbsphinx to execute notebooks
"memory_profiler",
"nbconvert >= 7.16.4",
"nbsphinx >= 0.7",
"numpydoc",
"pydata-sphinx-theme",
"scikit-image",
"scikit-learn",
"sphinx >= 3.0.2",
"sphinx-codeautolink[ipython]",
"sphinx-copybutton >= 0.2.5",
"sphinx-design",
"sphinx-gallery",
"sphinxcontrib-bibtex >= 1.0",
]
tests = [
"numpydoc",
"pytest >= 5.4",
"pytest-rerunfailures",
"pytest-xdist",
]
coverage = [
"coverage >= 5.0",
"pytest-cov >= 2.8.1",
]
dev = [
"black[jupyter]",
"hatch",
"isort >= 5.10",
"outdated",
"pre-commit >= 1.16",
"orix[doc,tests,coverage]",
]
[tool.hatch.version]
path = "orix/__init__.py"
[tool.coverage.report]
precision = 2
[tool.coverage.run]
branch = false
source = ["orix"]
relative_files = true
omit = [
"orix/__init__.py",
"orix/tests/**/*.py",
]
[tool.pytest.ini_options]
addopts = [
"-ra",
"--ignore=doc/_static/img/colormap_banners/create_colormap_banners.py",
"--ignore=examples/*/*.py",
]
doctest_optionflags = "NORMALIZE_WHITESPACE"
filterwarnings = [
"ignore:Deprecated call to `pkg_resources:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
]
[tool.isort]
profile = "black"
filter_files = true
force_sort_within_sections = true