Skip to content

Commit 867d0d4

Browse files
committed
Add macOS support on AppVeyor
1 parent 4456d51 commit 867d0d4

File tree

4 files changed

+41
-25
lines changed

4 files changed

+41
-25
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Usage
4040
|-----------------|-------|-------|---------|
4141
| Azure Pipelines ||||
4242
| Travis CI ||||
43-
| AppVeyor || ||
43+
| AppVeyor || ||
4444
| CircleCI ||| |
4545

4646
`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.

appveyor.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
image:
2-
- Ubuntu
3-
- Visual Studio 2015
4-
5-
build_script:
6-
- cmd: "C:\\Python37\\python.exe -m pip install -r requirements-dev.txt"
7-
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install -r requirements-dev.txt"
8-
# the '-u' flag is required so the output is in the correct order.
9-
# See https://github.com/joerick/cibuildwheel/pull/24 for more info.
10-
- cmd: "C:\\Python37\\python.exe -u ./bin/run_tests.py"
11-
- sh: "${HOME}/.localpython3.7.4/bin/python3 ./bin/run_tests.py"
1+
environment:
2+
matrix:
3+
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
4+
APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
5+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
6+
APPVEYOR_JOB_NAME: "python37-x64-vs2015"
7+
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
8+
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"
9+
10+
stack: python 3.7
11+
12+
build: off
13+
14+
init:
15+
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
16+
17+
install: python -m pip install -r requirements-dev.txt
18+
19+
# the '-u' flag is required so the output is in the correct order.
20+
# See https://github.com/joerick/cibuildwheel/pull/24 for more info.
21+
test_script: python -u ./bin/run_tests.py

docs/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ Commit this file, enable building of your repo on CircleCI, and push.
4949

5050
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.
5151

52-
# AppVeyor [linux/windows] {: #appveyor}
52+
# AppVeyor [linux/mac/windows] {: #appveyor}
5353

54-
To build Linux and Windows wheels on AppVeyor, create an `appveyor.yml` file in your repo.
54+
To build Linux, Mac, and Windows wheels on AppVeyor, create an `appveyor.yml` file in your repo.
5555

5656
> appveyor.yml
5757

examples/appveyor-minimal.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
image:
2-
- Ubuntu
3-
- Visual Studio 2015
4-
5-
build_script:
6-
# windows
7-
- cmd: pip3 install cibuildwheel==1.1.0
8-
- cmd: cibuildwheel --output-dir wheelhouse
9-
# linux
10-
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m pip install cibuildwheel==1.1.0"
11-
- sh: "${HOME}/.localpython3.7.4/bin/python3 -m cibuildwheel --output-dir wheelhouse"
1+
environment:
2+
matrix:
3+
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
4+
APPVEYOR_JOB_NAME: "python37-x64-ubuntu"
5+
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
6+
APPVEYOR_JOB_NAME: "python37-x64-vs2015"
7+
- APPVEYOR_BUILD_WORKER_IMAGE: macos-mojave
8+
APPVEYOR_JOB_NAME: "python37-x64-macos-mojave"
9+
10+
stack: python 3.7
11+
12+
init:
13+
- cmd: set PATH=C:\Python37;C:\Python37\Scripts;%PATH%
14+
15+
install: python -m pip install cibuildwheel==1.1.0
16+
17+
build_script: python -m cibuildwheel --output-dir wheelhouse
1218

1319
artifacts:
1420
- path: "wheelhouse\\*.whl"

0 commit comments

Comments
 (0)