forked from piskvorky/gensim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
93 lines (67 loc) · 2.08 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
[tox]
minversion = 2.0
envlist = {py27,py35,py36}-{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
builtins = get_ipython
[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/ {opts} numpy==1.11.3 scipy==0.18.1 {packages}
deps =
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:}
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/
[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