<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 15, 2015, at 8:56 PM, Chris Jerdonek <<a href="mailto:chris.jerdonek@gmail.com" class="">chris.jerdonek@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">I have a development workflow question I was wondering if people on<br class="">this list had a recommended solution for.<br class=""><br class="">Say you're working on a web application that you deploy using a<br class="">requirements.txt file.  And say you have a set of "abstract<br class="">dependencies" that your application depends on.<br class=""><br class="">What are some convenient ways of storing your abstract dependencies in<br class="">source control and periodically generating an updated requirements<br class="">file from that information (e.g. when your dependencies come out with<br class="">new versions)?<br class=""><br class="">The main idea that occurs to me is making a setup.py for the purposes<br class="">of representing your abstract dependencies (e.g. using<br class="">"install_requires," etc), creating a new virtualenv, running "pip<br class="">install .", and then "pip freeze."<br class=""><br class="">One problem with this approach is that the pip freeze output includes<br class="">an entry for the setup.py application itself, when the output should<br class="">only include the _dependencies_ of the application and not the<br class="">application itself.  It also seems clunky to me to create a virtualenv<br class="">and install dependencies only for the purposes of computing<br class="">dependencies.<br class=""><br class="">Thanks for any help or suggestions.<br class=""></div></div></blockquote></div><br class=""><div class="">This is what I'm doing right now (occasionally manually curating the output of `pip freezeĀ“) but I have heard good things about <a href="https://github.com/nvie/pip-tools/" class="">https://github.com/nvie/pip-tools/</a> and I intend to investigate it.  As I understand it, pip-compile is the tool you want.</div><div class=""><br class=""></div><div class="">-glyph</div></body></html>