From a45b67776fc57cd5ce7617c9d02bc2a2ead0c4f4 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Wed, 20 Sep 2017 10:47:20 +1200 Subject: [PATCH] Moving version to universal VERSION.md, out of command params --- VERSION.md | 1 + build.sh | 6 +----- mopidy_iris/__init__.py | 2 +- package.json | 4 ++-- 4 files changed, 5 insertions(+), 8 deletions(-) create mode 100755 VERSION.md diff --git a/VERSION.md b/VERSION.md new file mode 100755 index 00000000..5141b615 --- /dev/null +++ b/VERSION.md @@ -0,0 +1 @@ +3.4.4 \ No newline at end of file diff --git a/build.sh b/build.sh index ec03a115..08a54be8 100755 --- a/build.sh +++ b/build.sh @@ -2,11 +2,7 @@ # process production html BUILD=$(date +%s) -if [ $# -eq 0 ]; then - VERSION="0.0.0" -else - VERSION=$1 -fi +VERSION=$(cat VERSION.md) echo -e "Building $VERSION ($BUILD)" diff --git a/mopidy_iris/__init__.py b/mopidy_iris/__init__.py index dc740ae1..0dc92db4 100755 --- a/mopidy_iris/__init__.py +++ b/mopidy_iris/__init__.py @@ -12,7 +12,7 @@ from handlers import WebsocketHandler, HttpHandler from core import IrisCore logger = logging.getLogger(__name__) -__version__ = "1.1.2" +__version__ = "3.4.4" ## # Core extension class diff --git a/package.json b/package.json index 5e1f9cc2..74025ea1 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mopidy-iris", - "version": "1.1.2", + "version": "3.4.4", "description": "Mopidy HTTP interface", "repository": "https://github.com/jaedb/iris", "author": "James Barnsley ", @@ -43,6 +43,6 @@ "scripts": { "dev": "./build.sh && NODE_ENV=development webpack --watch", "prod": "./build.sh && NODE_ENV=development webpack && NODE_ENV=production webpack", - "release": "NODE_ENV=production webpack && NODE_ENV=development webpack && ./build.sh $1 && python setup.py sdist upload -r pypi" + "release": "./build.sh && NODE_ENV=production webpack && NODE_ENV=development webpack && python setup.py sdist upload -r pypi" } }