-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
68 lines (66 loc) · 2.36 KB
/
Copy pathsetup.py
File metadata and controls
68 lines (66 loc) · 2.36 KB
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
from itertools import chain
from setuptools import setup, find_packages
from orix import __name__, __version__, __author__, __author_email__, __description__
# Projects with optional features for building the documentation and running
# tests. From setuptools:
# https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies
extra_feature_requirements = {
"doc": [
"furo",
"ipykernel", # https://github.com/spatialaudio/nbsphinx/issues/121
"nbsphinx >= 0.7",
"sphinx >= 3.0.2",
"sphinx-copybutton >= 0.2.5",
"sphinx-gallery >= 0.6",
"sphinxcontrib-bibtex >= 1.0",
"scikit-image",
"scikit-learn",
],
"tests": ["pytest >= 5.4", "pytest-cov >= 2.8.1", "coverage >= 5.0"],
}
extra_feature_requirements["dev"] = ["black", "manifix", "pre-commit >= 1.16"] + list(
chain(*list(extra_feature_requirements.values()))
)
setup(
name=__name__,
version=str(__version__),
license="GPLv3",
url="https://orix.readthedocs.io",
author=__author__,
author_email=__author_email__,
description=__description__,
long_description=open("README.rst").read(),
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Physics",
],
packages=find_packages(exclude=["orix/tests"]),
extras_require=extra_feature_requirements,
# fmt: off
install_requires=[
"dask[array]",
"diffpy.structure >= 3",
"h5py",
"matplotlib >= 3.3",
"matplotlib-scalebar",
"numba",
"numpy",
"numpy-quaternion",
"pooch >= 0.13",
"scipy",
"tqdm",
],
# fmt: on
package_data={"": ["LICENSE", "README.rst", "readthedocs.yml"], "orix": ["*.py"]},
)