Add macOS support on AppVeyor
This commit is contained in:
@@ -34,13 +34,13 @@ What does it do?
|
|||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|
||||||
`cibuildwheel` currently works on **Travis CI** and **Azure Pipelines** to build wheels for all three supported platforms (Linux, macOS, Windows). On **CircleCI** Linux and macOS wheels can be built, and on **AppVeyor** Linux and Windows are supported.
|
`cibuildwheel` currently works on **Travis CI**, **Azure Pipelines** and **AppVeyor** to build wheels for all three supported platforms (Linux, macOS, Windows). On **CircleCI** Linux and macOS wheels can be built.
|
||||||
|
|
||||||
| | Linux | macOS | Windows |
|
| | Linux | macOS | Windows |
|
||||||
|-----------------|-------|-------|---------|
|
|-----------------|-------|-------|---------|
|
||||||
| Azure Pipelines | ✅ | ✅ | ✅ |
|
| Azure Pipelines | ✅ | ✅ | ✅ |
|
||||||
| Travis CI | ✅ | ✅ | ✅ |
|
| Travis CI | ✅ | ✅ | ✅ |
|
||||||
| AppVeyor | ✅ | | ✅ |
|
| AppVeyor | ✅ | ✅ | ✅ |
|
||||||
| CircleCI | ✅ | ✅ | |
|
| CircleCI | ✅ | ✅ | |
|
||||||
|
|
||||||
`cibuildwheel` is not intended to run on your development machine. Because it uses system Python from Python.org it will try to install packages globally - not what you expect from a build tool! Instead, isolated CI services like Travis CI, CircleCI, Azure Pipelines and AppVeyor are ideal.
|
`cibuildwheel` is not intended to run on your development machine. Because it uses system Python from Python.org it will try to install packages globally - not what you expect from a build tool! Instead, isolated CI services like Travis CI, CircleCI, Azure Pipelines and AppVeyor are ideal.
|
||||||
|
|||||||
+20
-10
@@ -1,11 +1,21 @@
|
|||||||
image:
|
environment:
|
||||||
- Ubuntu
|
matrix:
|
||||||
- Visual Studio 2015
|
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
|
||||||
|
APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
APPVEYOR_JOB_NAME: "python37-x64-vs2015"
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
|
||||||
|
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"
|
||||||
|
|
||||||
build_script:
|
stack: python 3.7
|
||||||
- cmd: "C:\\Python37\\python.exe -m pip install -r requirements-dev.txt"
|
|
||||||
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install -r requirements-dev.txt"
|
build: off
|
||||||
# the '-u' flag is required so the output is in the correct order.
|
|
||||||
# See https://github.com/joerick/cibuildwheel/pull/24 for more info.
|
init:
|
||||||
- cmd: "C:\\Python37\\python.exe -u ./bin/run_tests.py"
|
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
|
||||||
- sh: "${HOME}/.localpython3.7.4/bin/python3 ./bin/run_tests.py"
|
|
||||||
|
install: python -m pip install -r requirements-dev.txt
|
||||||
|
|
||||||
|
# the '-u' flag is required so the output is in the correct order.
|
||||||
|
# See https://github.com/joerick/cibuildwheel/pull/24 for more info.
|
||||||
|
test_script: python -u ./bin/run_tests.py
|
||||||
|
|||||||
+2
-2
@@ -49,9 +49,9 @@ Commit this file, enable building of your repo on CircleCI, and push.
|
|||||||
|
|
||||||
CircleCI will store the built wheels for you - you can access them from the project console. Check out the CircleCI [docs](https://circleci.com/docs/2.0/configuration-reference/#section=configuration) for more info on this config file.
|
CircleCI will store the built wheels for you - you can access them from the project console. Check out the CircleCI [docs](https://circleci.com/docs/2.0/configuration-reference/#section=configuration) for more info on this config file.
|
||||||
|
|
||||||
# AppVeyor [linux/windows] {: #appveyor}
|
# AppVeyor [linux/mac/windows] {: #appveyor}
|
||||||
|
|
||||||
To build Linux and Windows wheels on AppVeyor, create an `appveyor.yml` file in your repo.
|
To build Linux, Mac, and Windows wheels on AppVeyor, create an `appveyor.yml` file in your repo.
|
||||||
|
|
||||||
> appveyor.yml
|
> appveyor.yml
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,20 @@
|
|||||||
image:
|
environment:
|
||||||
- Ubuntu
|
matrix:
|
||||||
- Visual Studio 2015
|
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
|
||||||
|
APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
|
||||||
|
APPVEYOR_JOB_NAME: "python37-x64-vs2015"
|
||||||
|
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
|
||||||
|
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"
|
||||||
|
|
||||||
build_script:
|
stack: python 3.7
|
||||||
# windows
|
|
||||||
- cmd: pip3 install cibuildwheel==1.1.0
|
init:
|
||||||
- cmd: cibuildwheel --output-dir wheelhouse
|
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
|
||||||
# linux
|
|
||||||
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install cibuildwheel==1.1.0"
|
install: python -m pip install cibuildwheel==1.1.0
|
||||||
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m cibuildwheel --output-dir wheelhouse"
|
|
||||||
|
build_script: python -m cibuildwheel --output-dir wheelhouse
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
- path: "wheelhouse\\*.whl"
|
- path: "wheelhouse\\*.whl"
|
||||||
|
|||||||
Reference in New Issue
Block a user