From 720ac7cab46f57971c71d2d2aec8235a47a53582 Mon Sep 17 00:00:00 2001 From: "Kali Kaneko (leap communications)" Date: Thu, 1 Sep 2016 01:23:30 -0400 Subject: [tests] add a separate env for development branches of soledad/common --- README.rst | 9 +++++++-- setup.py | 6 +++--- tox.ini | 22 ++++++++++++++++------ 3 files changed, 26 insertions(+), 11 deletions(-) diff --git a/README.rst b/README.rst index 80dbb67..ecfe3fa 100644 --- a/README.rst +++ b/README.rst @@ -1,6 +1,6 @@ bitmask-dev =========== -Your internet encryption toolkit. +**Your internet encryption toolkit** Develop ------- @@ -9,7 +9,9 @@ If you want to develop for the encrypted mail service, execute inside your virtu make dev-mail -If you want to develop for the gui client:: +If you want to develop for the gui client too, you have to have installed the +python2 bindings for Qt5 in your system (in debian is python-pyqt5). After +ensuring this, you can do:: make dev-all @@ -21,4 +23,7 @@ Tests need tox:: pip install tox tox +If you are developing against a non-published branch of leap.common or +leap.soledad, run instead:: + tox -e py27-dev diff --git a/setup.py b/setup.py index bbc0452..c49f062 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ import versioneer # Note that here we can specify ranges. required = [ - 'twisted', # 14.0.0 + 'twisted>=14.0.0', 'zope.interface', 'service-identity', 'colorama', @@ -26,10 +26,10 @@ extras = { 'gnupg', ], 'gui': [ - 'PyQt', + 'vext.pyqt5', ], 'all': [ - 'PyQt', + 'vext.pyqt5', 'leap.soledad.client', 'gnupg', ] diff --git a/tox.ini b/tox.ini index 6771939..dda0a34 100644 --- a/tox.ini +++ b/tox.ini @@ -14,13 +14,23 @@ deps = pytest-cov setuptools-trial gnupg - leap.soledad.common - - # move this to another env! - #leap.soledad.client - -e../soledad/client + leap.soledad.client -e. setenv = HOME=/tmp - +[testenv:py27-dev] +# This environment assumes developer has checked out +# leap_common and soledad repos in the parent folder. +deps = + mock + pep8 + pytest + pytest-pep8 + pytest-cov + setuptools-trial + gnupg + -e../leap_common + -e../soledad/common + -e../soledad/client + -e. -- cgit v1.2.3