Skip to content

Commit cbc59ed

Browse files
authored
Merge pull request #181 from davidhewitt/fix-macos-ci
ci: fix macos issues
2 parents ba1d77e + b9a55dc commit cbc59ed

File tree

7 files changed

+46
-34
lines changed

7 files changed

+46
-34
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
fail-fast: false # If one platform fails, allow the rest to keep testing.
2828
matrix:
29-
python-version: [3.6, 3.7, 3.8, 3.9, 3.10-dev, pypy-3.6, pypy-3.7]
29+
python-version: [3.6, 3.7, 3.8, 3.9, "3.10", pypy-3.6, pypy-3.7]
3030
platform: [
3131
{ os: "macos-latest", python-architecture: "x64", rust-target: "x86_64-apple-darwin" },
3232
{ os: "ubuntu-latest", python-architecture: "x64", rust-target: "x86_64-unknown-linux-gnu" },
@@ -37,6 +37,9 @@ jobs:
3737
# No 64-bit pypy 3.6 on Windows
3838
- python-version: pypy-3.6
3939
platform: { os: "windows-latest", python-architecture: "x64" }
40+
# Macos 11 actions runners don't support pypy-3.6
41+
- python-version: pypy-3.6
42+
platform: { os: "macos-latest" }
4043
# No 32-bit pypy 3.7 on Windows
4144
- python-version: pypy-3.7
4245
platform: { os: "windows-latest", python-architecture: "x86" }
@@ -119,7 +122,7 @@ jobs:
119122
- name: Setup python
120123
uses: actions/setup-python@v2
121124
with:
122-
python-version: 3.6
125+
python-version: 3.9
123126

124127
- uses: actions-rs/toolchain@v1
125128
with:
@@ -139,21 +142,25 @@ jobs:
139142
run: |
140143
cd examples/rust_with_cffi/
141144
python --version
142-
pip install wheel
143-
python setup.py bdist_wheel --py-limited-api=cp36
145+
pip install -U pip wheel setuptools
146+
python setup.py bdist_wheel --py-limited-api=cp39
144147
ls -la dist/
148+
env:
149+
# https://github.com/actions/setup-python/issues/26
150+
MACOSX_DEPLOYMENT_TARGET: 10.9
145151

146152
# Now we switch to a differnet Python version and ensure we can install
147153
# the wheel we just built.
148154
- name: Setup python
149155
uses: actions/setup-python@v2
150156
with:
151-
python-version: 3.8
157+
python-version: "3.10"
152158

153159
- name: Install abi3 wheel and run tests
154160
shell: bash
155161
run: |
156162
cd examples/
163+
pip install -U pip wheel setuptools
157164
python --version
158165
pip install rust_with_cffi/dist/rust_with_cffi*.whl
159166
python -c "from rust_with_cffi import rust; assert rust.rust_func() == 14"

examples/html-py-ever/Cargo.lock

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/html-py-ever/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66

77
[dependencies]
88
kuchiki = "0.8.0"
9-
pyo3 = { version = "0.14.5", features = ["extension-module"] }
9+
pyo3 = { version = "0.15.1", features = ["extension-module"] }
1010
tendril = "0.4.2"
1111

1212
[lib]

examples/namespace_package/Cargo.lock

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/namespace_package/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,5 @@ edition = "2018"
66
[lib]
77
crate-type = ["cdylib"]
88

9-
[dependencies.pyo3]
10-
version = "0.14.5"
11-
features = ["extension-module"]
9+
[dependencies]
10+
pyo3 = { version = "0.15.1", features = ["extension-module"] }

examples/rust_with_cffi/Cargo.lock

Lines changed: 10 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/rust_with_cffi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Alex Gaynor <[email protected]>"]
55
edition = "2018"
66

77
[dependencies]
8-
pyo3 = { version = "0.14.5", features = ["extension-module"] }
8+
pyo3 = { version = "0.15.1", features = ["extension-module"] }
99

1010
[lib]
1111
name = "rust_with_cffi"

0 commit comments

Comments
 (0)