Skip to content

Commit ac43887

Browse files
authored
fix: Make sure benchmark runs, fix headers (#150)
* fix: missing headers * fix: Benchmark * fix: Typo * fix: Update deps
1 parent c2b134d commit ac43887

12 files changed

+73
-35
lines changed

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.15.0"
7+
version = "0.16.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" }

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ autopep8==2.0.4 # For automatic code formatting
1616
flake8==7.3.0
1717

1818
# Test dependencies (for callback signers)
19-
cryptography==45.0.4
19+
cryptography==45.0.6

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# only used in the training example
2-
cryptography>=45.0.3
2+
cryptography>=45.0.6

scripts/download_artifacts.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
#!/usr/bin/env python3
2+
3+
# Copyright 2025 Adobe. All rights reserved.
4+
# This file is licensed to you under the Apache License,
5+
# Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
6+
# or the MIT license (http://opensource.org/licenses/MIT),
7+
# at your option.
8+
9+
# Unless required by applicable law or agreed to in writing,
10+
# this software is distributed on an "AS IS" BASIS, WITHOUT
11+
# WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
12+
# implied. See the LICENSE-MIT and LICENSE-APACHE files for the
13+
# specific language governing permissions and limitations under
14+
# each license.
15+
216
import os
317
import sys
418
import requests

setup.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Copyright 2025 Adobe. All rights reserved.
2+
# This file is licensed to you under the Apache License,
3+
# Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4+
# or the MIT license (http://opensource.org/licenses/MIT),
5+
# at your option.
6+
7+
# Unless required by applicable law or agreed to in writing,
8+
# this software is distributed on an "AS IS" BASIS, WITHOUT
9+
# WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
10+
# implied. See the LICENSE-MIT and LICENSE-APACHE files for the
11+
# specific language governing permissions and limitations under
12+
# each license.
13+
114
from setuptools import setup, find_namespace_packages
215
import sys
316
import platform

src/c2pa/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Copyright 2025 Adobe. All rights reserved.
2+
# This file is licensed to you under the Apache License,
3+
# Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4+
# or the MIT license (http://opensource.org/licenses/MIT),
5+
# at your option.
6+
7+
# Unless required by applicable law or agreed to in writing,
8+
# this software is distributed on an "AS IS" BASIS, WITHOUT
9+
# WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
10+
# implied. See the LICENSE-MIT and LICENSE-APACHE files for the
11+
# specific language governing permissions and limitations under
12+
# each license.
13+
114
try:
215
from importlib.metadata import version
316
__version__ = version("c2pa-python")

src/c2pa/build.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Copyright 2025 Adobe. All rights reserved.
2+
# This file is licensed to you under the Apache License,
3+
# Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4+
# or the MIT license (http://opensource.org/licenses/MIT),
5+
# at your option.
6+
7+
# Unless required by applicable law or agreed to in writing,
8+
# this software is distributed on an "AS IS" BASIS, WITHOUT
9+
# WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
10+
# implied. See the LICENSE-MIT and LICENSE-APACHE files for the
11+
# specific language governing permissions and limitations under
12+
# each license.
13+
114
import os
215
import sys
316
import requests

src/c2pa/c2pa.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
# Copyright 2025 Adobe. All rights reserved.
2+
# This file is licensed to you under the Apache License,
3+
# Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
4+
# or the MIT license (http://opensource.org/licenses/MIT),
5+
# at your option.
6+
7+
# Unless required by applicable law or agreed to in writing,
8+
# this software is distributed on an "AS IS" BASIS, WITHOUT
9+
# WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
10+
# implied. See the LICENSE-MIT and LICENSE-APACHE files for the
11+
# specific language governing permissions and limitations under
12+
# each license.
13+
114
import ctypes
215
import enum
316
import json

tests/benchmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# WARRANTIES OR REPRESENTATIONS OF ANY KIND, either express or
1010
# implied. See the LICENSE-MIT and LICENSE-APACHE files for the
1111
# specific language governing permissions and limitations under
12-
# each license.import unittest
12+
# each license.
1313

1414
import os
1515
import io
@@ -110,7 +110,7 @@ def test_files_build():
110110
if os.path.exists(output_path):
111111
os.remove(output_path)
112112
with open(test_path, "rb") as source_file:
113-
with open(output_path, "wb") as dest_file:
113+
with open(output_path, "w+b") as dest_file:
114114
builder.sign(signer, "image/jpeg", source_file, dest_file)
115115

116116

tests/conftest.py

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)