-
Notifications
You must be signed in to change notification settings - Fork 62
/
setup.py
executable file
·71 lines (63 loc) · 2.84 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
#!/usr/bin/env python
#
# This file is part of pyTSEB.
# Copyright 2016 Hector Nieto and contributors listed in the README.md file.
#
# 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/>.
import os
from setuptools import setup
PROJECT_ROOT = os.path.dirname(__file__)
def read_file(filepath, root=PROJECT_ROOT):
"""
Return the contents of the specified `filepath`.
* `root` is the base path and it defaults to the `PROJECT_ROOT` directory.
* `filepath` should be a relative path, starting from `root`.
"""
try:
# Python 2.x
with open(os.path.join(root, filepath)) as fd:
text = fd.read()
except UnicodeDecodeError:
# Python 3.x
with open(os.path.join(root, filepath), encoding = "utf8") as fd:
text = fd.read()
return text
LONG_DESCRIPTION = read_file("README.md")
SHORT_DESCRIPTION = "Two Source Energy Balance (TSEB) Models to estimate sensible and latent heat flux (evapotranspiration) from radiometric surface temperature data"
REQS = ['numpy>=1.10', 'gdal', 'bokeh', 'pandas', 'netCDF4',
"pypro4sail"]
setup(
name = "pyTSEB",
packages = ['pyTSEB'],
version = "2.1",
author = "Hector Nieto",
author_email = "hector.nieto.solana@gmail.com",
maintainer = "Hector Nieto",
maintainer_email = "hector.nieto.solana@gmail.com",
description = SHORT_DESCRIPTION,
license = "GPL",
url = "https://github.com/hectornieto/pyTSEB/",
long_description = LONG_DESCRIPTION,
classifiers = [
"Development Status :: Beta",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Agricultural Science",
"Topic :: Scientific/Engineering :: Hydrology",
"Topic :: Software Development :: Libraries :: Python Modules",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
"Programming Language :: Python :: 3"],
keywords = ['TSEB','Two Source Energy Balance',
'Resistance Energy Balance','OSEB','One Source Energy Balance',
'DTD', 'Dual Time Differenced','Remote Sensing'])