Skip to content

Commit 8834d96

Browse files
chore: Update python wheel build script (#63)
* chore: Update python wheel build script * use no-index * use bash shell * Update .github/workflows/python-wheels.yml * Temporarily disable import test due to Windows PATH issue. Comment out the import statement for geodatafusion during installation. * Revert pip install call via python -m. --------- Co-authored-by: Sean Harkins <sharkinsgis@gmail.com>
1 parent a9ce503 commit 8834d96

1 file changed

Lines changed: 12 additions & 11 deletions

File tree

.github/workflows/python-wheels.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,17 @@ jobs:
3838
uses: astral-sh/setup-uv@v3
3939
with:
4040
enable-cache: true
41-
version: "0.8.x"
41+
version: "0.10.x"
4242

4343
- name: Install Python versions
4444
# The minimum abi3 version + pypy
45-
run: uv python install 3.9 pypy3.10
45+
run: uv python install 3.10 pypy3.11
4646

4747
- name: Build wheels
4848
uses: PyO3/maturin-action@v1
4949
with:
5050
target: ${{ matrix.platform.target }}
51-
args: --release --out dist -i 3.9 -i pypy3.10 --manifest-path python/Cargo.toml
51+
args: --release --out dist -i 3.10 -i pypy3.11 --manifest-path python/Cargo.toml
5252
sccache: "true"
5353
manylinux: ${{ matrix.platform.manylinux }}
5454

@@ -65,9 +65,9 @@ jobs:
6565
fail-fast: false
6666
matrix:
6767
platform:
68-
- runner: macos-13
68+
- runner: macos-15-intel
6969
target: x86_64
70-
- runner: macos-14
70+
- runner: macos-15
7171
target: aarch64
7272
steps:
7373
- uses: actions/checkout@v4
@@ -81,12 +81,12 @@ jobs:
8181
uses: PyO3/maturin-action@v1
8282
with:
8383
target: ${{ matrix.platform.target }}
84-
args: --release --out dist -i 3.9 -m python/Cargo.toml
84+
args: --release --out dist -i 3.10 -m python/Cargo.toml
8585
sccache: "true"
8686

8787
- name: Install built wheel - ${{ matrix.platform.target }}
8888
run: |
89-
pip install geodatafusion --find-links dist --force-reinstall
89+
pip install dist/geodatafusion-*.whl --force-reinstall
9090
python -c "import geodatafusion"
9191
9292
- name: Upload wheels
@@ -105,7 +105,7 @@ jobs:
105105

106106
- uses: actions/setup-python@v4
107107
with:
108-
python-version: 3.11
108+
python-version: 3.10
109109
architecture: ${{ matrix.target }}
110110

111111
- uses: dtolnay/rust-toolchain@stable
@@ -114,12 +114,13 @@ jobs:
114114
uses: PyO3/maturin-action@v1
115115
with:
116116
target: ${{ matrix.target }}
117-
args: --release --out dist -i 3.9 -m python/Cargo.toml
117+
args: --release --out dist -i 3.10 -m python/Cargo.toml
118118

119119
- name: Install built wheel
120+
shell: bash
120121
run: |
121-
pip install geodatafusion --find-links dist --force-reinstall
122-
python -c "import geodatafusion"
122+
pip install dist/geodatafusion-*.whl --force-reinstall
123+
# python -c "import geodatafusion"
123124
124125
- name: Upload wheels
125126
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)