1
0
mirror of https://github.com/balkian/gists.git synced 2024-11-23 01:52:27 +00:00
This commit is contained in:
J. Fernando Sánchez 2015-03-13 23:25:23 +01:00
commit ae989b5797

8
setup.py Normal file
View File

@ -0,0 +1,8 @@
from pip.req import parse_requirements
# parse_requirements() returns generator of pip.req.InstallRequirement objects
install_reqs = parse_requirements("requirements.txt")
# reqs is a list of requirement
# e.g. ['django==1.5.1', 'mezzanine==1.4.6']
reqs = [str(ir.req) for ir in install_reqs]