mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 04:44:29 +08:00
Remove tox
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,7 +1,6 @@
|
|||||||
*~
|
*~
|
||||||
*.sw?
|
*.sw?
|
||||||
*.pyc
|
*.pyc
|
||||||
.tox
|
|
||||||
.coveralls.yml
|
.coveralls.yml
|
||||||
.coverage
|
.coverage
|
||||||
/build/
|
/build/
|
||||||
|
|||||||
17
.travis.yml
17
.travis.yml
@@ -10,14 +10,15 @@ matrix:
|
|||||||
- python: nightly
|
- python: nightly
|
||||||
include:
|
include:
|
||||||
- python: 3.8
|
- python: 3.8
|
||||||
env: TOXENV=py38-coverage
|
|
||||||
install:
|
|
||||||
- pip install --quiet tox-travis
|
|
||||||
script:
|
script:
|
||||||
- tox
|
- 'pip install coverage'
|
||||||
|
- 'coverage run -m pytest'
|
||||||
|
- 'coverage report'
|
||||||
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
|
||||||
|
|||||||
@@ -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 *
|
||||||
|
|||||||
@@ -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__)")
|
||||||
|
|||||||
@@ -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
14
tox.ini
@@ -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
|
|
||||||
Reference in New Issue
Block a user