Henrik Heimbuerger
Henrik Heimbuerger

Reputation: 10213

Git-backed pip dependencies on Heroku are not upgraded

I'm deploying a Python application to Heroku.

I have a requirements.txt file in which I install a dependency from a git repo, pinned to a certain tag, let's say:

git+git://github.com/django/[email protected]#egg=django

When I redeploy this, e.g. after changing the tag reference to 1.7c3, Heroku does not update this dependency. (As can be seen with heroku run pip list.)

As a workaround, I have found that you can modify your runtime.txt (make it reference an older Python version), commit, push to Heroku (which rebuilds the entire environment), then undo the commit and force push to Heroku again (which rebuilds the entire environment again). This is of course not a very satisfying solution in the long-term (and I don't like the idea of having to deploy my production app twice).

Is there a better solution? Any improvements on the horizon?

Upvotes: 4

Views: 353

Answers (1)

Kenneth Reitz
Kenneth Reitz

Reputation: 8846

This will work as expected if you use the following line in requirements.txt:

-e git+git://github.com/django/[email protected]#egg=django

Upvotes: 1

Related Questions