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

"""The setup script."""

from setuptools import setup, find_packages
Daniel Scheffler's avatar
Daniel Scheffler committed
7
import warnings
8
9
10
11
12
13
14

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

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

15
requirements = ['numpy', 'gdal', 'shapely', 'scikit-image', 'matplotlib', 'geopandas', 'spectral', 'geoarray',
16
17
18
19
20
                'py_tools_ds', 'plotly'
                # 'pykrige'  # conda install --yes -c conda-forge pykrige
                # 'pyfftw', # conda install --yes -c conda-forge pyfftw=0.10.4 ; \
                # 'basemap', # conda install --yes -c conda-forge basemap; \
                ]
21
22
23
24
25

setup_requirements = [
    # TODO(danschef): put setup requirements (distutils extensions, etc.) here
]

26
test_requirements = ['coverage']
27
28
29

setup(
    name='arosics',
30
    version='0.4.18',
31
32
33
34
    description="An Automated and Robust Open-Source Image Co-Registration Software for Multi-Sensor Satellite Data",
    long_description=readme + '\n\n' + history,
    author="Daniel Scheffler",
    author_email='daniel.scheffler@gfz-potsdam.de',
Daniel Scheffler's avatar
Daniel Scheffler committed
35
    url='https://gitext.gfz-potsdam.de/danschef/arosics',
Daniel Scheffler's avatar
Daniel Scheffler committed
36
    packages=find_packages(),
37
    include_package_data=True,
38
    scripts=["bin/arosics_cli.py"],
39
    install_requires=requirements,
Daniel Scheffler's avatar
Daniel Scheffler committed
40
    license="GNU General Public License v3",
41
42
43
    zip_safe=False,
    keywords='arosics',
    classifiers=[
Daniel Scheffler's avatar
Daniel Scheffler committed
44
        'Development Status :: 4 - Beta',
45
        'Intended Audience :: Developers',
Daniel Scheffler's avatar
Daniel Scheffler committed
46
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
47
        'Natural Language :: English',
48
        "Programming Language :: Python :: 2",
49
        'Programming Language :: Python :: 2.7',
50
51
52
53
54
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
55
56
57
58
59
    ],
    test_suite='tests',
    tests_require=test_requirements,
    setup_requires=setup_requirements,
)
Daniel Scheffler's avatar
Daniel Scheffler committed
60
61
62
63
64
65
66
67
68
69
70
71
72


# check for pyffw
try:
    import pyfftw
except ImportError:
    warnings.warn('You need to install pyfftw manually (see https://pypi.python.org/pypi/pyFFTW) for speeding up '
                  'the computation. It is not automatically installed.') # TODO

# check for basemap
try:
    from mpl_toolkits.basemap import Basemap
except ImportError:
73
    warnings.warn('You need to install basemap manually if you want to plot maps (see www./matplotlib.org/basemap). '
Daniel Scheffler's avatar
Daniel Scheffler committed
74
                  'It is not automatically installed.') # TODO
75
76
77
78
79
80
81

# check for pykrige
try:
    import pykrige
except ImportError:
    warnings.warn('You need to install pykrige manually if you want to interpolate tie point grids produced by AROSICS '
                  '(see https://github.com/bsmurphy/PyKrige). It is not automatically installed.') # TODO