get the actual pinned requirements in setup.py
This commit is contained in:
parent
ce06de78a8
commit
29498504cc
4
setup.py
4
setup.py
@ -8,8 +8,8 @@ HERE = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
def extract_requires():
|
||||
"""Get pinned requirements from requirements.in."""
|
||||
with open(os.path.join(HERE, 'requirements/requirements.in'), 'r') as reqs:
|
||||
"""Get pinned requirements from requirements.txt."""
|
||||
with open(os.path.join(HERE, 'requirements/requirements.txt'), 'r') as reqs:
|
||||
return [line.split(' ')[0] for line in reqs if not line[0] in ('-', '#')]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user