Skip to content

Commit c5e8512

Browse files
committed
ci: Merge remote-tracking branch 'refs/remotes/origin/add-sphinx-docs' into add-sphinx-docs
2 parents 2fac380 + 682113c commit c5e8512

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
name: Build and publish docs
22

33
on:
4-
pull_request:
5-
types:
6-
- opened
7-
- reopened
8-
- synchronize
9-
- labeled
10-
11-
push:
12-
tags: '*'
4+
release:
5+
types: [published]
136

147
workflow_dispatch:
158

c2pa-native-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c2pa-v0.64.0
1+
c2pa-v0.65.0

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "c2pa-python"
7-
version = "0.22.0"
7+
version = "0.23.0"
88
requires-python = ">=3.10"
99
description = "Python bindings for the C2PA Content Authenticity Initiative (CAI) library"
1010
readme = { file = "README.md", content-type = "text/markdown" }

src/c2pa/c2pa.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,9 +1108,14 @@ def flush_callback(ctx):
11081108
self._write_cb = WriteCallback(write_callback)
11091109
self._flush_cb = FlushCallback(flush_callback)
11101110

1111+
# Create a placeholder context as we don't actually use the context,
1112+
# but we need having a valid context pointer. Therefore, we create
1113+
# a small buffer and cast it to a StreamContext pointer
1114+
self._context = ctypes.create_string_buffer(1)
1115+
11111116
# Create the stream
11121117
self._stream = _lib.c2pa_create_stream(
1113-
None, # context
1118+
ctypes.cast(self._context, ctypes.POINTER(StreamContext)),
11141119
self._read_cb,
11151120
self._seek_cb,
11161121
self._write_cb,

tests/test_unit_tests.py

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

4141
class TestC2paSdk(unittest.TestCase):
4242
def test_sdk_version(self):
43-
self.assertIn("0.64.0", sdk_version())
43+
self.assertIn("0.65.0", sdk_version())
4444

4545

4646
class TestReader(unittest.TestCase):

0 commit comments

Comments
 (0)