diff --git a/.travis.yml b/.travis.yml index 9b6410c7..19fd66c1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,7 +28,14 @@ install: script: - mkdir -p builddir && cd builddir && meson && ninja -v && sudo ninja install + - export LD_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu:$LD_LIBRARY_PATH + - sudo ldconfig -v - cd ../python -# - sudo pip install . -# - sudo pip install pytest -# - pytest tests + - virtualenv venv + - source venv/bin/activate + - hash -r + - pip install -e . + - pip install pytest + # - python -c 'import queue; print (queue)' + # import error with "queue", how can this happen? + # - pytest tests diff --git a/python/setup.py b/python/setup.py index 3e834d45..0685271e 100644 --- a/python/setup.py +++ b/python/setup.py @@ -7,7 +7,7 @@ setuptools.setup( description='Python bindings for deltachat-core using CFFI', author='Delta Chat contributors', setup_requires=['cffi>=1.0.0'], - install_requires=['cffi>=1.0.0'], + install_requires=['cffi>=1.0.0', 'requests'], packages=setuptools.find_packages('src'), package_dir={'': 'src'}, cffi_modules=['src/deltachat/_build.py:ffibuilder'], diff --git a/python/tests/test_lowlevel.py b/python/tests/test_lowlevel.py index 69e1169f..10f4d29e 100644 --- a/python/tests/test_lowlevel.py +++ b/python/tests/test_lowlevel.py @@ -3,7 +3,7 @@ import deltachat import re from deltachat import capi from deltachat.capi import ffi -import queue +from queue import Queue def test_empty_context(): @@ -17,7 +17,7 @@ def test_event_defines(): class TestLive: def test_basic_configure_login_ok(self, request, tmp_db_path, userpassword): - q = queue.Queue() + q = Queue() dc = deltachat.Account(tmp_db_path, logcallback=q.put) dc.set_config(addr=userpassword[0], mail_pw=userpassword[1]) dc.start()