Skip to content

Commit 30d2373

Browse files
authored
Merge branch 'main' into mathern/python-3-9
2 parents 6e78a9a + a4a2d17 commit 30d2373

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

c2pa-native-version.txt

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

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.23.0"
7+
version = "0.23.1"
88
requires-python = ">=3.9"
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: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,14 +1109,9 @@ def flush_callback(ctx):
11091109
self._write_cb = WriteCallback(write_callback)
11101110
self._flush_cb = FlushCallback(flush_callback)
11111111

1112-
# Create a placeholder context as we don't actually use the context,
1113-
# but we need having a valid context pointer. Therefore, we create
1114-
# a small buffer and cast it to a StreamContext pointer
1115-
self._context = ctypes.create_string_buffer(1)
1116-
11171112
# Create the stream
11181113
self._stream = _lib.c2pa_create_stream(
1119-
ctypes.cast(self._context, ctypes.POINTER(StreamContext)),
1114+
None,
11201115
self._read_cb,
11211116
self._seek_cb,
11221117
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.65.0", sdk_version())
43+
self.assertIn("0.65.1", sdk_version())
4444

4545

4646
class TestReader(unittest.TestCase):

0 commit comments

Comments
 (0)