chiark / gitweb /
gitlab-ci: workaround "ImportError: No module named 'packaging'"
authorHans-Christoph Steiner <hans@eds.org>
Mon, 6 Feb 2017 16:28:07 +0000 (17:28 +0100)
committerHans-Christoph Steiner <hans@eds.org>
Mon, 6 Feb 2017 16:28:07 +0000 (17:28 +0100)
https://github.com/pypa/setuptools/issues/937

fdroid/ci-images#1

.gitlab-ci.yml
tests/complete-ci-tests

index a730e39eb3185ec07dbc9d054e306bd3e12a8175..0d1713c0dd1b78f275c79345c7478314c101aefc 100644 (file)
@@ -3,6 +3,8 @@ image: fdroid/ci:server-20161223
 test:
   script:
     - mkdir -p /usr/lib/python3.4/site-packages/
+    # workaround https://github.com/pypa/setuptools/issues/937
+    - pip3 install setuptools==33.1.1
     - pip3 install -e .
     - cd tests
     - ./complete-ci-tests
index 9f7e146f1455c92bd9cd837c2f284d2ecaf4a343..558427e3bb870f926230b80a266855ac81da7f38 100755 (executable)
@@ -56,6 +56,8 @@ python3 setup.py sdist
 rm -rf $WORKSPACE/env
 pyvenv $WORKSPACE/env
 . $WORKSPACE/env/bin/activate
+# workaround https://github.com/pypa/setuptools/issues/937
+pip3 install setuptools==33.1.1
 pip3 install dist/fdroidserver-*.tar.gz
 
 # run tests in new pip+pyvenv install
@@ -68,6 +70,8 @@ cd $WORKSPACE
 rm -rf $WORKSPACE/env
 pyvenv $WORKSPACE/env
 . $WORKSPACE/env/bin/activate
+# workaround https://github.com/pypa/setuptools/issues/937
+pip3 install setuptools==33.1.1
 pip3 install -e $WORKSPACE
 python3 setup.py install