File tree Expand file tree Collapse file tree 5 files changed +48
-19
lines changed Expand file tree Collapse file tree 5 files changed +48
-19
lines changed Original file line number Diff line number Diff line change 48
48
stage : test
49
49
install :
50
50
- . ./scripts/create_testenv.sh
51
- - pip uninstall arviz -y
51
+ - conda uninstall arviz -y
52
52
# replace ArviZ with the lastest master
53
53
- pip install git+git://github.com/arviz-devs/arviz.git
54
54
- pip install codecov
Original file line number Diff line number Diff line change
1
+ name : testenv
2
+ channels :
3
+ - conda-forge
4
+ - defaults
5
+ dependencies :
6
+ - python=3.6
7
+ - arviz>=0.9
8
+ - theano>=1.0.4
9
+ - numpy>=1.13
10
+ - scipy>=0.18
11
+ - pandas >=0.18
12
+ - patsy>=0.5
13
+ - fastprogress>=0.2
14
+ - h5py>=2.7
15
+ - typing-extensions>=3.7
16
+ - bokeh>=0.12
17
+ - coverage>=5.1
18
+ - python-graphviz
19
+ - ipython>=7.16
20
+ - nbsphinx>=0.4
21
+ - nose>=1.3
22
+ - nose-parameterized>=0.6
23
+ - numpydoc>=0.9
24
+ - pycodestyle>=2.3
25
+ - pyflakes>=1.5
26
+ - pylint>=1.7
27
+ - pytest-cov>=2.5
28
+ - pytest>=3.0
29
+ - recommonmark>=0.4
30
+ - seaborn>=0.8
31
+ - sphinx-autobuild>=0.7
32
+ - sphinx>=1.5
33
+ - watermark
34
+ - parameterized
35
+ - black
36
+ - ipywidgets
37
+ - dataclasses # python_version < 3.7
38
+ - contextvars # python_version < 3.7
39
+ - pip :
40
+ - black_nbconvert
Original file line number Diff line number Diff line change 1
- black_nbconvert
2
1
bokeh >= 0.12.13
3
- coverage < 5.0
2
+ coverage >= 5.1
4
3
graphviz >= 0.8.3
5
4
ipython
6
- Keras >= 2.0.8
7
5
nbsphinx >= 0.4.2
8
6
nose >= 1.3.7
9
7
nose-parameterized == 0.6.0
@@ -18,4 +16,5 @@ seaborn>=0.8.1
18
16
sphinx-autobuild == 0.7.1
19
17
sphinx >= 1.5.5
20
18
watermark
21
- dill
19
+ parameterized
20
+ dill
Original file line number Diff line number Diff line change @@ -20,27 +20,19 @@ command -v conda >/dev/null 2>&1 || {
20
20
}
21
21
22
22
ENVNAME=" ${ENVNAME:- testenv} " # if no ENVNAME is specified, use testenv
23
- PYTHON_VERSION=${PYTHON_VERSION:- 3.6} # if no python specified, use 3.6
24
23
25
24
if [ -z ${GLOBAL} ]; then
26
25
if conda env list | grep -q ${ENVNAME} ; then
27
26
echo " Environment ${ENVNAME} already exists, keeping up to date"
28
27
else
29
- conda create -n ${ENVNAME} --yes pip python=${PYTHON_VERSION}
28
+ conda config --add channels conda-forge
29
+ conda config --set channel_priority strict
30
+ conda env create -f environment-dev.yml
30
31
fi
31
32
source activate ${ENVNAME}
32
33
fi
33
- pip install --upgrade pip
34
34
35
- conda install --yes mkl-service
36
- conda install --yes -c conda-forge python-graphviz
37
-
38
- # Travis env is unable to import cached mpl sometimes https://github.com/pymc-devs/pymc3/issues/3423
39
- pip install --no-cache-dir --force-reinstall -e .
40
- pip install --no-cache-dir --force-reinstall -r requirements-dev.txt
41
-
42
- # Install untested, non-required code (linter fails without them)
43
- pip install ipython ipywidgets
35
+ conda update --yes --all
44
36
45
37
# Install editable using the setup.py
46
38
if [ -z ${NO_SETUP} ]; then
Original file line number Diff line number Diff line change 46
46
export PATH=" $INSTALL_FOLDER /bin:$PATH "
47
47
echo " Adding $INSTALL_FOLDER to PATH. Consider adding it in your .rc file as well."
48
48
conda update -q -y conda
49
- # Uninstalling miniconda's numpy to avoid conflicting versions when creating the test env
50
- pip uninstall -y numpy
You can’t perform that action at this time.
0 commit comments