From aa38b8ca637604750de8ee166ed4885ae72252cb Mon Sep 17 00:00:00 2001 From: David Straub <straub@protonmail.com> Date: Thu, 2 Jan 2020 19:03:06 +0100 Subject: [PATCH] Build Linux wheels on Travis with cibuildwheel --- .travis.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 444cc1b4..e2f208e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,12 @@ language: python -sudo: false + +matrix: + include: + - sudo: required + services: + - docker + env: PIP=pip + python: - "2.7" - "3.4" @@ -15,7 +22,17 @@ addons: - g++-4.8 - unixodbc-dev +env: + global: + - CIBW_BEFORE_BUILD="yum -y install unixODBC-devel" + install: - python setup.py install -script: true +script: + - $PIP install cibuildwheel==1.1.0 + - cibuildwheel --output-dir wheelhouse + - python -m pip install twine + +after_success: + - python -m twine upload --skip-existing wheelhouse/*.whl