Skip to content

Commit f75c74c

Browse files
committed
ci: Merge in main
2 parents 70843dd + 12f3ee9 commit f75c74c

11 files changed

Lines changed: 236 additions & 855 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ build-from-source:
139139

140140
# Build API documentation with Sphinx
141141
docs:
142-
python3 scripts/generate_api_docs.py
142+
$(PYTHON) scripts/generate_api_docs.py
143143

144144
# Memory profiling with memray (runs in Docker, reports go to tests/perf/reports/)
145145
# More details for usage are in tests/perf/README.md

c2pa-native-version.txt

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

docs/release-notes.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Release notes
22

3+
## Version 0.33.0
4+
5+
### Breaking changes
6+
7+
Removed the deprecated file-based free functions `read_file`,
8+
`read_ingredient_file`, and `sign_file`, following the removal of the
9+
underlying `c2pa_read_file`, `c2pa_read_ingredient_file`, and `c2pa_sign_file`
10+
functions from the c2pa-rs C FFI. The deprecated `Builder.add_ingredient_from_file_path`
11+
method was removed as well.
12+
13+
Migration:
14+
15+
- Instead of `read_file(path, data_dir)`, use `Reader(path).json()`.
16+
- Instead of `read_ingredient_file(path, data_dir)`, use
17+
`Builder.add_ingredient(json, format, stream)` to add the ingredient directly.
18+
- Instead of the `sign_file(...)` free function, use the `Builder.sign_file(source_path, dest_path, signer)` method (or `Builder.sign(...)` for stream-based signing).
19+
- Instead of `Builder.add_ingredient_from_file_path(json, format, filepath)`, open the
20+
file and call `Builder.add_ingredient_from_stream(json, format, stream)`.
21+
22+
The `Builder.sign_file` method and `load_settings` are unaffected and remain available.
23+
324
## Version 0.6.0
425

526
<!-- Get features and updates -->

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.33.0"
7+
version = "0.34.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/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
ContextBuilder,
3333
ContextProvider,
3434
sdk_version,
35-
read_ingredient_file,
3635
load_settings
3736
) # NOQA
3837

@@ -52,6 +51,5 @@
5251
'ContextBuilder',
5352
'ContextProvider',
5453
'sdk_version',
55-
'read_ingredient_file',
5654
'load_settings'
5755
]

0 commit comments

Comments
 (0)