Skip to content

Commit 142b908

Browse files
Merge pull request #38 from jim-easterbrook/devel
Devel
2 parents 829065a + 84e1210 commit 142b908

File tree

4 files changed

+34
-24
lines changed

4 files changed

+34
-24
lines changed

.github/workflows/build-macos-28.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: workflow_dispatch
33

44
jobs:
55
build:
6-
runs-on: macos-latest
6+
runs-on: macos-13
77
steps:
88
- name: Check out repository code
99
uses: actions/checkout@v4

.github/workflows/build-macos-arm-28.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on: workflow_dispatch
33

44
jobs:
55
build:
6-
runs-on: flyci-macos-large-latest-m1
6+
runs-on: macos-latest
77
steps:
88
- name: Check out repository code
99
uses: actions/checkout@v4
@@ -20,9 +20,6 @@ jobs:
2020
tar -xzf exiv2.tar.gz
2121
mv exiv2-0.28.3 libexiv2
2222
23-
- name: Install pipx
24-
run: pip install pipx
25-
2623
- name: Build wheels
2724
uses: pypa/[email protected]
2825
env:

.github/workflows/build-windows-28.yml

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,31 +36,45 @@ jobs:
3636
echo -e "24a25\n> self.requires('libgettext/0.21')" |
3737
c:/msys64/usr/bin/patch.exe libexiv2/conanfile.py
3838
39+
- name: Install Python
40+
uses: actions/setup-python@v5
41+
with:
42+
python-version: 3.11
43+
44+
- name: Install cmake
45+
uses: jwlawson/actions-setup-cmake@v2
46+
47+
- name: Install ninja
48+
uses: seanmiddleditch/gha-setup-ninja@master
49+
50+
- name: Compile Exiv2
51+
env:
52+
PATH: "${{ github.workspace }}\\gettext\\bin"
53+
run: >
54+
pip install conan==1.59.0 &&
55+
cd libexiv2 &&
56+
cmake --preset msvc
57+
-D CMAKE_BUILD_TYPE=Release
58+
-D EXIV2_BUILD_SAMPLES=OFF
59+
-D EXIV2_BUILD_EXIV2_COMMAND=OFF
60+
-D EXIV2_BUILD_UNIT_TESTS=OFF
61+
-D EXIV2_ENABLE_NLS=ON
62+
-D EXIV2_ENABLE_FILESYSTEM_ACCESS=ON
63+
-G "Visual Studio 16 2019" &&
64+
cmake --build build-msvc --config Release &&
65+
cmake --install build-msvc --config Release &&
66+
copy build-msvc\bin\libcurl.dll build-msvc\install\bin
67+
3968
- name: Build wheels
4069
uses: pypa/[email protected]
4170
env:
4271
CIBW_ARCHS: auto64
4372
CIBW_SKIP: pp3*
4473
CIBW_ENVIRONMENT: |
4574
EXIV2_ROOT=libexiv2/build-msvc/install
46-
PATH="$PATH;$(pwd)\\gettext\\bin"
4775
CIBW_TEST_COMMAND: >
4876
python -m exiv2 -v &&
4977
python -m unittest discover {project}/tests -v
50-
CIBW_BEFORE_ALL: >
51-
pip install conan==1.59.0 &&
52-
cd libexiv2 &&
53-
cmake --preset msvc
54-
-D CMAKE_BUILD_TYPE=Release
55-
-D EXIV2_BUILD_SAMPLES=OFF
56-
-D EXIV2_BUILD_EXIV2_COMMAND=OFF
57-
-D EXIV2_BUILD_UNIT_TESTS=OFF
58-
-D EXIV2_ENABLE_NLS=ON
59-
-D EXIV2_ENABLE_FILESYSTEM_ACCESS=ON
60-
-G "Visual Studio 16 2019" &&
61-
cmake --build build-msvc --config Release &&
62-
cmake --install build-msvc --config Release &&
63-
copy build-msvc\bin\libcurl.dll build-msvc\install\bin
6478
6579
- name: Store results
6680
uses: actions/upload-artifact@v4

tests/test_types.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,9 @@ def test_localisation(self):
138138
self.assertEqual(cm.output, [
139139
'WARNING:exiv2:Ungültiger Zeichensatz: "invalid"'])
140140
with self.assertRaises(exiv2.Exiv2Error) as cm:
141-
image = exiv2.ImageFactory.open('non-existing.jpg')
142-
self.assertEqual(cm.exception.message.split(':')[:2],
143-
['non-existing.jpg',
144-
' Die Datenquelle konnte nicht geöffnet werden'])
141+
image = exiv2.ImageFactory.open(bytes())
142+
self.assertEqual(cm.exception.message,
143+
'Die Eingabedaten konnten nicht gelesen werden.')
145144
# clear locale
146145
name = 'en_US.UTF-8'
147146
os.environ['LC_ALL'] = name

0 commit comments

Comments
 (0)