From ec97a4f86d16cef624a988253f2cca9709a5d650 Mon Sep 17 00:00:00 2001 From: Eric Scrivner Date: Wed, 13 Mar 2013 10:18:18 -0700 Subject: [PATCH] Add one-line deploy.sh script for deploying a new version of Thunderdome --- MANIFEST.in | 3 +-- deploy.sh | 2 ++ setup.py | 3 ++- thunderdome/VERSION | 1 + thunderdome/__init__.py | 5 +++-- 5 files changed, 9 insertions(+), 5 deletions(-) create mode 100755 deploy.sh create mode 100644 thunderdome/VERSION diff --git a/MANIFEST.in b/MANIFEST.in index 9e95fb3..bf4bc60 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,5 +1,4 @@ include AUTHORS include LICENSE include README.md -recursive-include thunderdome *.py *.groovy - +recursive-include thunderdome *.py *.groovy VERSION diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..dfef6ca --- /dev/null +++ b/deploy.sh @@ -0,0 +1,2 @@ +#!/bin/bash +echo $1 > thunderdome/VERSION && git tag -a v$1 && git push --tags && python setup.py sdist upload diff --git a/setup.py b/setup.py index 89ec763..5847b73 100644 --- a/setup.py +++ b/setup.py @@ -1,10 +1,11 @@ +import sys from setuptools import setup, find_packages #next time: #python setup.py register #python setup.py sdist upload -version = "0.4.1" +version = open('thunderdome/VERSION', 'r').readline().strip() long_desc = """ thunderdome is an Object-Graph Mapper (OGM) for Python diff --git a/thunderdome/VERSION b/thunderdome/VERSION new file mode 100644 index 0000000..2b7c5ae --- /dev/null +++ b/thunderdome/VERSION @@ -0,0 +1 @@ +0.4.2 diff --git a/thunderdome/__init__.py b/thunderdome/__init__.py index 44cacb8..a118f03 100644 --- a/thunderdome/__init__.py +++ b/thunderdome/__init__.py @@ -16,6 +16,7 @@ # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +import os from thunderdome.columns import * from thunderdome.exceptions import * @@ -23,5 +24,5 @@ from thunderdome.gremlin import BaseGremlinMethod, GremlinMethod, GremlinValue, GremlinTable from thunderdome.containers import Table - -__version__ = '0.4.1' +__thunderdome_version_path__ = os.path.realpath(__file__ + '/../VERSION') +__version__ = open(__thunderdome_version_path__, 'r').readline().strip()