This repository has been archived by the owner on Aug 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
91 lines (80 loc) · 2.39 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from setuptools import find_packages, setup
import versioneer
DISTNAME = 'stems'
VERSION = versioneer.get_version()
CMDCLASS = versioneer.get_cmdclass()
LICENSE="BSD license",
AUTHOR = "Chris Holden"
AUTHOR_EMAIL = '[email protected]'
URL = 'https://github.com/ceholden/stems'
DESCRIPTION = "Spatio-temporal Tools for Earth Monitoring Science"
CLASSIFIERS = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
'Natural Language :: English',
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Topic :: Software Development :: Libraries",
"Topic :: Scientific/Engineering :: GIS",
]
with open('README.rst') as f:
LONG_DESCRIPTION = f.read()
with open('CHANGELOG.rst') as f:
CHANGELOG = f.read()
ENTRY_POINTS = {
'console_scripts': [
'stems=stems.cli.main:main'
]
}
PACKAGE_DATA = {
'stems': ['stems/gis/tilegrids.yml']
}
PYTHON_REQUIRES = '>=3.6'
INSTALL_REQUIRES = [
'dask', 'distributed', 'numpy', 'pandas', 'toolz', 'xarray',
'affine', 'fiona', 'gdal', 'rasterio>=1.0.14', 'shapely',
'pyyaml',
]
INSTALL_REQUIRES.extend(['click>=6.0', 'click-plugins', 'cligj>=0.5'])
if 'pytest' in sys.argv: # only include if we're testing
SETUP_REQUIRES = ['pytest-runner']
else:
SETUP_REQUIRES = []
TESTS_REQUIRE = [
'pytest', 'pytest-cov', 'pytest-lazy-fixture', 'coverage',
'sphinx', 'sphinx_rtd_theme', 'sphinxcontrib-bibtex', 'numpydoc',
'IPython'
]
EXTRAS_REQUIRE = {
'core': INSTALL_REQUIRES,
'geohash': ['python-geohash']
}
EXTRAS_REQUIRE['all'] = sorted(set(sum(EXTRAS_REQUIRE.values(), [])))
setup(
name=DISTNAME,
cmdclass=CMDCLASS,
version=VERSION,
license=LICENSE,
description=DESCRIPTION,
long_description='\n'.join([LONG_DESCRIPTION, CHANGELOG]),
author=AUTHOR,
author_email=AUTHOR_EMAIL,
classifiers=CLASSIFIERS,
url=URL,
packages=find_packages(),
entry_points=ENTRY_POINTS,
zip_safe=False,
package_data=PACKAGE_DATA,
include_package_data=True,
python_requires=PYTHON_REQUIRES,
install_requires=INSTALL_REQUIRES,
setup_requires=SETUP_REQUIRES,
tests_require=TESTS_REQUIRE,
extras_require=EXTRAS_REQUIRE,
)