changeset 4ebb074021fb in tryton-tools:default
details: https://hg.tryton.org/tryton-tools?cmd=changeset;node=4ebb074021fb
description:
        Use Python 3 to retrieve npm version
diffstat:

 do_major_release |  6 +++---
 do_minor_release |  2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 7977978e25be -r 4ebb074021fb do_major_release
--- a/do_major_release  Sun Feb 02 16:55:01 2020 +0100
+++ b/do_major_release  Sun Feb 02 17:07:34 2020 +0100
@@ -21,13 +21,13 @@
     name=`./setup.py --name`
 else
     echo "increase version number"
-    minor=`npm version --json | python -c "import json,sys; print 
json.load(sys.stdin)['tryton-sao'].split('.')[1]"`
+    minor=`npm version --json | python3 -c "import json,sys; 
print(json.load(sys.stdin)['tryton-sao'].split('.')[1])"`
     if [ $minor == "9" ]; then
         npm version major --no-git-tag-version
     else
         npm version minor --no-git-tag-version
     fi
-    version=`npm version --json | python -c "import json,sys; print 
json.load(sys.stdin)['tryton-sao']"`
+    version=`npm version --json | python3 -c "import json,sys; 
print(json.load(sys.stdin)['tryton-sao'])"`
     name="tryton-sao"
 fi
 
@@ -110,7 +110,7 @@
 if [ -f setup.py ]; then
     increase_version -d
 else
-    minor=`npm version --json | python -c "import json,sys; print 
json.load(sys.stdin)['tryton-sao'].split('.')[1]"`
+    minor=`npm version --json | python3 -c "import json,sys; 
print(json.load(sys.stdin)['tryton-sao'].split('.')[1])"`
     if [ $minor == "9" ]; then
         npm version major --no-git-tag-version
     else
diff -r 7977978e25be -r 4ebb074021fb do_minor_release
--- a/do_minor_release  Sun Feb 02 16:55:01 2020 +0100
+++ b/do_minor_release  Sun Feb 02 17:07:34 2020 +0100
@@ -23,7 +23,7 @@
     version=`./setup.py -V`
     name=`./setup.py --name`
 else
-    version=`npm version --json | python -c "import json,sys; print 
json.load(sys.stdin)['tryton-sao']"`
+    version=`npm version --json | python3 -c "import json,sys; 
print(json.load(sys.stdin)['tryton-sao'])"`
     name="tryton-sao"
 fi
 

Reply via email to