Skip to content

Commit

Permalink
Merge pull request #72 from gee-community/SiggyF-patch-1
Browse files Browse the repository at this point in the history
Update requirements.txt
  • Loading branch information
gena committed Nov 28, 2020
2 parents 603f5b1 + 1656eb7 commit 9c52696
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
18 changes: 5 additions & 13 deletions pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,9 @@ def setup():
os.environ['PYTHONPATH'] = ext_libs.abspath()
for req in reqs:
if platform.system() == "Windows":
sh('pip install -U -t %(ext_libs)s %(dep)s' % {
'ext_libs': ext_libs.abspath(),
'dep': req
})
sh('pip install -U -t "{ext_libs}" "{dep}"'.format(ext_libs=ext_libs.abspath(), dep=req))
else:
sh('pip3 install -U -t %(ext_libs)s %(dep)s' % {
'ext_libs': ext_libs.abspath(),
'dep': req
})

sh('pip3 install -U -t "{ext_libs}" "{dep}"'.format(ext_libs=ext_libs.abspath(), dep=req))

@task
def install(options):
Expand All @@ -83,10 +76,9 @@ def install(options):


def read_requirements():
'''return a list of runtime and list of test requirements'''
lines = open('requirements.txt').readlines()
lines = [l for l in [l.strip() for l in lines] if l]
return [l for l in lines if l[0] != '#']
'''return a list of packages in requirements file'''
with open('requirements.txt') as f:
return [l.strip('\n') for l in f if l.strip('\n') and not l.startswith('#')]


@task
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ratelim
pyCrypto
earthengine-api
six>=1.13

0 comments on commit 9c52696

Please sign in to comment.