chiark / gitweb /
tests: switch to python3
authorDaniel Martí <mvdan@mvdan.cc>
Mon, 4 Jan 2016 20:17:58 +0000 (21:17 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Fri, 11 Mar 2016 13:27:00 +0000 (13:27 +0000)
tests/build.TestCase
tests/common.TestCase
tests/complete-ci-tests
tests/description-parsing.py
tests/import.TestCase
tests/install.TestCase
tests/metadata.TestCase
tests/run-tests
tests/update.TestCase

index ddefb947f2abc4b3363a54560869b9de41f4cf4b..b3b90fc3ded775290d8ea6f861931e5b2da8fff9 100755 (executable)
@@ -1,5 +1,4 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
 
 # http://www.drdobbs.com/testing/unit-testing-with-python/240165163
 
index 4ce09cae33c9c50cf96c39858099fc799f19d06d..48e1d29d71f568f3b088a150f5f02597176b1a05 100755 (executable)
@@ -1,5 +1,4 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
 
 # http://www.drdobbs.com/testing/unit-testing-with-python/240165163
 
index b536dc9e3a42e5be35efea20a20552a59045fd7f..8e7815275e7bf21a5f0a42ef06f496918ab3d248 100755 (executable)
@@ -51,10 +51,10 @@ cd $WORKSPACE/tests
 #------------------------------------------------------------------------------#
 # test building the source tarball, then installing it
 cd $WORKSPACE
-python2 setup.py sdist
+python3 setup.py sdist
 
 rm -rf $WORKSPACE/env
-virtualenv --python=python2 $WORKSPACE/env
+virtualenv --python=python3 $WORKSPACE/env
 . $WORKSPACE/env/bin/activate
 pip install dist/fdroidserver-*.tar.gz
 
@@ -66,10 +66,10 @@ fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
 # test install using install direct from git repo
 cd $WORKSPACE
 rm -rf $WORKSPACE/env
-virtualenv --python=python2 --system-site-packages $WORKSPACE/env
+virtualenv --python=python3 --system-site-packages $WORKSPACE/env
 . $WORKSPACE/env/bin/activate
 pip install -e $WORKSPACE
-python2 setup.py install
+python3 setup.py install
 
 # run tests in new pip+virtualenv install
 fdroid=$WORKSPACE/env/bin/fdroid $WORKSPACE/tests/run-tests $apksource
@@ -86,7 +86,7 @@ sh hooks/pre-commit
 cd $WORKSPACE
 set +e
 # use the virtualenv python so pylint checks against its installed libs
-    PYTHONPATH=$WORKSPACE/.pylint-plugins python2 /usr/bin/pylint \
+    PYTHONPATH=$WORKSPACE/.pylint-plugins python3 /usr/bin/pylint \
         --output-format=parseable --reports=n \
         --load-plugins astng_hashlib \
         fdroidserver/*.py fdroid makebuildserver setup.py > $WORKSPACE/pylint.parseable
index 05eba4b98eb79b2deb6ae938d35b7ecc6ad18293..780fae04cca81c260c3281609382ff3fe1c9f7a1 100755 (executable)
@@ -1,5 +1,4 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
 
 import os
 import sys
index 1d00a6885e4c99464f0a1780650eb87179fc5b9e..cce85d68d6828ba66c3a486d254c92fdc36551ad 100755 (executable)
@@ -1,5 +1,4 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
 
 # http://www.drdobbs.com/testing/unit-testing-with-python/240165163
 
index 8cf8e08822765b8dc735efd46c85235b53f07ff4..d1ed93fff1f4c9ef8e40bcacb21d1ea8c22c6e34 100755 (executable)
@@ -1,5 +1,4 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
 
 # http://www.drdobbs.com/testing/unit-testing-with-python/240165163
 
index c1ffbf363af4c6c264697ec43e82a79e112c1601..33d18308c85ef805d63bd3696582dddd14d2f0f4 100755 (executable)
@@ -1,5 +1,4 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
 
 # http://www.drdobbs.com/testing/unit-testing-with-python/240165163
 
index de9c9a1532247bf017210027da4075898b75f24b..8ec03c353c106f163b172773e664b519d07d52b9 100755 (executable)
@@ -83,7 +83,7 @@ fi
 
 # allow the location of python to be overridden
 if [ -z $python ]; then
-    python=python2
+    python=python3
 fi
 
 set -x # show each command as it is executed
index d9d3ed0aa03d8a68de643f5d10711f7a5c94b702..647c8d5690529e1021165a23765d3b4f4dbb32d3 100755 (executable)
@@ -1,5 +1,4 @@
-#!/usr/bin/env python2
-# -*- coding: utf-8 -*-
+#!/usr/bin/env python3
 
 # http://www.drdobbs.com/testing/unit-testing-with-python/240165163