Merge lp://staging/~benji/charms/precise/juju-gui/use-known-pip into lp://staging/~juju-gui/charms/precise/juju-gui/trunk
Proposed by
Benji York
Status: | Merged |
---|---|
Merged at revision: | 135 |
Proposed branch: | lp://staging/~benji/charms/precise/juju-gui/use-known-pip |
Merge into: | lp://staging/~juju-gui/charms/precise/juju-gui/trunk |
Diff against target: |
67 lines (+11/-9) 2 files modified
Makefile (+10/-8) tests/00-setup (+1/-1) |
To merge this branch: | bzr merge lp://staging/~benji/charms/precise/juju-gui/use-known-pip |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
charmers | Pending | ||
Review via email: mp+196328@code.staging.launchpad.net |
Description of the change
Include pip dependency instead of using system's
I also killed an entire village of ./
To post a comment you must log in.
Reviewers: mp+196328_ code.launchpad. net,
Message:
Please take a look.
Description:
Include pip dependency instead of using system's
I also killed an entire village of ./
https:/ /code.launchpad .net/~benji/ charms/ precise/ juju-gui/ use-known- pip/+merge/ 196328
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/31000043/
Affected files (+13, -9 lines):
M Makefile
A [revision details]
M tests/00-setup
Index: Makefile www.gnu. org/licenses/>.
=== modified file 'Makefile'
--- Makefile 2013-11-19 02:50:54 +0000
+++ Makefile 2013-11-22 16:01:36 +0000
@@ -15,9 +15,9 @@
# along with this program. If not, see <http://
JUJUTEST = juju-test --timeout=120m -v -e "$(JUJU_ENV)"
-VENV = ./tests/.venv
-SYSDEPS = build-essential bzr libapt-pkg-dev libpython-dev python-pip \
- python-virtualenv rsync xvfb
+VENV = tests/.venv
+SYSDEPS = build-essential bzr libapt-pkg-dev libpython-dev
python-virtualenv \
+ rsync xvfb
all: setup
@@ -26,14 +26,16 @@
# support the juju-test plugin, which calls the executable files in
# alphabetical order.
setup:
- @./tests/00-setup
+ tests/00-setup
+ # Ensure the correct version of pip has been installed
+ tests/.venv/bin/pip --version | grep "pip 1.4" || exit 1
sysdeps:
sudo apt-get install --yes $(SYSDEPS)
unittest: setup 10-unit. test 11-server. test server. test
- ./tests/
- ./tests/
+ tests/10-unit.test
+ tests/11-
ensure-juju-env:
ifndef JUJU_ENV
@@ -57,7 +59,7 @@
lint: setup /bin/flake8 --show-source --exclude=.venv \
@$(VENV)
- ./hooks/ ./tests/ ./server/
+ hooks/ tests/ server/
clean: cache
find . -name '*.pyc' -delete
@@ -65,7 +67,7 @@
rm -rf tests/download-
deploy: setup
- $(VENV)/bin/python ./tests/deploy.py
+ $(VENV)/bin/python tests/deploy.py
help:
@echo -e 'Juju GUI charm - list of make targets:\n'
Index: [revision details]
=== added file '[revision details]'
--- [revision details] 2012-01-01 00:00:00 +0000
+++ [revision details] 2012-01-01 00:00:00 +0000
@@ -0,0 +1,2 @@
+Old revision:
<email address hidden>
+New revision: <email address hidden>
Index: tests/00-setup REQUIREMENTS" -nt "$ACTIVATE" REQUIREMENTS" -nt "$ACTIVATE" ]; then downloadcache -eq 0 ] && bzr up $DOWNLOADCACHE search- dir=$DOWNLOADCA CHE $VENV PATH='- user' \
=== modified file 'tests/00-setup'
--- tests/00-setup 2013-11-19 14:25:24 +0000
+++ tests/00-setup 2013-11-22 15:16:01 +0000
@@ -34,7 +34,7 @@
fi
if [ ! -f "$ACTIVATE" -o "$TEST_
-o "$SERVER_
[ $updated_
- virtualenv --distribute $VENV
+ virtualenv --distribute --extra-
. $ACTIVATE && \
yes w | env BZR_PLUGIN_
pip install -r $TEST_REQUIREMENTS --find-links deps
--find-links $DOWNLOADCACHE --no-allow-external --no-index