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

4
from setuptools import setup, find_packages
5
import warnings
6

Daniel Scheffler's avatar
Daniel Scheffler committed
7
with open('README.rst') as readme_file:
8
9
10
11
12
13
    readme = readme_file.read()

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

requirements = [
14
    'py_tools_ds>=0.4.2', 'numpy', 'matplotlib', 'six', 'gdal', 'shapely', 'geopandas', 'pandas', 'dill', 'mpld3', 'geojson',
15
    'folium', 'scikit-image'
16
    #'holoviews', #  conda install --yes -c ioam bokeh holoviews=1.8.0 ; \
17
    # git+https://github.com/matplotlib/basemap.git  # conda install --yes -c conda-forge basemap
18
    ]
19

Daniel Scheffler's avatar
Daniel Scheffler committed
20
test_requirements = ["coverage"]
21
22
23

setup(
    name='geoarray',
24
    version='0.5.8',
25
26
27
28
    description="Fast Python interface for geodata - either on disk or in memory.",
    long_description=readme + '\n\n' + history,
    author="Daniel Scheffler",
    author_email='danschef@gfz-potsdam.de',
29
    url='https://gitext.gfz-potsdam.de/danschef/geoarray',
30
    packages=find_packages(), # searches for packages with an __init__.py and returns them as properly formatted list
31
    package_dir={'geoarray':'geoarray'},
32
33
34
35
    include_package_data=True,
    install_requires=requirements,
    license="GNU General Public License v3",
    zip_safe=False,
36
    keywords=['geoarray', 'geoprocessing', 'gdal', 'numpy'],
37
    classifiers=[
38
        'Development Status :: 4 - Beta',
39
40
41
        'Intended Audience :: Developers',
        'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
        'Natural Language :: English',
42
        "Programming Language :: Python :: 2",
43
        'Programming Language :: Python :: 2.7',
44
45
46
47
48
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.3',
        'Programming Language :: Python :: 3.4',
        'Programming Language :: Python :: 3.5',
        'Programming Language :: Python :: 3.6',
49
50
51
52
    ],
    test_suite='tests',
    tests_require=test_requirements
)
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67


# check for holoviews
try:
    import holoviews
except ImportError:
    warnings.warn('You need to install holoviews manually (see www.holoviews.org) if you want to use interactive '
                  'plotting. It is not automatically installed.') # TODO

# check for basemap
try:
    from mpl_toolkits.basemap import Basemap
except ImportError:
    warnings.warn('You need to install basemap manually (see www./matplotlib.org/basemap) if you want to plot maps. '
                  'It is not automatically installed.') # TODO