Skip to content

Commit

Permalink
gitlab-ci: workaround "ImportError: No module named 'packaging'"
Browse files Browse the repository at this point in the history
pypa/setuptools#937

fdroid/ci-images#1
  • Loading branch information
eighthave committed Feb 6, 2017
1 parent 4929349 commit 3627265
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions tests/complete-ci-tests
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 3627265

Please sign in to comment.