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

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# py_tools_ds
#
# Copyright (C) 2019  Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
#
# This software was developed within the context of the GeoMultiSens project funded
# by the German Federal Ministry of Education and Research
# (project grant code: 01 IS 14 010 A-C).
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option) any
# later version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program.  If not, see <http://www.gnu.org/licenses/>.

Daniel Scheffler's avatar
Daniel Scheffler committed
25
26
"""The setup script."""

27
from setuptools import setup, find_packages
28
29
30
31
32
33
34

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

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

35
36
37
38
version = {}
with open("py_tools_ds/version.py") as version_file:
    exec(version_file.read(), version)

39
40
41
42
43
requirements = [
    'gdal>=2.1.0',
    'geopandas',
    'numpy',
    'pandas',
44
    'pyproj>=2.5.0',
45
46
47
    'shapely',
    'spectral'
]
48
setup_requirements = ['setuptools']
49
50
test_requirements = requirements + ["coverage", "gdal", "nose", "nose2", "nose-htmloutput", "rednose", "shapely",
                                    "urlchecker"]
51
52

setup(
53
    name='py_tools_ds',
54
    version=version['__version__'],
55
56
57
58
    description="A collection of Python tools by Daniel Scheffler.",
    long_description=readme + '\n\n' + history,
    author="Daniel Scheffler",
    author_email='daniel.scheffler@gfz-potsdam.de',
59
    url='https://git.gfz-potsdam.de/danschef/py_tools_ds',
60
    packages=find_packages(exclude=['tests*']),  # searches for packages with an __init__.py and returns a list
Daniel Scheffler's avatar
Daniel Scheffler committed
61
    package_dir={'py_tools_ds': 'py_tools_ds'},
62
63
    include_package_data=True,
    install_requires=requirements,
64
    license="GPL-3.0-or-later",
65
    zip_safe=False,
66
    keywords='py_tools_ds',
67
    classifiers=[
Daniel Scheffler's avatar
Daniel Scheffler committed
68
        'Development Status :: 4 - Beta',
69
        'Intended Audience :: Developers',
70
        'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
71
        'Natural Language :: English',
Daniel Scheffler's avatar
Daniel Scheffler committed
72
73
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
74
        'Programming Language :: Python :: 3.7',
75
        'Programming Language :: Python :: 3.8',
76
        'Programming Language :: Python :: 3.9',
77
    ],
78
    python_requires='>3.6',
79
    test_suite='tests',
Daniel Scheffler's avatar
Daniel Scheffler committed
80
    tests_require=test_requirements,
81
82
    setup_requires=setup_requirements,
    extras_require={'rio_reproject': ["rasterio"]}
83
)