Skip to content

Commit f255a1e

Browse files
committed
specify uniffi version and add manylinux instructions
1 parent 383fdc8 commit f255a1e

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ serde = { version = "1.0", features = ["derive"] }
1515
serde_derive = "1.0"
1616
serde_json = "1.0"
1717
thiserror = "1.0.49"
18-
uniffi = "0.24.1"
18+
uniffi = "0.24.3"
1919

2020
[build-dependencies]
2121
uniffi = { version = "0.24.1", features = ["build"] }

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,25 @@ pip install -U pytest
139139
python3 -m build --wheel
140140
```
141141

142+
### ManyLinux build
143+
```
144+
docker run -it quay.io/pypa/manylinux_2_28_aarch64 bash
145+
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
146+
source "$HOME/.cargo/env"
147+
export PATH=/opt/python/cp312-cp312/bin:$PATH
148+
pip install maturin
149+
pip install venv
150+
pip install build
151+
pip install -U pytest
152+
153+
cd home
154+
git clone https://github.com/contentauth/c2pa-python.git
155+
cd c2pa-python
156+
python3 -m build --wheel
157+
auditwheel repair target/wheels/c2pa_python-0.4.0-py3-none-linux_aarch64.whl
158+
159+
```
160+
142161
### Testing
143162

144163
We use [PyTest](https://docs.pytest.org/) for testing.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["maturin>=1.2,<2.0"]
2+
requires = ["maturin>=1.2,<2.0","uniffi_bindgen>=0.24,<0.25"]
33
build-backend = "maturin"
44

55
[project]

0 commit comments

Comments
 (0)