setup.py 3 KB
Newer Older
1
2
3
#!/usr/bin/env python
# -*- coding: utf-8 -*-

4
from setuptools import setup, find_packages
5
import warnings
6
7
8
9
10
11
12
13

with open('README.rst') as readme_file:
    readme = readme_file.read()

with open('HISTORY.rst') as history_file:
    history = history_file.read()

requirements = [
14
15
    'matplotlib', 'numpy', 'scikit-learn', 'scipy', 'gdal', 'pyproj', 'shapely', 'ephem', 'pyorbital', 'dill', 'pytz',
    'pandas', 'numba', 'spectral>=0.16', 'geopandas', 'iso8601', 'pyinstrument', 'geoalchemy2', 'sqlalchemy',
16
    'psycopg2', 'py_tools_ds>=0.9.1', 'geoarray>=0.6.12', 'arosics>0.6.2', 'six'
Daniel Scheffler's avatar
Daniel Scheffler committed
17
    # spectral<0.16  has some problems with writing signed integer 8bit data
18
    # fmask # conda install -c conda-forge python-fmask
19
20
    # 'pyhdf', # conda install --yes -c conda-forge pyhdf
    # 'sicor', # pip install git+https://gitext.gfz-potsdam.de/hollstei/sicor.git
21
]
22
23
setup_requirements = []  # TODO(danschef): put setup requirements (distutils extensions, etc.) here
test_requirements = requirements + ['coverage', 'nose', 'nose-htmloutput', 'rednose']
24
25

setup(
26
    name='gms_preprocessing',
27
    version='0.8.5',
28
29
30
31
    description="GeoMultiSens - Scalable Multi-Sensor Analysis of Remote Sensing Data",
    long_description=readme + '\n\n' + history,
    author="Daniel Scheffler",
    author_email='daniel.scheffler@gfz-potsdam.de',
32
    url='https://gitext.gfz-potsdam.de/geomultisens/gms_preprocessing',
33
34
    packages=find_packages(),  # searches for packages with an __init__.py and returns them as properly formatted list
    package_dir={'gms_preprocessing': 'gms_preprocessing'},
35
    package_data={"database": ["gms_preprocessing/database/*"]},
36
37
    include_package_data=True,
    install_requires=requirements,
Daniel Scheffler's avatar
Daniel Scheffler committed
38
    scripts=["bin/run_gms.py"],
39
40
    license="GNU General Public License v3",
    zip_safe=False,
41
    keywords='gms_preprocessing',
42
    classifiers=[
Daniel Scheffler's avatar
Daniel Scheffler committed
43
        'Development Status :: 4 - Beta',
44
45
46
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Natural Language :: English',
47
        "Programming Language :: Python :: 2",
48
        'Programming Language :: Python :: 2.7',
49
50
51
52
53
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
54
55
56
57
    ],
    test_suite='tests',
    tests_require=test_requirements
)
58
59
60
61
62
63
64
65


# check for pyhdf
try:
    import pyhdf
except ImportError:
    warnings.warn('If you have not compiled GDAL with HDF4 support you need to install pyhdf manually '
                  '(see http://pysclint.sourceforge.net/pyhdf/install.html) for processing Terra ASTER data.'
66
                  'It is not automatically installed.')  # TODO
67
68
69
70
71
72
73

# check for fmask
try:
    import fmask
except ImportError:
    warnings.warn("FMask library is missing. If you want to compute cloud masks via FMask, you have to install it "
                  "manually (e.g., by running 'conda install -c conda-forge python-fmask').")