Browse Source

add 3.9, drop 3.5 (#74)

* add 3.9, drop 3.5

* github actions
master
Ofek Lev 3 years ago
committed by GitHub
parent
commit
2db5eb5d2e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 34
      .github/workflows/main.yml
  2. 14
      .travis.yml
  3. 2
      .travis/build-linux-wheels.sh
  4. 36
      .travis/install.sh
  5. 2
      tox.ini

34
.github/workflows/main.yml

@ -0,0 +1,34 @@
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
os: [ubuntu-18.04, macos-10.15]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade Python packaging tools
run: pip install --upgrade pip setuptools wheel
- name: Show runner information
run: |
python --version
pip --version

14
.travis.yml

@ -40,14 +40,14 @@ matrix:
services: docker
- python: 2.7
env: TOXENV=py27,bench
- python: 3.5
env: TOXENV=py35,bench
- python: 3.6
env: TOXENV=py36,bench
- python: 3.7
env: TOXENV=py37,bench
- python: 3.8
env: TOXENV=py38,bench
- python: 3.9
env: TOXENV=py39,bench
- python: pypy3
env: TOXENV=pypy3k,bench
- os: osx
@ -55,11 +55,6 @@ matrix:
python: 2.7
osx_image: xcode10.1
env: TOXENV=py27,bench TRAVIS_PYTHON_VERSION=2.7
- os: osx
language: generic
python: 3.5
osx_image: xcode10.1
env: TOXENV=py35,bench TRAVIS_PYTHON_VERSION=3.5
- os: osx
language: generic
python: 3.6
@ -75,6 +70,11 @@ matrix:
python: 3.8
osx_image: xcode10.1
env: TOXENV=py38,bench TRAVIS_PYTHON_VERSION=3.8
- os: osx
language: generic
python: 3.9
osx_image: xcode10.1
env: TOXENV=py39,bench TRAVIS_PYTHON_VERSION=3.9
before_install:
- chmod +x .travis/build-linux-wheels.sh

2
.travis/build-linux-wheels.sh

@ -21,7 +21,7 @@ fi
# Compile wheels
for PYBIN in /opt/python/*/bin; do
if [[ ${PYBIN} =~ (cp27|cp35|cp36|cp37|cp38|pypy) ]]; then
if [[ ${PYBIN} =~ (cp27|cp36|cp37|cp38|cp39|pypy) ]]; then
${PYBIN}/pip wheel /io/ -w wheelhouse/
fi
done

36
.travis/install.sh

@ -13,6 +13,7 @@ if [[ $TRAVIS_OS_NAME == "osx" ]]; then
PYTHON_PKG_36="https://www.python.org/ftp/python/3.6.8/python-3.6.8-macosx10.9.pkg"
PYTHON_PKG_37="https://www.python.org/ftp/python/3.7.3/python-3.7.3-macosx10.9.pkg"
PYTHON_PKG_38="https://www.python.org/ftp/python/3.8.0/python-3.8.0-macosx10.9.pkg"
PYTHON_PKG_39="https://www.python.org/ftp/python/3.9.0/python-3.9.0-macosx10.9.pkg"
GET_PIP="https://bootstrap.pypa.io/get-pip.py"
# update brew
@ -29,42 +30,31 @@ if [[ $TRAVIS_OS_NAME == "osx" ]]; then
mkdir -p ~/.cache/python-dl
if [[ "${TRAVIS_PYTHON_VERSION}" == "3.5" ]]; then
PYVERSION="${TRAVIS_PYTHON_VERSION}.5"
brew outdated pyenv || brew upgrade pyenv
pyenv install ${PYVERSION}
pyenv global ${PYVERSION}
else
builtin pushd ~/.cache/python-dl
ls -l
builtin pushd ~/.cache/python-dl
ls -l
py_pkg=PYTHON_PKG_${TRAVIS_PYTHON_VERSION//./}
py_pkg=${!py_pkg}
py_pkg=PYTHON_PKG_${TRAVIS_PYTHON_VERSION//./}
py_pkg=${!py_pkg}
installer_pkg=$(basename ${py_pkg})
installer_pkg=$(basename ${py_pkg})
# The package might have been cached from a previous run
if [[ ! -f ${installer_pkg} ]]; then
curl -LO ${py_pkg}
fi
sudo installer -pkg ${installer_pkg} -target /
builtin popd
# The package might have been cached from a previous run
if [[ ! -f ${installer_pkg} ]]; then
curl -LO ${py_pkg}
fi
sudo installer -pkg ${installer_pkg} -target /
builtin popd
case "${TRAVIS_PYTHON_VERSION}" in
2.7)
python=/Library/Frameworks/Python.framework/Versions/${TRAVIS_PYTHON_VERSION}/bin/python
virtualenv=virtualenv
;;
3.6|3.7|3.8)
3.6|3.7|3.8|3.9)
python=/Library/Frameworks/Python.framework/Versions/${TRAVIS_PYTHON_VERSION}/bin/python3
virtualenv=venv
;;
3.5)
python="$(pyenv root)/versions/${PYVERSION}/bin/python"
virtualenv=venv
;;
esac
if [[ "${TRAVIS_PYTHON_VERSION}" == "2.7" ]]; then

2
tox.ini

@ -1,7 +1,7 @@
[tox]
skip_missing_interpreters = true
envlist =
py{27,35,36,37,38},
py{27,36,37,38,39},
pypy3k,
bench,
style

Loading…
Cancel
Save