1919 - PYVER=3.6 NPY="numpy==1.14.5"
2020 - PYVER=3.6 NPY="numpy>=1.15"
2121
22- - PYVER=3.7 NPY="numpy==1.14.5"
2322 - PYVER=3.7 NPY="numpy>=1.15"
2423
2524 - PYVER=3.8 NPY="numpy>=1.15"
2625
26+ - PYVER=3.9 NPY="numpy>=1.15"
27+
2728# - PYVER=pypy2.7 NPY="numpy>=1.15"
2829
2930 - PYVER=pypy3.6 NPY="numpy>=1.15"
3031
3132install :
3233 # Install conda
33- - wget -nv http ://repo.continuum.io/miniconda/Miniconda3- latest-Linux-x86_64.sh -O miniconda.sh
34+ - wget -nv https ://github.com/conda-forge/miniforge/releases/ latest/download/Miniforge3 -Linux-x86_64.sh -O miniconda.sh
3435 - bash miniconda.sh -b -p $HOME/miniconda
35- - export PATH="$HOME/miniconda/bin:$PATH"
36- - hash -r
37- - conda config --add channels conda-forge;
38- # conda install --quiet --yes -c conda-forge/label/mamba-alpha mamba
36+ - eval "$($HOME/miniconda/bin/python -m conda shell.bash hook)"
37+ - conda install --quiet --yes mamba
3938 - conda config --set always_yes yes --set changeps1 no
4039 # Create the conda testing environment
41- # FIXME: Mamba decides to upgrade Python here so pin it again
42- # FIXME: Channel priority is also mixed up
43- # FIXME: Mamba doesn't install pip by default
44- # FIXME: Mamba causes pip install numpy to be extremely slow
40+ # pyopenssl is for deployment
4541 - if [[ "${PYVER}" = pypy* ]]; then
46- conda create --quiet --yes -n testenv ${PYVER};
47- elif [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
48- conda create --quiet --yes -n testenv python=${PYVER} pip;
42+ mamba create --quiet --yes -n testenv ${PYVER};
43+ elif [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ] ; then
44+ mamba create --quiet --yes -n testenv python=${PYVER} pip pyopenssl ;
4945 else
50- conda create --quiet --yes -n testenv python=${PYVER};
46+ mamba create --quiet --yes -n testenv python=${PYVER} pyopenssl ;
5147 fi
52- - source activate testenv
53- - if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
54- conda install --quiet --yes python=${PYVER} pip root;
55- source activate testenv;
48+ - conda activate testenv
49+ - if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ] ; then
50+ mamba install --quiet --yes -n testenv python=${PYVER} pip root;
51+ conda activate testenv;
5652 fi
5753 - pip install --upgrade setuptools-scm
5854 - pip install $NPY
@@ -64,10 +60,6 @@ install:
6460 - pip install cachetools pkgconfig lz4 zstandard xxhash mock requests "pytest>=3.9" pytest-runner
6561 - if [[ ${PYVER} = "2.7" ]] ; then pip install backports.lzma ; fi
6662 - pip install pandas
67- # pyopenssl is for deployment
68- - if [[ ${PYVER} != pypy* ]] ; then
69- conda install -c anaconda python=${PYVER} pyopenssl;
70- fi
7163 - wget -O tests/samples/Event.root http://scikit-hep.org/uproot/examples/Event.root
7264 - pip install pytest-error-for-skips
7365
@@ -78,7 +70,7 @@ addons:
7870 - libatlas-base-dev
7971
8072script :
81- if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
73+ if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ] ; then
8274 pytest --error-for-skips -v tests;
8375 else
8476 pytest -v tests;
0 commit comments