Merge lp:~cjwatson/turnip/virtualenv into lp:turnip
| Status: | Merged |
|---|---|
| Merged at revision: | 184 |
| Proposed branch: | lp:~cjwatson/turnip/virtualenv |
| Merge into: | lp:turnip |
| Diff against target: |
150 lines (+80/-10) 5 files modified
.bzrignore (+3/-1) Makefile (+69/-9) bootstrap-requirements.txt (+2/-0) deploy-requirements.txt (+5/-0) test-requirements.txt (+1/-0) |
| To merge this branch: | bzr merge lp:~cjwatson/turnip/virtualenv |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Kit Randel | 2015-10-16 | Approve on 2015-10-29 | |
|
Review via email:
|
|||
Commit Message
Add targets to build a virtualenv and to build a tarball with included pip cache.
Description of the Change
Add targets to build a virtualenv and to build a tarball with included pip cache.
This is the first step towards making our deployment system more sensible: it will eventually allow us to have a mojo manifest that builds the entire code asset in an appropriate container, virtualenv and all, run tests the whole thing, and upload it to swift for the charm to deploy. This will involve less downtime on upgrades and will support the autodeployment scheme currently being trialled by Canonical IS. As a bonus, since the intended use of this is to run the build step in an environment that matches the deployment target, we can switch to installing pygit2 from pip like everything else; 0.22.1 includes our current set of local patches.
This of course requires some additions to turnip-dependencies (pbr-1.8.1.tar.gz, pip-7.1.2.tar.gz, pygit2-
The turnip charm will need to be updated to use this, and that update will involve quite a bit of refactoring, but this part of it can be landed in advance of that, and as a bonus it makes "make check" much more reliable.
- 185. By Colin Watson on 2015-10-19
-
Ship a pip cache in the tarball rather than a full virtualenv.
- 186. By Colin Watson on 2015-10-20
-
Switch order of env and pip-cache construction, since we need to do the downloads with a modern pip.
- 187. By Colin Watson on 2015-10-21
-
Quieten pip.
- 188. By Colin Watson on 2015-10-22
-
Use revision IDs rather than revnos to construct build labels.
- 189. By Colin Watson on 2015-10-22
-
Install turnip itself in editable mode, for the sake of gunicorn.
- 190. By Colin Watson on 2015-10-23
-
Fix turnip dependencies URL.
| Colin Watson (cjwatson) wrote : | # |
Oh, right, I was thinking it'd use PyPI in that case but indeed it fails when it gets to our python-openid fork. I'll add the warning.
- 191. By Colin Watson on 2015-10-29
-
Move PIP_SOURCE_DIR check from build-tarball to $(ENV), since we need the dependencies checkout for our python-openid fork.

This is great, and I'll be updating rutabaga to reflect this shortly!
I did wonder however if it would be worth providing a similar warning to `make build-tarball`, when PIP_SOURCE_DIR is not set for the `make` target? The `pip install` will fail without it.