Skip to content

Commit

Permalink
specify uniffi version and add manylinux instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
gpeacock committed Jan 19, 2024
1 parent 383fdc8 commit f255a1e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_derive = "1.0"
serde_json = "1.0"
thiserror = "1.0.49"
uniffi = "0.24.1"
uniffi = "0.24.3"

[build-dependencies]
uniffi = { version = "0.24.1", features = ["build"] }
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,25 @@ pip install -U pytest
python3 -m build --wheel
```

### ManyLinux build
```
docker run -it quay.io/pypa/manylinux_2_28_aarch64 bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source "$HOME/.cargo/env"
export PATH=/opt/python/cp312-cp312/bin:$PATH
pip install maturin
pip install venv
pip install build
pip install -U pytest
cd home
git clone https://github.com/contentauth/c2pa-python.git
cd c2pa-python
python3 -m build --wheel
auditwheel repair target/wheels/c2pa_python-0.4.0-py3-none-linux_aarch64.whl
```

### Testing

We use [PyTest](https://docs.pytest.org/) for testing.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["maturin>=1.2,<2.0"]
requires = ["maturin>=1.2,<2.0","uniffi_bindgen>=0.24,<0.25"]
build-backend = "maturin"

[project]
Expand Down

0 comments on commit f255a1e

Please sign in to comment.