Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update requirements.txt #72

Merged
merged 3 commits into from
Nov 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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