-
Notifications
You must be signed in to change notification settings - Fork 63
/
tox.ini
174 lines (158 loc) · 3.83 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
#
# Tox configuration for testing Anaconda and pip Python SWAT packages.
#
[flake8]
ignore = F401,W503,E275
max-line-length = 90
max-complexity = 80
inline-quotes = single
multiline-quotes = single
[tox]
requires = tox-conda
envlist = {py27,py34,py35,py36,py37}-{conda,pip}
toxworkdir = {env:TOX_WORK_DIR:{toxinidir}/.tox}
skipsdist = True
whitelist_externals =
/usr/bin/rm
[testenv]
# Emulate path settings of 'conda activate'
setenv =
PATH = {envdir}{:}{envdir}/Library/mingw-w64/bin{:}{envdir}/Library/usr/bin{:}{envdir}/Library/bin{:}{envdir}/Scripts{:}{envdir}/bin{:}{env:PATH}
passenv =
CASURL
CAS_URL
CASHOST
CAS_HOST
CASPORT
CAS_PORT
CASPROTOCOL
CAS_PROTOCOL
CASUSER
CAS_USER
CASPASSWORD
CAS_PASSWORD
CASTOKEN
CAS_TOKEN
CONDA_PKGS_DIRS
CONDA_CHANNEL_URL
CONDA_SUBDIR
PYPI_URL
NOSETESTS_ARGS
SWAT_VERSION_EXPR
WINDIR
conda_deps =
beautifulsoup4
conda>=3.8
coverage
html5lib
lxml
matplotlib
nose
numexpr
pillow
pip
pymysql
pytest
pytz
requests
sas7bdat
scipy
six
sqlalchemy
xarray
xlrd
xlsxwriter
# cd to anything but the default {toxinidir}.
changedir = {envdir}
#
# Parent environments for anaconda and pip package commands.
#
[testenv:conda]
commands =
# - /usr/bin/rm -rf {env:CONDA_PKGS_DIRS:/tmp}/swat-*-py[0-9][0-9]_*
- {envbindir}/conda uninstall -y -q swat
{envbindir}/conda install -y -q -c {env:CONDA_CHANNEL_URL:sas-institute} -c sas-institute swat{env:SWAT_VERSION_EXPR:}
{envbindir}/conda list --show-channel-urls swat
{envbindir}/nosetests -v {env:NOSETESTS_ARGS:} {posargs:swat.tests.cas.test_basics}
- {envbindir}/conda uninstall -y -q swat
# - /usr/bin/rm -rf {env:CONDA_PKGS_DIRS:/tmp}/swat-*-py[0-9][0-9]_*
[testenv:pip]
commands =
- {envbindir}/pip uninstall -yq swat
{envbindir}/pip install --no-cache-dir --index-url {env:PYPI_URL:https://pypi.python.org/simple} swat{env:SWAT_VERSION_EXPR:}
{envbindir}/pip show swat
{envbindir}/nosetests -v {env:NOSETESTS_ARGS:} {posargs:swat.tests.cas.test_basics}
- {envbindir}/pip uninstall -yq swat
#
# Python 2.7
#
[testenv:py27-conda]
commands = {[testenv:conda]commands}
conda_deps =
{[testenv]conda_deps}
pandas==0.22*
numpy<=1.20 # pandas is incompatible with newer versions
[testenv:py27-pip]
commands = {[testenv:pip]commands}
conda_deps =
{[testenv]conda_deps}
pandas==0.22*
numpy<=1.20 # pandas is incompatible with newer versions
#
# Python 3.5
#
[testenv:py35-conda]
commands = {[testenv:conda]commands}
conda_deps =
{[testenv]conda_deps}
pandas==0.23*
numpy<=1.20 # pandas is incompatible with newer versions
[testenv:py35-pip]
commands = {[testenv:pip]commands}
conda_deps =
{[testenv]conda_deps}
pandas==0.23*
numpy<=1.20 # pandas is incompatible with newer versions
#
# Python 3.6
#
[testenv:py36-conda]
commands = {[testenv:conda]commands}
conda_deps =
{[testenv]conda_deps}
pandas==0.24*
numpy<=1.20 # pandas is incompatible with newer versions
[testenv:py36-pip]
commands = {[testenv:pip]commands}
conda_deps =
{[testenv]conda_deps}
pandas==0.24*
numpy<=1.20 # pandas is incompatible with newer versions
#
# Python 3.7
#
[testenv:py37-conda]
commands = {[testenv:conda]commands}
conda_deps =
{[testenv]conda_deps}
pandas==0.25*
numpy<=1.20 # pandas is incompatible with newer versions
[testenv:py37-pip]
commands = {[testenv:pip]commands}
conda_deps =
{[testenv]conda_deps}
pandas==0.25*
numpy<=1.20 # pandas is incompatible with newer versions
#
# Python 3.8
#
[testenv:py38-conda]
commands = {[testenv:conda]commands}
conda_deps =
{[testenv]conda_deps}
pandas
[testenv:py38-pip]
commands = {[testenv:pip]commands}
conda_deps =
{[testenv]conda_deps}
pandas