Skip to content

Commit 2d971e3

Browse files
authored
feat: Reexport some uniffi types for type sharing in-between generated Python packages (#66)
* Makefile * WIP * Up maturin * Up maturin * WIP * up * WIP * WIP * Revert name changes * WIP * WIP * Fix version for build * WIP * Name change * Update .gitignore * Update lib.rs * Update Makefile * Reexport Signer * Fix pyproject build * Fix * Update __init__.py * Make file * One more change * venv * Auto-ok uninstall
1 parent 7ee651d commit 2d971e3

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

Makefile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
# Start from clean env: Delete `.venv`, then `python3 -m venv .venv`
44
# Pre-requisite: Python virtual environment is active (source .venv/bin/activate)
5-
build-python: release
6-
python3 -m venv .venv
7-
source .venv/bin/activate
8-
python3 -m pip install -r requirements.txt
9-
maturin develop
5+
6+
build-python:
7+
rm -rf c2pa/c2pa
8+
python3 -m pip uninstall -y maturin
9+
python3 -m pip uninstall -y uniffi
10+
python3 -m pip install -r requirements.txt
11+
maturin develop

c2pa/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313

1414
from .c2pa_api import Reader, Builder, create_signer, create_remote_signer, sign_ps256
1515
from .c2pa import Error, SigningAlg, CallbackSigner, sdk_version, version
16+
from .c2pa.c2pa import _UniffiConverterTypeSigningAlg, _UniffiRustBuffer
1617

17-
__all__ = ['Reader', 'Builder', 'CallbackSigner', 'create_signer', 'sign_ps256', 'Error', 'SigningAlg', 'sdk_version', 'version', 'create_remote_signer']
18+
__all__ = ['Reader', 'Builder', 'CallbackSigner', 'create_signer', 'sign_ps256', 'Error', 'SigningAlg', 'sdk_version', 'version', 'create_remote_signer', '_UniffiConverterTypeSigningAlg', '_UniffiRustBuffer']

0 commit comments

Comments
 (0)