Skip to content

Commit

Permalink
Try cibuildhweel
Browse files Browse the repository at this point in the history
Change-Id: I7ca6e1341b5faf5026163c80e16f5daff3606524
  • Loading branch information
griels committed May 18, 2020
1 parent 495b366 commit f446157
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 26 deletions.
56 changes: 34 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,48 @@
notifications:
email: [email protected]
matrix:
language: python
env:
global:
- CIBW_BUILD='cp3[5-8]-*'
- CIBW_SKIP='*arm* *ppc* *s390* *aarch64* *i686* *win32* *win_amd64*'
- CIBW_BEFORE_BUILD="python3 -m pip install cmake"
# - CIBW_BEFORE_BUILD_WINDOWS="python3 -m pip uninstall --yes cmake"
jobs:
include:
# disabled for now as dep issues
# - sudo: required
# services:
# - docker
# env: DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 PLAT=manylinux1_x86_64
# - sudo: required
# services:
# - docker
# env: DOCKER_IMAGE=quay.io/pypa/manylinux2010_x86_64 PLAT=manylinux2010_x86_64
- sudo: required
services:
- docker
env: DOCKER_IMAGE=quay.io/pypa/manylinux2014_x86_64 PLAT=manylinux2014_x86_64
# perform a linux build
- services: docker
# perform a linux ARMv8 build
- services: docker
arch: arm64
# perform a linux PPC64LE build
- services: docker
arch: ppc64le
# perform a linux S390X build
- services: docker
arch: s390x
# and a mac build
- os: osx
language: shell
# and a windows build
- os: windows
language: shell
before_install:
- choco install python --version 3.8.0
- choco install cmake
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
# make sure it's on PATH as 'python3'
- ln -s /c/Python38/python.exe /c/Python38/python3.exe

install:
- docker pull $DOCKER_IMAGE
- python3 -m pip install cibuildwheel==1.4.1
script:
- ls -alrt
- chmod ugo+x travis/build-wheels.sh
- docker run --rm -e PLAT=$PLAT -v `pwd`:/io $DOCKER_IMAGE $PRE_CMD /io/travis/build-wheels.sh
- python3 -m cibuildwheel --output-dir wheelhouse
- echo `ls wheelhouse/`
- echo `ls /io/wheelhouse`
- echo `ls .`
- echo `ls /`
- echo `ls /io`
deploy:
provider: releases
api_key:
secure: ${PYCBC_TRAVIS_API}
secure: WybaHr1WVx9/+6a3h5zT5bUmkNmVihKi1/mhSxdFmfHKHIQVcdBiNr1lbPKDh3ZnnxF/3TYadj2PDIqhtE50XDoGdmEFnDFH1VIvjYqffpzQ/+bmX/tY8SoSidyD8CejDmPkn7Wq6RUnouBdz6zn9HjQGigclCfO3dhF3Rr1k6AiV3oOppRFmPWWhBuciFnO25JyqOyPGfYt3kyK0IEgNHqxb0isdCOjnRuoGfMMLOaGgA2i7ffauGU3O+s8NIJHiWYWeiGBAoomdw6i6v2Mes5/U6ApJzXnDtIzqF/WLN6bg/5eTgVtpWBlr5q5CNR1Ycc8Um8JgT6dc3ZLlZ8fanH6Jtz/cv7iMvj+uAiBz90PBZk9niE6d3l5Uxpg0cBGRBGFK4Vnay7vaCVOaO4dx8iI6z4ljKhbvp71Tk+vgnROsKR3dIuWkm5dN/QxpDaYZBxgqeOvXt03GoliYzzzJiyqr/VkW2iymQri2YXTuTI7wbmOt/wr+z0f0NpgyHE5w5AlqG/fQG1BMCtPGuxHyidqBEKSplUX9JC9cZX8LYeFRJC3zuO/W7IjAGjhsA1//U3vn8BUGSBosbDweJBTf0lHIIIw/0cfkYzGryZnNMQBbvcPnyBbAbKEpQppTNtyG09VnUjl58euxkakRBqeBhAIvsj772YQ7NpVIP+s0IY=
file_glob: true
file: wheelhouse/*
skip_cleanup: true
Expand Down
3 changes: 2 additions & 1 deletion cmake_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ class LazyCommandClass(dict):
"""
def __init__(self, cmdclass_real):
self.cmdclass_real=cmdclass_real

self.build_ext=self.cmdclass_real
super(LazyCommandClass, self).__init__()
def __contains__(self, key):
return (
key == 'build_ext'
Expand Down
3 changes: 2 additions & 1 deletion dev_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ flaky>=3.6.1
Twisted>=19.10.0
deepdiff[murmur]
coverage>=4.5.4,<5.0.0
typed_ast; python_version<"3.8"
typed_ast; python_version<"3.8"
cibuildwheel>=1.4.1
3 changes: 1 addition & 2 deletions src/lcb_v4_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
#include "../build/lcb_min_version.h"
#define STR_HELPER(x) #x
#define STR(x) STR_HELPER(x)
#pragma message "Got LCB_VERSION " STR(LCB_VERSION)
#if LCB_VERSION && LCB_VERSION < LCB_MIN_VERSION
#if defined(LCB_VERSION) && LCB_VERSION > 0x000000 && LCB_VERSION < LCB_MIN_VERSION
#pragma message "Couchbase Python SDK requires libcouchbase " LCB_MIN_VERSION_TEXT " or greater but found" STR(LCB_VERSION)
#error "Please upgrade libcouchbase accordingly"
#endif
Expand Down

0 comments on commit f446157

Please sign in to comment.