Skip to content

Commit 94a645a

Browse files
committed
Use conda environmnent file for testenv
1 parent b6b8e80 commit 94a645a

File tree

2 files changed

+41
-6
lines changed

2 files changed

+41
-6
lines changed

environment-dev.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

scripts/create_testenv.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,19 @@ command -v conda >/dev/null 2>&1 || {
2020
}
2121

2222
ENVNAME="${ENVNAME:-testenv}" # if no ENVNAME is specified, use testenv
23-
PYTHON_VERSION=${PYTHON_VERSION:-3.6} # if no python specified, use 3.6
2423

2524
if [ -z ${GLOBAL} ]; then
2625
if conda env list | grep -q ${ENVNAME}; then
2726
echo "Environment ${ENVNAME} already exists, keeping up to date"
2827
else
29-
conda create -n ${ENVNAME} --yes pip python=${PYTHON_VERSION}
3028
conda config --add channels conda-forge
3129
conda config --set channel_priority strict
30+
conda env create -f environment-dev.yml
3231
fi
3332
source activate ${ENVNAME}
3433
fi
3534

3635
conda update --yes --all
37-
conda install --yes python-graphviz ipywidgets
38-
conda install --yes --file requirements.txt
39-
conda install --yes --file requirements-dev.txt
40-
pip install --no-cache-dir --force-reinstall black_nbconvert
4136

4237
# Install editable using the setup.py
4338
if [ -z ${NO_SETUP} ]; then

0 commit comments

Comments
 (0)