Skip to content

Commit 08b6d9b

Browse files
committed
Changed travis to only build conda package on Python 3.6, and added PyPy to list of supported versions
1 parent deb3a35 commit 08b6d9b

File tree

2 files changed

+34
-27
lines changed

2 files changed

+34
-27
lines changed

.ci/travis_build_conda.sh

+33-27
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,40 @@
22

33
set -e -x
44

5-
python3 ./make_conda_recipe.py || exit 1
6-
7-
# Switch to miniconda
8-
source "$HOME/miniconda/etc/profile.d/conda.sh"
9-
hash -r
10-
conda config --set always_yes yes --set changeps1 no
11-
conda update -q conda
12-
conda install conda-build
13-
conda info -a
14-
conda config --add channels domdfcoding || exit 1
15-
conda config --add channels conda-forge || exit 1
16-
conda build conda --output-folder conda/dist
17-
18-
19-
for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do
20-
echo "$f"
21-
conda install $f || exit 1
22-
if [ -z "$TRAVIS_TAG" ]; then
23-
echo "Skipping deploy because this is not a tagged commit"
24-
else
25-
if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
26-
echo "Deploying to Anaconda.org..."
27-
anaconda -t $ANACONDA_TOKEN upload $f || exit 1
28-
echo "Successfully deployed to Anaconda.org."
5+
if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
6+
7+
8+
python3 ./make_conda_recipe.py || exit 1
9+
10+
# Switch to miniconda
11+
source "$HOME/miniconda/etc/profile.d/conda.sh"
12+
hash -r
13+
conda config --set always_yes yes --set changeps1 no
14+
conda update -q conda
15+
conda install conda-build
16+
conda info -a
17+
conda config --add channels domdfcoding || exit 1
18+
conda config --add channels conda-forge || exit 1
19+
conda build conda --output-folder conda/dist
20+
21+
for f in conda/dist/noarch/domdf_python_tools-*.tar.bz2; do
22+
echo "$f"
23+
conda install $f || exit 1
24+
if [ -z "$TRAVIS_TAG" ]; then
25+
echo "Skipping deploy because this is not a tagged commit"
2926
else
30-
echo "Skipping deploy because this is not the required runtime"
27+
if [ $TRAVIS_PYTHON_VERSION == 3.6 ]; then
28+
echo "Deploying to Anaconda.org..."
29+
anaconda -t $ANACONDA_TOKEN upload $f || exit 1
30+
echo "Successfully deployed to Anaconda.org."
31+
else
32+
echo "Skipping deploy because this is not the required runtime"
33+
fi
3134
fi
32-
fi
33-
done
35+
done
36+
37+
else
38+
echo "Skipping building conda package because this is not the required runtime"
39+
fi
3440

3541
exit 0

__pkginfo__.py

+1
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,6 @@
6363
'Programming Language :: Python :: 3.8',
6464
"Programming Language :: Python :: 3 :: Only",
6565
"Programming Language :: Python :: Implementation :: CPython",
66+
"Programming Language :: Python :: Implementation :: PyPy",
6667
'Topic :: Software Development :: Libraries :: Python Modules',
6768
]

0 commit comments

Comments
 (0)