nltk

Форк
0
/
tox.ini 
122 строки · 2.4 Кб
1
[tox]
2
envlist =
3
    py{38,39,310,311,312}
4
    pypy
5
    py{38,39,310,311,312}-nodeps
6
    py{38,39,310,311,312}-jenkins
7
    py-travis
8

9
[testenv]
10
; simplify numpy installation
11
setenv =
12
    LAPACK=
13
    ATLAS=None
14
    PYTHONWARNINGS=ignore
15

16
; Copy all environment variables to the tox test environment
17
passenv = *
18

19
deps =
20
    numpy
21
    text-unidecode
22
    twython
23
    pyparsing
24
    pytest
25
    pytest-cov
26
    pytest-mock
27
    python-crfsuite
28
    regex
29
    click
30
    joblib
31
    tqdm
32
    matplotlib
33
    markdown-it-py
34
    mdit-py-plugins
35
    mdit-plain
36
    pyyaml
37

38
changedir = nltk/test
39
commands =
40
    ; scipy and scikit-learn requires numpy even to run setup.py so
41
    ; they can't be installed in one command
42
    pip install scipy scikit-learn
43

44
    ; pytest --cov=nltk --cov-report html:{envdir}/docs nltk/test/
45
    pytest
46

47
[testenv:pypy]
48
; numpy is bundled with pypy; coverage is extra slow and
49
; the coverage results are not that different from CPython.
50
deps =
51
    pytest
52
    pytest-mock
53
    twython
54

55
commands =
56
    pytest
57

58
[testenv:py38-nodeps]
59
basepython = python3.8
60
deps =
61
    pytest
62
    pytest-mock
63
commands = pytest
64

65
[testenv:py39-nodeps]
66
basepython = python3.9
67
deps =
68
    pytest
69
    pytest-mock
70
commands = pytest
71

72
[testenv:py310-nodeps]
73
basepython = python3.10
74
deps =
75
    pytest
76
    pytest-mock
77
commands = pytest
78

79
[testenv:py311-nodeps]
80
basepython = python3.11
81
deps =
82
    pytest
83
    pytest-mock
84
commands = pytest
85

86
[testenv:py312-nodeps]
87
basepython = python3.12
88
deps =
89
    pytest
90
    pytest-mock
91
commands = pytest
92

93
# Use minor version agnostic basepython, but specify testenv
94
# control Python2/3 versions using jenkins' user-defined matrix instead.
95
# Available Python versions: http://repository-cloudbees.forge.cloudbees.com/distributions/ci-addons/python/fc25/
96

97
[testenv:py-travis]
98
extras = all
99
setenv =
100
    NLTK_DATA = {homedir}/nltk_data/
101
commands = {toxinidir}/tools/travis/coverage-pylint.sh
102

103
[testenv:py-travis-third-party]
104
extras = all
105
setenv =
106
	STANFORD_MODELS = {homedir}/third/stanford-parser/
107
	STANFORD_PARSER = {homedir}/third/stanford-parser/
108
	STANFORD_POSTAGGER = {homedir}/third/stanford-postagger/
109
    NLTK_DATA = {homedir}/nltk_data/
110

111
commands =
112
    {toxinidir}/tools/travis/third-party.sh
113
    {toxinidir}/tools/travis/coverage-pylint.sh
114

115
[testenv:py3-runtime-check]
116
; nltk should be runnable in an env with nothing installed
117
basepython = python3
118
deps =
119
commands = python -c "import nltk"
120

121
[isort]
122
profile=black
123

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.