Skip to content

Commit 383fdc8

Browse files
committed
Changed the library name from c2pa_python to c2pa
uniffi was generating the wrong names on linux builds this means instead of: import c2pa_python as c2pa you just enter import c2pa
1 parent 5723a25 commit 383fdc8

File tree

6 files changed

+9
-42
lines changed

6 files changed

+9
-42
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "c2pa-python"
3-
version = "0.3.2"
3+
version = "0.4.0"
44
edition = "2021"
55
authors = ["Gavin Peacock <[email protected]"]
66

77
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
88
[lib]
9-
name = "c2pa_python"
9+
name = "c2pa"
1010
crate-type = ["cdylib"]
1111

1212
[dependencies]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ see the development section for info on how to build from source.
2525
Import the C2PA module as follows:
2626
2727
```py
28-
import c2pa_python as c2pa
28+
import c2pa
2929
```
3030

3131
### Read and validate C2PA data in a file

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ build-backend = "maturin"
44

55
[project]
66
name = "c2pa-python"
7+
dependencies = ["cffi"]
78
requires-python = ">=3.7"
89
description = "Python bindings for the C2PA Content Authenticity Initiative (CAI) library"
910
readme = { file = "README.md", content-type = "text/markdown" }
@@ -13,7 +14,7 @@ classifiers = [
1314
"Development Status :: 3 - Alpha",
1415
"Programming Language :: Rust",
1516
"Programming Language :: Python :: Implementation :: CPython",
16-
"Programming Language :: Python :: Implementation :: PyPy",
17+
"Programming Language :: Python :: Implementation :: PyPy"
1718
]
1819
authors = [
1920
{name = "Gavin Peacock", email = "[email protected]"}

tests/example.py

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

tests/test_c2pa.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# specific language governing permissions and limitations under
1212
# each license.
1313

14-
import c2pa_python as c2pa
14+
import c2pa
1515
import pytest
1616
import json
1717
import tempfile
@@ -24,10 +24,10 @@ def getitem(d, key):
2424
return reduce(operator.getitem, key, d)
2525

2626
def test_version():
27-
assert c2pa.version() == "0.3.2"
27+
assert c2pa.version() == "0.4.0"
2828

2929
def test_sdk_version():
30-
assert c2pa.sdk_version() == "0.28.3"
30+
assert c2pa.sdk_version() == "0.28.4"
3131

3232

3333
def test_verify_from_file():

tests/training.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import json
1616
import os
1717
import sys
18-
import c2pa_python as c2pa;
18+
import c2pa
1919

2020
# set up paths to the files we we are using
2121
PROJECT_PATH = os.getcwd()

0 commit comments

Comments
 (0)