Skip to content

Commit 3e5205c

Browse files
authored
Merge pull request #89 from contentauth/gpeacock/c2pa-rs-0-46-0
chore: update to c2pa-rs 0.46.0 updated CI to upload/download to v4 with required name changes
2 parents 2c69819 + 153075c commit 3e5205c

File tree

4 files changed

+15
-14
lines changed

4 files changed

+15
-14
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,9 @@ jobs:
238238
apt update -y && apt-get install -y libssl-dev openssl pkg-config
239239
fi
240240
- name: Upload wheels
241-
uses: actions/upload-artifact@v3
241+
uses: actions/upload-artifact@v4
242242
with:
243-
name: wheels
243+
name: wheels-${{ matrix.target }}
244244
path: dist
245245

246246
windows:
@@ -271,9 +271,9 @@ jobs:
271271
args: --release --out dist --find-interpreter
272272
sccache: 'true'
273273
- name: Upload wheels
274-
uses: actions/upload-artifact@v3
274+
uses: actions/upload-artifact@v4
275275
with:
276-
name: wheels
276+
name: wheels-${{ matrix.target }}
277277
path: dist
278278

279279
macos_x86:
@@ -300,9 +300,9 @@ jobs:
300300
args: --release --out dist --find-interpreter
301301
sccache: 'true'
302302
- name: Upload wheels
303-
uses: actions/upload-artifact@v3
303+
uses: actions/upload-artifact@v4
304304
with:
305-
name: wheels
305+
name: wheels-mac-x86_64
306306
path: dist
307307

308308
macos_aarch64:
@@ -329,9 +329,9 @@ jobs:
329329
args: --release --out dist --find-interpreter
330330
sccache: 'true'
331331
- name: Upload wheels
332-
uses: actions/upload-artifact@v3
332+
uses: actions/upload-artifact@v4
333333
with:
334-
name: wheels
334+
name: wheels-mac-aarch64
335335
path: dist
336336

337337
sdist:
@@ -352,7 +352,7 @@ jobs:
352352
command: sdist
353353
args: --out dist
354354
- name: Upload sdist
355-
uses: actions/upload-artifact@v3
355+
uses: actions/upload-artifact@v4
356356
with:
357357
name: wheels
358358
path: dist
@@ -366,8 +366,9 @@ jobs:
366366
environment: Publish
367367
needs: [linux, windows, macos_x86, macos_aarch64, sdist]
368368
steps:
369-
- uses: actions/download-artifact@v3
369+
- uses: actions/download-artifact@v4
370370
with:
371+
pattern: wheels-*
371372
name: wheels
372373
- name: Publish to PyPI
373374
uses: PyO3/maturin-action@v1

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "c2pa-python"
3-
version = "0.6.3"
3+
version = "0.7.1"
44
edition = "2021"
55
authors = ["Gavin Peacock <[email protected]"]
66

@@ -12,7 +12,7 @@ crate-type = ["lib", "cdylib"]
1212
normal = ["openssl-src"]
1313

1414
[dependencies]
15-
c2pa = { version = "0.45.0", features = ["file_io", "openssl", "pdf", "fetch_remote_manifests"]}
15+
c2pa = { version = "0.46.0", features = ["file_io", "openssl", "pdf", "fetch_remote_manifests"]}
1616
thiserror = "1.0.49"
1717
uniffi = "0.28.2"
1818
openssl-src = "=300.3.1" # Required for openssl-sys

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def getitem(d, key):
6363

6464
class TestC2paSdk(unittest.TestCase):
6565
def test_version(self):
66-
assert version() == "0.6.3"
66+
assert version() == "0.7.1"
6767

6868
def test_sdk_version(self):
6969
assert "c2pa-rs/" in sdk_version()

tests/test_unit_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
class TestC2paSdk(unittest.TestCase):
2727
def test_version(self):
28-
self.assertIn("0.6.3", sdk_version())
28+
self.assertIn("0.7.1", sdk_version())
2929

3030

3131
class TestReader(unittest.TestCase):

0 commit comments

Comments
 (0)