Skip to content

Commit

Permalink
feat: Reexport some uniffi types for type sharing in-between generate…
Browse files Browse the repository at this point in the history
…d 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
  • Loading branch information
tmathern authored Nov 20, 2024
1 parent 7ee651d commit 2d971e3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

# Start from clean env: Delete `.venv`, then `python3 -m venv .venv`
# Pre-requisite: Python virtual environment is active (source .venv/bin/activate)
build-python: release
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install -r requirements.txt
maturin develop

build-python:
rm -rf c2pa/c2pa
python3 -m pip uninstall -y maturin
python3 -m pip uninstall -y uniffi
python3 -m pip install -r requirements.txt
maturin develop
3 changes: 2 additions & 1 deletion c2pa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@

from .c2pa_api import Reader, Builder, create_signer, create_remote_signer, sign_ps256
from .c2pa import Error, SigningAlg, CallbackSigner, sdk_version, version
from .c2pa.c2pa import _UniffiConverterTypeSigningAlg, _UniffiRustBuffer

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

0 comments on commit 2d971e3

Please sign in to comment.