mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
gitlab-ci: workaround "ImportError: No module named 'packaging'"
https://github.com/pypa/setuptools/issues/937 fdroid/ci-images#1
This commit is contained in:
parent
4929349555
commit
36272656fc
@ -3,6 +3,8 @@ image: fdroid/ci:server-20161223
|
|||||||
test:
|
test:
|
||||||
script:
|
script:
|
||||||
- mkdir -p /usr/lib/python3.4/site-packages/
|
- 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 .
|
- pip3 install -e .
|
||||||
- cd tests
|
- cd tests
|
||||||
- ./complete-ci-tests
|
- ./complete-ci-tests
|
||||||
|
@ -56,6 +56,8 @@ python3 setup.py sdist
|
|||||||
rm -rf $WORKSPACE/env
|
rm -rf $WORKSPACE/env
|
||||||
pyvenv $WORKSPACE/env
|
pyvenv $WORKSPACE/env
|
||||||
. $WORKSPACE/env/bin/activate
|
. $WORKSPACE/env/bin/activate
|
||||||
|
# workaround https://github.com/pypa/setuptools/issues/937
|
||||||
|
pip3 install setuptools==33.1.1
|
||||||
pip3 install dist/fdroidserver-*.tar.gz
|
pip3 install dist/fdroidserver-*.tar.gz
|
||||||
|
|
||||||
# run tests in new pip+pyvenv install
|
# run tests in new pip+pyvenv install
|
||||||
@ -68,6 +70,8 @@ cd $WORKSPACE
|
|||||||
rm -rf $WORKSPACE/env
|
rm -rf $WORKSPACE/env
|
||||||
pyvenv $WORKSPACE/env
|
pyvenv $WORKSPACE/env
|
||||||
. $WORKSPACE/env/bin/activate
|
. $WORKSPACE/env/bin/activate
|
||||||
|
# workaround https://github.com/pypa/setuptools/issues/937
|
||||||
|
pip3 install setuptools==33.1.1
|
||||||
pip3 install -e $WORKSPACE
|
pip3 install -e $WORKSPACE
|
||||||
python3 setup.py install
|
python3 setup.py install
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user