Merge lp://staging/~kelvin.li/rnr-server/charm-supports into lp://staging/rnr-server
Proposed by
Kelvin Li
Status: | Merged |
---|---|
Approved by: | Kelvin Li |
Approved revision: | 311 |
Merged at revision: | 300 |
Proposed branch: | lp://staging/~kelvin.li/rnr-server/charm-supports |
Merge into: | lp://staging/rnr-server |
Diff against target: |
223 lines (+116/-13) 8 files modified
.bzrignore (+1/-0) Makefile (+54/-11) config-manager.txt (+2/-1) dependencies-devel.txt (+8/-0) dependencies.txt (+10/-0) fabtasks/django.py (+1/-1) scripts/settings-to-conncheck.py (+34/-0) tarball_exclude.txt (+6/-0) |
To merge this branch: | bzr merge lp://staging/~kelvin.li/rnr-server/charm-supports |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Kelvin Li (community) | Approve | ||
Ricardo Kirkner (community) | Approve | ||
Review via email:
|
Commit message
tarball build task for Makefile and tweak the sourcedeps that would be used by rnr-server charm
Description of the change
Changes that may needed by rnr-server charm
- tarball build task for Makefile
- tweak the sourcedeps to avoid fetch deps each time without any change
- virtualenv deps setup in sourcedeps
- conncheck stub script file(call from charm)
To post a comment you must log in.
Thanks for the reviews, had made the modification.
On Thu, Apr 30, 2015 at 3:12 AM, Ricardo Kirkner <
<email address hidden>> wrote:
> project/ scaclient. py project/ txstatsd project/ django_ configglue
>
> Diff comments:
>
> > === modified file '.bzrignore'
> > --- .bzrignore 2014-07-24 17:56:54 +0000
> > +++ .bzrignore 2015-04-29 05:44:33 +0000
> > @@ -35,3 +35,5 @@
> > django_
> > django_
> > django_
> > +.idea/
>
> we'd rather not pollute our projects with tool-specific ignore rules
>
> Removed.
> > +*.pyc config- manager/ cm.py manager. txt.tmp SETTING_ CONFIG = config- manager. txt.setting. tmp
> >
> > === modified file 'Makefile'
> > --- Makefile 2014-10-28 16:11:23 +0000
> > +++ Makefile 2015-04-29 05:44:33 +0000
> > @@ -1,21 +1,36 @@
> > +#!/usr/bin/make
> > CM = /usr/lib/
> > PYTHON := $(shell which python)
> > CM_TMP_CONFIG = config-
> > +CM_TMP_
>
> where is this being used?
>
> Old var that was used before, now it's uselses.
> > /src:${ HERE}/lib: ${PYTHONPATH} SETTINGS_ MODULE ?= django_ project. settings SETTINGS_ MODULE DIR}/bin site-packages SETTINGS_ DIR}/settings. py NAME).tbz2) BUILD_LABEL ?= r$(shell bzr revno) NAME).tbz2 BUILDS_ DIR)/$( TARBALL_ BUILD_LABEL) BUILD_DIR) /$(TARBALL_ FILE_NAME) SETTINGS_ MODULE SETTINGS_ PATH); then \ SETTINGS_ DIR); \ sourcedeps: d;s/^rnr- server/ ./g;s/bazaar. isd/ launchpad. net/g' config-manager.txt > $(CM_TMP_CONFIG) virtualenv- requirements: virtualenv DIR)/bin/ pip install -r requirements.txt sourcedeps: d;s/^rnr- server/ ./g;s/bazaar. isd/ launchpad. net/g' config-manager.txt > $(CM_TMP_CONFIG) last_build: config-manager.txt
> > HERE := $(shell pwd)
> > PYTHONPATH := ${HERE}
> > -
> > -export PYTHONPATH
> > DJANGO_
> > -export DJANGO_
> >
> > VIRTUALENV = virtualenv
> > VIRTUALENV_DIR ?= ./virtualenv
> > +VIRTUALENV_BIN := ${VIRTUALENV_
> > VIRTUALENV_ARGS ?= --distribute --clear --system-
> >
> > LOCAL_SETTINGS_DIR = ../local_config
> > LOCAL_SETTINGS_PATH := ${LOCAL_
> >
> > +JUJU_ENV ?= local
> > +JUJU_REPO ?= ../.juju-repo
> > +PROJECT_NAME = rnr-server
> > +
> > +# Create archives in labelled directories (ie. r27/$(PROJECT_
> > +TARBALL_
> > +TARBALL_FILE_NAME = $(PROJECT_
> > +TARBALL_BUILDS_DIR ?= $(JUJU_REPO)/builds
> > +TARBALL_BUILD_DIR = $(TARBALL_
> > +TARBALL_BUILD_PATH = $(TARBALL_
> > +
> > +
> > +export PYTHONPATH
> > +export DJANGO_
> > +
> > local-config:
> > @if test ! -e $(LOCAL_
> > mkdir -p $(LOCAL_
> > @@ -23,11 +38,8 @@
> > echo 'Generated devel local settings.'; \
> > fi;
> >
> > -sanitize-
> > - sed -e '1,/# Dependencies/
> bazaar.
> > -
> > virtualenv:
> > - @if test ! -e $(VIRTUALENV_DIR); then \
> > + @if test ! -e $(VIRTUALENV_DIR); ! -e $(VIRTUALENV_BIN); then \
> > $(VIRTUALENV) $(VIRTUALENV_DIR) $(VIRTUALENV_ARGS); \
> > fi;
> >
> > @@ -37,11 +49,43 @@
> > install-
> > $(VIRTUALENV_
> >
> > -sourcedeps: sanitize-sourcedeps
> > +
> > +version:
> > + bzr version-info --format=python > lib/versioninfo.py
> > +
> > +
> > +#Dependencies
> > +sanitize-
> > + sed -e '1,/# Dependencies/
> bazaar.
> > +
> > +build:
> > $(CM) update $(CM_TMP_CONFIG)
> > +
> > +branches/
> > + $(MAKE) san...