forked from piskvorky/gensim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
115 lines (85 loc) · 2.62 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
[tox]
minversion = 2.0
envlist = {py27,py35,py36,py37}-{win,linux}, flake8, docs, docs-upload, download-wheels, upload-wheels, test-pypi
skipsdist = True
platform = linux: linux
win: win64
[flake8]
ignore = E12, W503
max-line-length = 120
show-source = True
[flake8-rst]
filename = *.rst *.py
max-line-length = 120
ignore = F821 ; TODO remove me when all examples in docstrings will be executable
exclude=.venv, .git, .tox, dist, doc, build, gensim/models/deprecated
[pytest]
addopts = -rfxEXs --durations=20 --showlocals --reruns 3 --reruns-delay 1
[testenv]
recreate = True
; rackcdn host only for windows wheels (numpy, scipy)
install_command = pip install --timeout=60 --trusted-host 28daf2247a33ed269873-7b1aad3fab3cc330e1fd9d109892382a.r6.cf2.rackcdn.com --find-links http://28daf2247a33ed269873-7b1aad3fab3cc330e1fd9d109892382a.r6.cf2.rackcdn.com/ {env:TOX_PIP_OPTS:} {opts} {packages}
deps =
py37: numpy==1.14.5
py37: scipy==1.1.0
py27: numpy==1.11.3
py27: scipy==0.18.1
py35: numpy==1.11.3
py35: scipy==0.18.1
py36: numpy==1.11.3
py36: scipy==0.18.1
linux: .[test]
win: .[test-win]
setenv =
FT_HOME={env:FT_HOME:}
WR_HOME={env:WR_HOME:}
VOWPAL_WABBIT_PATH={env:VOWPAL_WABBIT_PATH:}
DTM_PATH={env:DTM_PATH:}
MALLET_HOME={env:MALLET_HOME:}
SKIP_NETWORK_TESTS={env:SKIP_NETWORK_TESTS:}
BOTO_CONFIG={env:BOTO_CONFIG:}
PYTHONHASHSEED=1
commands =
python -c "from gensim.models.word2vec import FAST_VERSION; print(FAST_VERSION)"
python setup.py build_ext --inplace
python -c "from gensim.models.word2vec import FAST_VERSION; print(FAST_VERSION)"
pytest {posargs:gensim/test}
[testenv:flake8]
recreate = True
deps = flake8
commands = flake8 gensim/ {posargs}
[testenv:flake8-docs]
recreate = True
deps = flake8-rst >= 0.4.1
commands = flake8-rst gensim/ docs/ {posargs}
[testenv:docs]
basepython = python2
recreate = True
whitelist_externals = make
deps = .[docs]
changedir = docs/src
commands = make clean html
[testenv:docs-upload]
recreate = True
whitelist_externals = make
deps = .[docs]
changedir = docs/src
commands = make clean html upload
[testenv:download-wheels]
deps = wheelhouse_uploader
whitelist_externals = rm
recreate = True
commands =
rm -rf dist/
python setup.py sdist fetch_artifacts
[testenv:upload-wheels]
deps = twine
commands = twine upload dist/*
[testenv:test-pypi]
deps = twine
whitelist_externals = rm
commands =
rm -rf dist/
python setup.py sdist
twine upload --repository-url https://test.pypi.org/legacy/ dist/*
; Go to https://testpypi.python.org/pypi?name=gensim&:action=display and check result