Skip to content

Commit

Permalink
drop python 2.7 and 3.5, add python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jthiard committed May 6, 2022
1 parent 809ac36 commit 542fa1b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Dockerfile.wheels
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,16 @@ RUN mkdir -p /src \
&& make install

# Bake dev requirements into the Docker image for faster builds
# XXX setuptools 57.5.0 installed to avoid https://github.com/nextgis/pygdal/issues/67
# we need to update setup.py instead
ADD requirements.txt /tmp/requirements.txt
RUN for PYBIN in /opt/python/*/bin; do \
if [[ $PYBIN == *"26"* ]]; then continue; fi; \
if [[ $PYBIN == *"27"* ]]; then continue; fi; \
if [[ $PYBIN == *"33"* ]]; then continue; fi; \
if [[ $PYBIN == *"35"* ]]; then continue; fi; \
$PYBIN/pip install -U pip ; \
$PYBIN/pip install --upgrade --no-cache-dir setuptools==57.5.0 ; \
$PYBIN/pip install -r /tmp/requirements.txt ; \
done

Expand Down
2 changes: 2 additions & 0 deletions build-linux-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ source /opt/rh/devtoolset-2/enable
pushd ${GDAL_BUILD_PATH}
for PYBIN in /opt/python/*/bin; do
if [[ $PYBIN == *"26"* ]]; then continue; fi
if [[ $PYBIN == *"27"* ]]; then continue; fi
if [[ $PYBIN == *"33"* ]]; then continue; fi
if [[ $PYBIN == *"35"* ]]; then continue; fi
export PATH=${PYBIN}:$ORIGINAL_PATH
rm -rf build
CFLAGS="-std=c++11" python setup.py bdist_wheel -d ${UNREPAIRED_WHEELS}
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
skipsdist = True
envlist= py27,py35,py36,py37,py38,py39
envlist= py36,py37,py38,py39

[testenv]
deps = pytest
Expand Down

0 comments on commit 542fa1b

Please sign in to comment.