forked from JGCRI/xanthos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
46 lines (34 loc) · 1.08 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
"""
@author Chris R. Vernon
@email: [email protected]
@Project: Xanthos 2.0
License: BSD 2-Clause, see LICENSE and DISCLAIMER files
Copyright (c) 2017, Battelle Memorial Institute
"""
class VersionError(Exception):
def __init__(self, *args, **kwargs):
Exception.__init__(self, *args, **kwargs)
try:
from setuptools import setup, find_packages
except ImportError:
print("Must have setuptools installed to run setup.py. Please install and try again.")
raise
def readme():
with open('README.md') as f:
return f.read()
def get_requirements():
with open('requirements.txt') as f:
return f.read().split()
setup(
name='xanthos',
version='2.3.0',
packages=find_packages(),
url='https://github.com/jgcri/xanthos',
license='BSD 2-Clause',
author='Chris R. Vernon; Xinya Li',
author_email='[email protected]; [email protected]',
description='A global hydrologic model for GCAM',
long_description=readme(),
install_requires=get_requirements(),
python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, <4',
)