Remove tox

This commit is contained in:
Dave Halter
2020-07-24 02:25:02 +02:00
parent 1a99fdd333
commit 5dd4301235
6 changed files with 16 additions and 31 deletions

1
.gitignore vendored
View File

@@ -1,7 +1,6 @@
*~ *~
*.sw? *.sw?
*.pyc *.pyc
.tox
.coveralls.yml .coveralls.yml
.coverage .coverage
/build/ /build/

View File

@@ -10,14 +10,15 @@ matrix:
- python: nightly - python: nightly
include: include:
- python: 3.8 - python: 3.8
env: TOXENV=py38-coverage script:
install: - 'pip install coverage'
- pip install --quiet tox-travis - 'coverage run -m pytest'
script: - 'coverage report'
- tox after_script:
after_script:
- | - |
if [ "${TOXENV%-coverage}" == "$TOXENV" ]; then pip install --quiet coveralls
pip install --quiet coveralls; coveralls
coveralls; install:
fi - pip install .[testing]
script:
- pytest

View File

@@ -5,7 +5,6 @@ include AUTHORS.txt
include .coveragerc include .coveragerc
include conftest.py include conftest.py
include pytest.ini include pytest.ini
include tox.ini
include parso/python/grammar*.txt include parso/python/grammar*.txt
recursive-include test * recursive-include test *
recursive-include docs * recursive-include docs *

View File

@@ -23,7 +23,7 @@ cd $PROJECT_NAME
git checkout $BRANCH git checkout $BRANCH
# Test first. # Test first.
tox pytest
# Create tag # Create tag
tag=v$(python3 -c "import $PROJECT_NAME; print($PROJECT_NAME.__version__)") tag=v$(python3 -c "import $PROJECT_NAME; print($PROJECT_NAME.__version__)")

View File

@@ -21,18 +21,18 @@ The deprecation process is as follows:
Testing Testing
------- -------
The test suite depends on ``tox`` and ``pytest``:: The test suite depends on ``pytest``::
pip install tox pytest pip install pytest
To run the tests for all supported Python versions:: To run the tests use the following::
tox pytest
If you want to test only a specific Python version (e.g. Python 3.9), it's as If you want to test only a specific Python version (e.g. Python 3.9), it's as
easy as:: easy as::
tox -e py39 python3.9 -m pytest
Tests are also run automatically on `Travis CI Tests are also run automatically on `Travis CI
<https://travis-ci.org/davidhalter/parso/>`_. <https://travis-ci.org/davidhalter/parso/>`_.

14
tox.ini
View File

@@ -1,14 +0,0 @@
[tox]
envlist = {py36,py37,py38}
[testenv]
extras = testing
deps =
coverage: coverage
setenv =
# https://github.com/tomchristie/django-rest-framework/issues/1957
# tox corrupts __pycache__, solution from here:
PYTHONDONTWRITEBYTECODE=1
coverage: TOX_TESTENV_COMMAND=coverage run -m pytest
commands =
{env:TOX_TESTENV_COMMAND:pytest} {posargs}
coverage: coverage report