From f4561ca9142386977bbeb49144c4afd23950857b Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Mon, 22 Jul 2019 15:07:48 +0200 Subject: [PATCH] fix version printing --- .travis.yml | 1 + scripts/qgis-plugin-ci | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fa1aa603..545c34b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ env: install: - pip install -r requirements.txt - sed -i "s/__VERSION__/${TRAVIS_TAG:-0.0.0}/g" setup.py + - sed -i "s/__VERSION__/${TRAVIS_TAG:-0.0.0}/g" scripts/qgis-plugin-ci - python setup.py install script: diff --git a/scripts/qgis-plugin-ci b/scripts/qgis-plugin-ci index 87325a37..7561112d 100755 --- a/scripts/qgis-plugin-ci +++ b/scripts/qgis-plugin-ci @@ -46,7 +46,7 @@ if __name__ == "__main__": # print the version and exit if args.version: - print('qgis-plugin-ci version: {}'.format('[DEV]')) + print('qgis-plugin-ci version: {}'.format('__VERSION__')) parser.exit() # if no command is passed, print the help and exit