-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
103 lines (95 loc) · 3.67 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
92
93
94
95
96
97
98
99
100
101
102
103
# Copyright 2014 Doug Latornell and The University of British Columbia
# 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
# http://www.apache.org/licenses/LICENSE-2.0
# 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.
"""ECget -- Get Environment Canada Weather & Hydrometric Data
"""
from setuptools import (
find_packages,
setup,
)
import __pkg_metadata__
python_classifiers = [
'Programming Language :: Python :: {0}'.format(py_version)
for py_version in ['2', '2.7', '3', '3.2', '3.3', '3.4', '3.5']]
other_classifiers = [
'Development Status :: ' + __pkg_metadata__.DEV_STATUS,
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: Implementation :: CPython',
'Operating System :: MacOS :: MacOS X',
'Operating System :: POSIX :: Linux',
'Operating System :: Unix',
'Environment :: Console',
'Intended Audience :: Science/Research',
'Intended Audience :: Education',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
]
try:
long_description = open('README.rst', 'rt').read()
except IOError:
long_description = ''
install_requires = [
# see requirements.txt for versions most recently used in development
'arrow',
'beautifulsoup4',
'cliff',
'kombu',
'requests',
]
setup(
name=__pkg_metadata__.PROJECT,
version=__pkg_metadata__.VERSION,
description=__pkg_metadata__.DESCRIPTION,
long_description=long_description,
author='Doug Latornell',
author_email='djl@douglatornell.ca',
url='https://bitbucket.org/douglatornell/ecget',
download_url=(
'https://bitbucket.org/douglatornell/ecget/get/default.tar.gz'),
license='Apache License, Version 2.0',
classifiers=python_classifiers + other_classifiers,
platforms=['MacOS X', 'Linux'],
install_requires=install_requires,
packages=find_packages(),
include_package_data=True,
zip_safe=False,
entry_points={
# The ecget command:
'console_scripts': [
'ecget = ecget.main:main',
],
# Sub-command plug-ins:
'ecget.app': [
'air temperature = ecget.SOG_weather:YVRAirTemperature',
'backfill = ecget.SOG_weather:BackfillSWOBMLs',
'cloud fraction = ecget.SOG_weather:YVRCloudFraction',
'fraser water quality = ecget.fraser_buoy:FraserWaterQuality',
'relative humidity = ecget.SOG_weather:YVRRelativeHumidity',
'river flow = ecget.river:RiverFlow',
'wind = ecget.SOG_weather:SandHeadsWind',
],
# Data getter drivers:
'ecget.get_data': [
'fraser.water_quality = ecget.fraser_buoy:FraserWaterQualityData',
'river.discharge = ecget.river:RiverDischarge',
'weather = ecget.weather_datamart:DatamartWeather',
'wind = ecget.weather_datamart:DatamartWeather',
],
# Output formatters:
'ecget.formatter': [
('fraser.water_quality.csv = '
'ecget.fraser_buoy:FraserWaterQualityCSV'),
'SOG.river.daily_avg_flow = ecget.SOG_formatters:DailyValue',
'SOG.weather.hourly = ecget.SOG_formatters:HourlyValue',
('SOG.wind.hourly.components = '
'ecget.SOG_formatters:HourlyWindComponents'),
],
},
)