Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ build-from-source:

# Build API documentation with Sphinx
docs:
python3 scripts/generate_api_docs.py
$(PYTHON) scripts/generate_api_docs.py

# Memory profiling with memray (runs in Docker, reports go to tests/perf/reports/)
# More details for usage are in tests/perf/README.md
Expand Down
2 changes: 1 addition & 1 deletion c2pa-native-version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c2pa-v0.86.1
c2pa-v0.88.0
21 changes: 21 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Release notes

## Version 0.33.0

### Breaking changes

Removed the deprecated file-based free functions `read_file`,
`read_ingredient_file`, and `sign_file`, following the removal of the
underlying `c2pa_read_file`, `c2pa_read_ingredient_file`, and `c2pa_sign_file`
functions from the c2pa-rs C FFI. The deprecated `Builder.add_ingredient_from_file_path`
method was removed as well.

Migration:

- Instead of `read_file(path, data_dir)`, use `Reader(path).json()`.
- Instead of `read_ingredient_file(path, data_dir)`, use
`Builder.add_ingredient(json, format, stream)` to add the ingredient directly.
- 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).
- Instead of `Builder.add_ingredient_from_file_path(json, format, filepath)`, open the
file and call `Builder.add_ingredient_from_stream(json, format, stream)`.

The `Builder.sign_file` method and `load_settings` are unaffected and remain available.

## Version 0.6.0

<!-- Get features and updates -->
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "c2pa-python"
version = "0.33.0"
version = "0.34.0"
requires-python = ">=3.10"
description = "Python bindings for the C2PA Content Authenticity Initiative (CAI) library"
readme = { file = "README.md", content-type = "text/markdown" }
Expand Down
2 changes: 0 additions & 2 deletions src/c2pa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
ContextBuilder,
ContextProvider,
sdk_version,
read_ingredient_file,
load_settings
) # NOQA

Expand All @@ -52,6 +51,5 @@
'ContextBuilder',
'ContextProvider',
'sdk_version',
'read_ingredient_file',
'load_settings'
]
Loading
Loading