setup.py 2.61 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
    'matplotlib', 'numpy', 'scikit-learn', 'scipy', 'gdal', 'pyproj', 'shapely', 'ephem', 'pyorbital', 'dill',
15
    'pandas', 'numba', 'spectral', 'geopandas', 'iso8601', 'pyinstrument', 'geoalchemy2', 'sqlalchemy', 'psycopg2',
16
    'py_tools_ds', 'geoarray', 'arosics'
17
    # fmask # conda install -c conda-forge python-fmask
18
    #'pyhdf', # conda install --yes -c conda-forge pyhdf
19
    #'sicor', # pip install git+https://gitext.gfz-potsdam.de/hollstei/sicor.git
20
]
Daniel Scheffler's avatar
Daniel Scheffler committed
21
setup_requirements = [] # TODO(danschef): put setup requirements (distutils extensions, etc.) here
22
test_requirements = requirements+ ['coverage', 'nose', 'nose-htmloutput', 'rednose']
23
24

setup(
25
    name='gms_preprocessing',
Daniel Scheffler's avatar
Daniel Scheffler committed
26
    version='0.6.1',
27
28
29
30
    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',
31
    url='https://gitext.gfz-potsdam.de/danschef/gms_preprocessing',
32
    packages=find_packages(), # searches for packages with an __init__.py and returns them as properly formatted list
33
34
    package_dir={'gms_preprocessing':'gms_preprocessing'},
    package_data={"database": ["gms_preprocessing/database/*"]},
35
36
    include_package_data=True,
    install_requires=requirements,
Daniel Scheffler's avatar
Daniel Scheffler committed
37
    scripts=["bin/run_gms.py"],
38
39
    license="GNU General Public License v3",
    zip_safe=False,
40
    keywords='gms_preprocessing',
41
    classifiers=[
Daniel Scheffler's avatar
Daniel Scheffler committed
42
        'Development Status :: 4 - Beta',
43
44
45
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Natural Language :: English',
46
        "Programming Language :: Python :: 2",
47
        'Programming Language :: Python :: 2.7',
48
49
50
51
52
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
53
54
55
56
    ],
    test_suite='tests',
    tests_require=test_requirements
)
57
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.'
                  'It is not automatically installed.') # TODO