Browse Source

no tox for now, too many unfinished things in this repo that dont work atm.

master
heck 5 years ago
parent
commit
2a7ed3bb32
  1. 8
      docs/source/testing.rst
  2. 5
      setup.cfg
  3. 35
      tox.ini

8
docs/source/testing.rst

@ -3,13 +3,5 @@ Testing
See :ref:`install` to install the dependencies.
See `test/README.md` to run the tests in `test`.
To run the tests that use `pytest`, install the testing dependencies running
``pip install .[test]``.
In Debian, you can install the testing dependencies in the system running ``apt
install tox``.
Run the tests with the command `tox`. You can run individual tests by running
``tox -e <testname>``, eg. ``tox -e py37`` or ``tox -e unit``.

5
setup.cfg

@ -31,14 +31,9 @@ python_requires = >= 3.6
test_suite = tests
setup_requires =
setuptools >=39.2.0
# To automatically write the version from a SCM.
# Note: It fails with tags named as `Release_2.2.0-RC0`, because it is
# not conforming to semantic versioning, but it succeed with tags as
# `2.2.0-rc0`.
setuptools_scm >= 4.1.2
[options.extras_require]
# To install these dependencies, run pip install .[test]
test =
pytest
tox
doc = sphinx

35
tox.ini

@ -1,35 +0,0 @@
[tox]
skip_missing_interpreters = True
envlist = py36, py37, py38, inst, setup, unit, doc
# test that it can be installed with custom commands and clean env
[testenv:inst]
skip_install = True
commands =
- pip install .
recreate = True
[testenv:setup]
skip_install = True
commands = python setup.py install
recreate = True
[testenv:unit]
deps = .[test]
commands = pytest -svv tests
[testenv:doc]
deps = .[doc]
whitelist_externals = make
changedir = docs
commands =
make html
make man
# this requires Internet, it should not be in envlist
[testenv:doclinks]
deps = .[doc]
whitelist_externals = make
changedir = docs
commands =
make linkcheck
Loading…
Cancel
Save