Show HN: Pip-init to generate a simple setup.py file(github.com)
github.com
Show HN: Pip-init to generate a simple setup.py file
https://github.com/juanpabloaj/pip-init
2 comments
It would be nice if it allowed you to specify initial dependencies, or call out a requirements.txt file.
... maybe put in setup.py something like
from pip.req import parse_requirements
requirements = parse_requirements("requirements.txt")
setup(
...
install_requires=[str(r.req) for r in requirements]
http://stackoverflow.com/a/16624700/348081
from pip.req import parse_requirements
requirements = parse_requirements("requirements.txt")
setup(
...
install_requires=[str(r.req) for r in requirements]
http://stackoverflow.com/a/16624700/348081
Thank you.
Please do the thing with the requirements.txt file.
Please do the thing with the requirements.txt file.
fiatjaf, now the generated setup.py file will import the requirements from the requirements.txt file
http://i.imgur.com/TTw7Ctn.gif
http://i.imgur.com/TTw7Ctn.gif