Skip to content
Commits on Source (7)
before_script:
- "pip install -r .ci/requirements.txt"
- "REQUIREMENTS=$(mktemp) && python setup.py requirements > ${REQUIREMENTS} && pip install -r ${REQUIREMENTS} && rm ${REQUIREMENTS}"
- "pip install -r .ci/requirements_modules.txt"
- "pip3 install -r .ci/requirements.txt"
- "REQUIREMENTS=$(mktemp) && python3 setup.py requirements > ${REQUIREMENTS} && pip3 install -r ${REQUIREMENTS} && rm ${REQUIREMENTS}"
- "pip3 install -r .ci/requirements_modules.txt"
build:2.7:
image: "python:2.7"
stage: "build"
script:
- "./tools/local_install.sh ~/bin"
- "./tools/local_install.sh -2 ~/bin"
pyflakes:2.7:
image: "python:2.7"
stage: "test"
script:
- "./tools/pyflakes.sh"
- "./tools/pyflakes.sh -2"
lint:2.7:
image: "python:2.7"
stage: "test"
allow_failure: true
script:
- "./tools/weboob_lint.sh"
- "./tools/weboob_lint.sh -2"
unittests:2.7:
image: "python:2.7"
stage: "test"
script:
- "./tools/run_tests.sh --no-modules"
- "./tools/run_tests.sh -2 --no-modules"
unittests-modules:2.7:
image: "python:2.7"
stage: "test"
allow_failure: true
script:
- "./tools/run_tests.sh --no-core"
- "./tools/run_tests.sh -2 --no-core"
doc:2.7:
image: "python:2.7"
......@@ -45,33 +45,33 @@ build:3:
image: "python:3"
stage: "build"
script:
- "./tools/local_install.sh -3 ~/bin"
- "./tools/local_install.sh ~/bin"
pyflakes:3:
image: "python:3"
stage: "test"
script:
- "./tools/pyflakes.sh -3"
- "./tools/pyflakes.sh"
lint:3:
image: "python:3"
stage: "test"
allow_failure: true
script:
- "./tools/weboob_lint.sh -3"
- "./tools/weboob_lint.sh"
unittests:3:
image: "python:3"
stage: "test"
script:
- "./tools/run_tests.sh -3 --no-modules"
- "./tools/run_tests.sh --no-modules"
unittests-modules:3:
image: "python:3"
stage: "test"
allow_failure: true
script:
- "./tools/run_tests.sh -3 --no-core"
- "./tools/run_tests.sh --no-core"
doc:3:
image: "python:3"
......
......@@ -10,7 +10,7 @@ you have to handle them by hand, according to your distribution.
The requirements are provided in ``setup.py``, except for:
* gpgv (for secure updates). If not packaged alone, it should be in ``gnupg`` or ``gpg``.
* PyQt5 (python-pyqt5, pyqt5-dev-tools, python-pyqt5.qtmultimedia) for graphical applications.
* PyQt5 (python3-pyqt5, pyqt5-dev-tools, python3-pyqt5.qtmultimedia) for graphical applications.
* For more performance, ensure you have ``libyaml`` and ``simplejson`` installed.
Some modules may have more dependencies.
......@@ -36,8 +36,7 @@ System installation (discouraged)
---------------------------------
The install mode copies files to the Python system-wide packages directory (for
example ``/usr/lib/python2.5/site-packages`` for Python 2.5, or
``/usr/local/lib/python2.6/dist-packages`` for Python 2.6). ::
example ``/usr/lib/python3.7/dist-packages`` for Python 3.7. ::
# ./setup.py install
......
#!/usr/bin/env python
#!/usr/bin/env python3
import logging
import os
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright(C) 2012 Alexandre Flament
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Romain Bignon
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright(C) 2017 Matthieu Weber
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
import os
......
......@@ -38,7 +38,7 @@
# so apiclient must be imported after
from apiclient.discovery import build as ytbuild
except ImportError:
raise ImportError("Please install python-googleapi")
raise ImportError("Please install python3-googleapi")
__all__ = ['YoutubeModule']
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright(C) 2013 Bezleputh
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ft=python et softtabstop=4 cinoptions=4 shiftwidth=4 ts=4 ai
......
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright(C) 2011 Romain Bignon
......