mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-07 10:04:07 +00:00
fix check for url lines when building requirements from requirements.txt
This commit is contained in:
2
setup.py
2
setup.py
@@ -190,7 +190,7 @@ if 'setuptools' in sys.modules:
|
|||||||
with open('requirements.txt') as f:
|
with open('requirements.txt') as f:
|
||||||
for line in f.readlines():
|
for line in f.readlines():
|
||||||
req = line.strip()
|
req = line.strip()
|
||||||
if not req or req.startswith(('-e', '#')):
|
if not req or req.startswith('#') or '://' in req:
|
||||||
continue
|
continue
|
||||||
install_requires.append(req)
|
install_requires.append(req)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user