Skip to content

Commit

Permalink
Merge pull request #55 from JGCRI/install
Browse files Browse the repository at this point in the history
Address install errors
  • Loading branch information
rplzzz authored Jun 5, 2019
2 parents f1ec37c + 67aa329 commit 1934e96
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ matrix:
dist: xenial
cache: pip
install:
- pip install --process-dependency-links .[xanthos,tethys]
- pip install git+https://github.com/JGCRI/gcam_reader
- pip install git+https://github.com/JGCRI/tethys
- pip install git+https://github.com/JGCRI/xanthos
- pip install .
script:
- python -m unittest
6 changes: 3 additions & 3 deletions cassandra/test/data/xanthos/trn_abcd_none.ini
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ PerformDiagnostics = 0
# create time series plots defined in [TimeSeriesPlot]; Default is 0 for False, 1 for True
CreateTimeSeriesPlot = 0

# calculate drought statistics; Default is 0 for False, 1 for True
CalculateDroughtStats = 0

# calculate accessible water; Default is 0 for False, 1 for True
CalculateAccessibleWater = 0

Expand All @@ -66,9 +69,6 @@ CalculateHydropowerPotential = 0
# calculate hydropower actual; Default is 0 for False, 1 for True
CalculateHydropowerActual = 0

# calculate drought statistics. 0 for False, 1 for True
CalculateDroughtStats = 0

# run calibration mode; Default is 0 for False, 1 for True
Calibrate = 0

Expand Down
2 changes: 0 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
configobj>=5.0.6
gcam_reader>=0.5.0
pandas>=0.20

12 changes: 4 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def readme():

def get_requirements():
with open('requirements.txt') as f:
return f.read().split()
return f.read().split('\n')


setup(
Expand All @@ -28,14 +28,10 @@ def get_requirements():
long_description=readme(),
install_requires=get_requirements(),
extras_require={
'xanthos': ["xanthos>=2.1.0"],
'tethys': ["tethys>=1.0.0"],
'gcam_reader': ["gcam_reader>=1.0.0"],
'xanthos': ["xanthos>=2.3.1"],
'tethys': ["tethys>=1.2.0"],
},
dependency_links=[
'git+https://github.com/JGCRI/gcam_reader@master#egg=gcam_reader-0.5.0',
'git+https://github.com/JGCRI/tethys@master#egg=tethys-1.0.0',
'git+https://github.com/JGCRI/xanthos@master#egg=xanthos-2.1.0',
],
classifiers=[
"Programming Language :: Python :: 3.6"
"Programming Language :: Python :: 3.7"
Expand Down

0 comments on commit 1934e96

Please sign in to comment.