File tree Expand file tree Collapse file tree 2 files changed +69
-3
lines changed
Expand file tree Collapse file tree 2 files changed +69
-3
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,4 @@ The Python package is called from PySyft, like in [this branch](https://github.c
3636
3737### Publish
3838
39- ``` bash
40- docker run --rm --env RUSTFLAGS=" -C target-feature=+aes,+ssse3" -v $( pwd) :/io konstin2/maturin publish -b cffi --manylinux 2010 -u __token__ -p pypi-your-token
41- ```
39+ See [ docs/publish.md] ( https://github.com/OpenMined/sycret/blob/master/docs/publish.md ) for details.
Original file line number Diff line number Diff line change 1+ # Publish Package
2+
3+ ## Test
4+
5+ It is possible to test the publishing of a PyPI package with [ TestPyPI] ( https://test.pypi.org/ ) .
6+
7+ In order to do this register an account if you haven't done so already and run the following:
8+
9+ ``` bash
10+ docker run --rm -v $( pwd) :/io konstin2/maturin publish -b cffi --no-sdist -r https://test.pypi.org/legacy/ -u USERNAME -p PASSWORD --manylinux 2014
11+ ```
12+
13+ It's also possible to build a wheel for ` aarch ` as follows:
14+
15+ 1 . Run docker container with:
16+ ``` bash
17+ docker run --rm -it -v $( pwd) :/home/rust/src messense/manylinux_2_24-cross:aarch64
18+ ```
19+ 2 . Downloaded Rust tools via Rustup:
20+ ``` bash
21+ curl https://sh.rustup.rs -sSf | bash -s -- -y
22+ ```
23+ 3 . Configured shell:
24+ ``` bash
25+ echo ' source $HOME/.cargo/env' >> $HOME /.bashrc
26+ source $HOME /.cargo/env
27+ ```
28+ 4 . Added target:
29+ ``` bash
30+ rustup target add aarch64-unknown-linux-gnu
31+ ```
32+ 5 . Publish package:
33+ ``` bash
34+ maturin publish -b cffi --no-sdist -r https://test.pypi.org/legacy/ -u USERNAME -p PASSWORD --manylinux 2014
35+ ```
36+
37+ ## Production
38+
39+ In order to do this manually for a production-ready release, one can do the same, without specifying the https://test.pypi.org/legacy/ URL. That is:
40+
41+ ``` bash
42+ docker run --rm -v $( pwd) :/io konstin2/maturin publish -b cffi --no-sdist -u USERNAME -p PASSWORD --manylinux 2014
43+ ```
44+
45+ It's also possible to build a wheel for ` aarch ` as follows:
46+
47+ 1 . Run docker container with:
48+ ``` bash
49+ docker run --rm -it -v $( pwd) :/home/rust/src messense/manylinux_2_24-cross:aarch64
50+ ```
51+ 2 . Downloaded Rust tools via Rustup:
52+ ``` bash
53+ curl https://sh.rustup.rs -sSf | bash -s -- -y
54+ ```
55+ 3 . Configured shell:
56+ ``` bash
57+ echo ' source $HOME/.cargo/env' >> $HOME /.bashrc
58+ source $HOME /.cargo/env
59+ ```
60+ 4 . Added target:
61+ ``` bash
62+ rustup target add aarch64-unknown-linux-gnu
63+ ```
64+ 5 . Publish package:
65+ ``` bash
66+ maturin publish -b cffi --no-sdist -u USERNAME -p PASSWORD --manylinux 2014
67+ ```
68+
You can’t perform that action at this time.
0 commit comments