Skip to content

Commit e12e292

Browse files
committed
Fixes for inasafe deployment (thanks Assefa)
Improvements to deployment script.
1 parent 1b2b515 commit e12e292

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
v0.17.1, Mar 5 2014 -- Fixed bug in InSAFE setup
2+
13
v0.17.0, Jan 7 2013 -- Improved API doc generation and added a task to push
24
docs to server. Fixes for creation of template_postgis with different pg
35
versions. Added task to postgresql for building osm2pgsql. Added task to

fabgis/common.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ def show_environment():
3434

3535

3636
def setup_env():
37-
"""Things to do regardless of whether command is local or remote."""
37+
"""Things to do regardless of whether command is local or remote.
38+
39+
Todo - many of these env.fg settings should be module specific...
40+
41+
"""
3842
if env.fg is not None:
3943
fastprint('Environment already set!\n')
4044
return

upload-to-pypi.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ echo "Have you updated changelog?"
44
echo "Have you updated the version in setup.py?"
55
echo "Have you updated README & Docs?"
66
read -sn 1 -p "Press any key to continue..."
7+
echo
8+
9+
VERSION=`cat setup.py | grep version | grep -o "[0-9}*\.[0-9]*\.[0-9]*"`
10+
TAG_VERSION=`echo $VERSION| sed 's/\./_/g'`
11+
echo "Version: " $VERSION
12+
echo "Tag Version: " $TAG_VERSION
13+
git tag -s version-$TAG_VERSION -m "Version $VERSION"
14+
git push --tags origin version-$TAG_VERSION
15+
716
python setup.py sdist upload
817

9-
fab -H linfiniti3 sync_docs_to_server
18+
fab -H linfiniti3 sync_docs_to_server

0 commit comments

Comments
 (0)