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

4
5
# py_tools_ds - A collection of geospatial data analysis tools that simplify standard
# operations when handling geospatial raster and vector data as well as projections.
6
#
7
8
9
10
# Copyright (C) 2016-2021
# - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz-potsdam.de)
# - Helmholtz Centre Potsdam - GFZ German Research Centre for Geosciences Potsdam,
#   Germany (https://www.gfz-potsdam.de/)
11
12
13
14
15
#
# 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).
#
16
17
18
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
19
#
20
#   http://www.apache.org/licenses/LICENSE-2.0
21
#
22
23
24
25
26
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
27

Daniel Scheffler's avatar
Daniel Scheffler committed
28
29
"""The setup script."""

30
from setuptools import setup, find_packages
31
32
33
34
35
36
37

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

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

38
39
40
41
version = {}
with open("py_tools_ds/version.py") as version_file:
    exec(version_file.read(), version)

42
43
44
45
requirements = [
    'gdal>=2.1.0',
    'numpy',
    'pandas',
46
    'pyproj>=2.5.0',
47
48
49
    'shapely',
    'spectral'
]
50
setup_requirements = ['setuptools']
51
test_requirements = requirements + ["gdal", "pytest", "pytest-cov", "pytest-reporter-html1", "shapely", "urlchecker"]
52
53

setup(
54
    name='py_tools_ds',
55
    version=version['__version__'],
56
57
58
59
    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',
60
    url='https://git.gfz-potsdam.de/danschef/py_tools_ds',
61
    packages=find_packages(exclude=['tests*']),  # searches for packages with an __init__.py and returns a list
Daniel Scheffler's avatar
Daniel Scheffler committed
62
    package_dir={'py_tools_ds': 'py_tools_ds'},
63
64
    include_package_data=True,
    install_requires=requirements,
65
    license="Apache-2.0",
66
    zip_safe=False,
67
    keywords='py_tools_ds',
68
    classifiers=[
Daniel Scheffler's avatar
Daniel Scheffler committed
69
        'Development Status :: 4 - Beta',
70
        'Intended Audience :: Developers',
71
        'License :: OSI Approved :: Apache Software License',
72
        'Natural Language :: English',
Daniel Scheffler's avatar
Daniel Scheffler committed
73
74
        'Programming Language :: Python :: 3',
        'Programming Language :: Python :: 3.6',
75
        'Programming Language :: Python :: 3.7',
76
        'Programming Language :: Python :: 3.8',
77
        'Programming Language :: Python :: 3.9',
78
    ],
79
    python_requires='>3.6',
80
    test_suite='tests',
Daniel Scheffler's avatar
Daniel Scheffler committed
81
    tests_require=test_requirements,
82
83
    setup_requires=setup_requirements,
    extras_require={'rio_reproject': ["rasterio"]}
84
)