I recently added a small feature to my program (apprise) that requires the dbus library to be present for unit testing. I’ve see this issue which seems to define my problem, but the OP never returned to say whether or not he did to solve the problem. There is also reference to a StackOverflow post (from another related thread you guys handled) that doesn’t appear to exist any more.
There are numerous builds failing on me because dbus-python can’t be included/loaded (Python 2.7, Python 3.4, and Python 3.7. I’m using more versions of python, but those 3 seem to show all of the error variants.
Based on what I’ve found, here is what the .travis.yml file looks like. I added the sudo line, the before_install line and virtualenv just recently (without any luck).
language: python sudo: required matrix: include: - python: "2.7" env: TOXENV=py27 - python: "3.4" env: TOXENV=py34 - python: "3.5" env: TOXENV=py35 - python: "3.6" env: TOXENV=py36 - python: "3.7" dist: xenial env: TOXENV=py37 - python: "pypy2.7-5.8.0" env: TOXENV=pypy - python: "pypy3.5-5.8.0" env: TOXENV=pypy3 before_install: - sudo apt-get update -qq - sudo apt-get install -qq python-dbus python3-dbus install: - pip install . - pip install codecov tox - pip install -r dev-requirements.txt - pip install -r requirements.txt # run tests script: - tox after_success: - tox -e coverage-report - codecov virtualenv: system_site_packages: true notifications: email: false
Any advice or help would be fantastic!