Skip to content

Commit ab36cef

Browse files
Use pre-compiled exiv2 for Windows binary wheels
1 parent 9004e80 commit ab36cef

3 files changed

Lines changed: 40 additions & 45 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Windows wheels exiv2 0.28 (precompiled)
2+
on: workflow_dispatch
3+
4+
jobs:
5+
compile:
6+
runs-on: windows-2022
7+
steps:
8+
- name: Check out repository code
9+
uses: actions/checkout@v4
10+
11+
- name: Fetch Exiv2 (compiled)
12+
run: c:\msys64\usr\bin\wget.exe -nv
13+
https://exiv2.org/builds/exiv2-0.28.6-2022msvc.zip
14+
-O exiv2.zip
15+
16+
- name: Extract Exiv2
17+
run: unzip exiv2.zip
18+
19+
- name: Install Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: 3.11
23+
24+
- name: Build wheels
25+
uses: pypa/cibuildwheel@v2.22.0
26+
env:
27+
CIBW_ARCHS: auto64
28+
CIBW_SKIP: pp3*
29+
CIBW_ENVIRONMENT: |
30+
EXIV2_ROOT=exiv2-0.28.6-2022msvc-AMD64
31+
CIBW_TEST_COMMAND: >
32+
python -m exiv2 -v &&
33+
python -m unittest discover {project}/tests -v
34+
35+
- name: Store results
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: windows-28-wheels
39+
path: wheelhouse/*.whl

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ along with this program. If not, see
1818

1919
Changes in v0.17.4:
2020
1/ Binary wheels incorporate libexiv2 v0.28.6.
21+
2/ Windows binary wheels do not have localisation.
2122

2223
Changes in v0.17.3:
2324
1/ Binary wheels incorporate libexiv2 v0.28.5.

conanfile.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)