3454a55636
cffconvert / validate (push) Has been cancelled
ci-workflow / pre-commit (push) Has been cancelled
ci-workflow / Minimal NLTK Download Test (macos-latest) (push) Has been cancelled
ci-workflow / Minimal NLTK Download Test (ubuntu-latest) (push) Has been cancelled
ci-workflow / Minimal NLTK Download Test (windows-latest) (push) Has been cancelled
ci-workflow / Python 3.10 on macos-latest (push) Has been cancelled
ci-workflow / Python 3.11 on macos-latest (push) Has been cancelled
ci-workflow / Python 3.12 on macos-latest (push) Has been cancelled
ci-workflow / Python 3.13 on macos-latest (push) Has been cancelled
ci-workflow / Python 3.14 on macos-latest (push) Has been cancelled
ci-workflow / Python 3.14t on macos-latest (push) Has been cancelled
ci-workflow / Python 3.10 on ubuntu-latest (push) Has been cancelled
ci-workflow / Python 3.11 on ubuntu-latest (push) Has been cancelled
ci-workflow / Python 3.12 on ubuntu-latest (push) Has been cancelled
ci-workflow / Python 3.13 on ubuntu-latest (push) Has been cancelled
ci-workflow / Python 3.14 on ubuntu-latest (push) Has been cancelled
ci-workflow / Python 3.14t on ubuntu-latest (push) Has been cancelled
ci-workflow / Python 3.10 on windows-latest (push) Has been cancelled
ci-workflow / Python 3.11 on windows-latest (push) Has been cancelled
ci-workflow / Python 3.12 on windows-latest (push) Has been cancelled
ci-workflow / Python 3.13 on windows-latest (push) Has been cancelled
ci-workflow / Python 3.14 on windows-latest (push) Has been cancelled
124 lines
2.4 KiB
INI
124 lines
2.4 KiB
INI
[tox]
|
|
envlist =
|
|
py{310,311,312,313,314}
|
|
pypy
|
|
py{310,311,312,313,314}-nodeps
|
|
py{310,311,312,313,314}-jenkins
|
|
py-travis
|
|
|
|
[testenv]
|
|
; simplify numpy installation
|
|
setenv =
|
|
LAPACK=
|
|
ATLAS=None
|
|
PYTHONWARNINGS=ignore
|
|
|
|
; Copy all environment variables to the tox test environment
|
|
passenv = *
|
|
|
|
deps =
|
|
numpy
|
|
text-unidecode
|
|
twython
|
|
pyparsing
|
|
pytest
|
|
pytest-cov
|
|
pytest-mock
|
|
python-crfsuite
|
|
regex
|
|
click
|
|
joblib
|
|
tqdm
|
|
matplotlib
|
|
markdown-it-py
|
|
mdit-py-plugins
|
|
mdit-plain
|
|
pyyaml
|
|
|
|
changedir = nltk/test
|
|
commands =
|
|
; scipy and scikit-learn requires numpy even to run setup.py so
|
|
; they can't be installed in one command
|
|
pip install scipy scikit-learn
|
|
|
|
; pytest --cov=nltk --cov-report html:{envdir}/docs nltk/test/
|
|
pytest
|
|
|
|
[testenv:pypy]
|
|
; numpy is bundled with pypy; coverage is extra slow and
|
|
; the coverage results are not that different from CPython.
|
|
deps =
|
|
pytest
|
|
pytest-mock
|
|
twython
|
|
|
|
commands =
|
|
pytest
|
|
|
|
|
|
[testenv:py310-nodeps]
|
|
basepython = python3.10
|
|
deps =
|
|
pytest
|
|
pytest-mock
|
|
commands = pytest
|
|
|
|
[testenv:py311-nodeps]
|
|
basepython = python3.11
|
|
deps =
|
|
pytest
|
|
pytest-mock
|
|
commands = pytest
|
|
|
|
[testenv:py312-nodeps]
|
|
basepython = python3.12
|
|
deps =
|
|
pytest
|
|
pytest-mock
|
|
commands = pytest
|
|
|
|
[testenv:py313-nodeps]
|
|
basepython = python3.13
|
|
deps =
|
|
pytest
|
|
pytest-mock
|
|
commands = pytest
|
|
|
|
[testenv:py314-nodeps]
|
|
basepython = python3.14
|
|
deps =
|
|
pytest
|
|
pytest-mock
|
|
commands = pytest
|
|
|
|
# Use minor version agnostic basepython, but specify testenv
|
|
# control Python2/3 versions using jenkins' user-defined matrix instead.
|
|
# Available Python versions: http://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/python/fc25/
|
|
|
|
[testenv:py-travis]
|
|
extras = all
|
|
setenv =
|
|
NLTK_DATA = {homedir}/nltk_data/
|
|
commands = {toxinidir}/tools/travis/coverage-pylint.sh
|
|
|
|
[testenv:py-travis-third-party]
|
|
extras = all
|
|
setenv =
|
|
STANFORD_MODELS = {homedir}/third/stanford-parser/
|
|
STANFORD_PARSER = {homedir}/third/stanford-parser/
|
|
STANFORD_POSTAGGER = {homedir}/third/stanford-postagger/
|
|
NLTK_DATA = {homedir}/nltk_data/
|
|
|
|
commands =
|
|
{toxinidir}/tools/travis/third-party.sh
|
|
{toxinidir}/tools/travis/coverage-pylint.sh
|
|
|
|
[testenv:py3-runtime-check]
|
|
; nltk should be runnable in an env with nothing installed
|
|
basepython = python3
|
|
deps =
|
|
commands = python -c "import nltk"
|
|
|
|
[isort]
|
|
profile=black
|