forked from VicenteBurchard/py3SEB
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
executable file
·71 lines (63 loc) · 2.89 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 = "Three Source Energy Balance (3SEB) Model to estimate sensible and latent heat flux (evapotranspiration) from radiometric surface temperature data in agroforestry systems"
REQS = ['numpy>=1.10', 'gdal', 'bokeh', 'pandas', 'netCDF4',
"pyTSEB"]
setup(
name = "py3seb",
packages = ['py3seb'],
install_requires = REQS,
version = "1.0",
author = "Vicente Burchard",
author_email = "[email protected]",
maintainer = "Vicente Burchard",
maintainer_email = "[email protected]",
description = SHORT_DESCRIPTION,
license = "GPL",
url = "https://github.com/VicenteBurchard/py3SEB",
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 = ['3SEB','Three Source Energy Balance',
'Resistance Energy Balance','Remote Sensing' "agroforestry", "tree-grass ecosystems"])