Repository navigation
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·71 lines (67 loc) · 2.24 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·71 lines (67 loc) · 2.24 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
69
70
71
import setuptools
with open("README.md", "r") as fh:
long_description = fh.read()
# Install tiers (see hylite/_deps.py for runtime tier checks).
# pip install hylite -> DEFAULT (install_requires)
# pip install hylite[opencv] -> DEFAULT + OpenCV
# pip install hylite[gdal] -> DEFAULT + GDAL
# pip install hylite[all] -> DEFAULT + OpenCV + GDAL
_BASIC = [ # these are really core dependencies
"numpy",
"tqdm",
"gfit",
]
_LITE = _BASIC + [ # these lightweight deps needed for some / many tasks
"utm",
"pytz",
"laspy",
"plyfile",
"astral",
"piexif",
"numba",
"natsort",
]
_DEFAULT = _LITE + [ # default install includes common scientific python stack (matplotlib, scipy, etc)
"matplotlib>=3",
"Pillow",
"scikit-image",
# used widely in io / filters / transforms but not part of the named stacks above:
"spectral",
"roipoly",
"scikit-learn",
"scipy>=1.4",
]
_OPENCV = ["opencv-contrib-python>=4.5"]
_GDAL = ["GDAL>=3"]
setuptools.setup(
name="hylite",
version="1.41",
author="Helmholtz Institute Freiberg",
author_email="s.thiele@hzdr.de",
description="Open-source toolbox for hyperspectral geology.",
long_description="A python package for loading, correcting, projecting and analysing hyperspectral datasets, with particular emphasis on geological applications.",
long_description_content_type="text/markdown",
url="https://github.com/samthiele/hylite",
packages=setuptools.find_packages(),
classifiers=[
"Development Status :: 3 - Alpha",
"Programming Language :: Python :: 3",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering"
],
keywords='hyperspectral data analysis hypercloud geology mineral mapping',
python_requires='>=3.6',
install_requires=_DEFAULT,
extras_require={
"opencv": _OPENCV,
"gdal": _GDAL,
"all": _OPENCV + _GDAL,
},
project_urls={
'Source': 'https://github.com/samthiele/hylite',
'Documentation': 'https://hifexplo.github.io/hylite/hylite.html',
},
package_data={"": ["*.txt", "*.hdr", "*.cal", "*.dat"]}
)