From 2e8a54aaa425c2145f26a8b00cf103373cc317f5 Mon Sep 17 00:00:00 2001 From: Nils Philippsen Date: Jan 23 2018 16:41:38 +0000 Subject: using tox for testing doesn't work With modulemd as the Python wrapper around libmodulemd (using gobject introspection), tox as it is configured fails to set up the virtualenv properly. Don't mention it in the README and remove its configuration. --- diff --git a/README.rst b/README.rst index 978de41..b976f00 100644 --- a/README.rst +++ b/README.rst @@ -8,12 +8,3 @@ modulemd: A Python wrapper around the libmodulemd library for manipulation of the module metadata format. API documentation is available at http://modulemd.readthedocs.org/. - -Testing -------- - -.. code-block:: bash - - $ tox -e py27,py35 - -*See tox.ini for additional environments.* diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 410db77..0000000 --- a/tox.ini +++ /dev/null @@ -1,41 +0,0 @@ -# Tox (http://tox.testrun.org/) is a tool for running tests -# in multiple virtualenvs. This configuration file will run the -# test suite on all supported python versions. To use it, "pip install tox" -# and then run "tox" from this directory. - -[tox] -envlist = py27, py35, coverage, flake8, bandit - -[flake8] -max-line-length = 100 - -[testenv] -usedevelop = true -deps = pytest -commands = - py.test {posargs} - -[testenv:coverage] -basepython = python2 -deps = - {[testenv]deps} - coverage -commands = - coverage run --parallel-mode -m pytest - coverage combine - coverage report --omit=.tox/* -m --skip-covered - -[testenv:flake8] -basepython = python3 -skip_install = true -deps = flake8 -commands = flake8 --ignore E731 --exclude .tox,.git -ignore_outcome = True - -[testenv:bandit] -basepython = python3 -skip_install = true -deps = bandit -commands = - /bin/bash -c "bandit -r -ll $(find . -mindepth 1 -maxdepth 1 ! -name \.\* -type d -o -name \*.py)" -ignore_outcome = True