-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
72 lines (63 loc) · 2.17 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
from os.path import join, dirname
from setuptools import setup, find_packages
SERVICES = (
"ACIS (NOAA RCCs)",
"CoCoRaHS",
"Hydromet (USBR)",
"SNOTEL AWDB (NRCS)",
"NWIS (USGS)",
)
SVC_STR = ", ".join(SERVICES[:-1]) + " and " + SERVICES[-1]
DESCRIPTION = "Loads climate and hydrology data from %s." % SVC_STR
LONG_DESCRIPTION = """
A pythonic library for iterating over climate time series data from %s.
Powered by wq.io.
""" % SVC_STR
def long_description():
"""Return long description from README.rst if it's present
because it doesn't get installed."""
try:
return open(join(dirname(__file__), 'README.rst')).read()
except IOError:
return LONG_DESCRIPTION
def get_version():
version = open(join(dirname(__file__), "climata", "version.py")).read()
version = version.strip().replace("VERSION = ", '')
version = version.replace('"', '')
return version
setup(
name='climata',
version=get_version(),
author='HEI Geo',
author_email='[email protected]',
url='https://github.com/heigeo/climata',
license='MIT',
packages=find_packages(exclude=['tests']),
description=DESCRIPTION,
long_description=long_description(),
install_requires=[
'wq.io>=0.7.0',
'owslib>=0.9',
"suds-jurko",
],
scripts=['climata/bin/acis_sites.py', 'climata/bin/acis_data.py'],
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Natural Language :: English',
'Intended Audience :: Science/Research',
'Topic :: Scientific/Engineering :: GIS',
'Topic :: Scientific/Engineering :: Information Analysis',
'Topic :: System :: Networking :: Monitoring',
],
test_suite='tests',
tests_require=['django'],
# tests_require=['iso8601'], # FIXME: Requires wq.io==1.0.1
)