mirror of
https://github.com/cberner/raptorq.git
synced 2024-06-30 02:31:48 +00:00
Fix Python package publishing script
This commit is contained in:
parent
59989bf351
commit
4670feb3d6
2
Makefile
2
Makefile
@ -44,7 +44,7 @@ release_py: pre
|
|||||||
.PHONY: publish_py
|
.PHONY: publish_py
|
||||||
publish_py: test_py
|
publish_py: test_py
|
||||||
docker pull quay.io/pypa/manylinux2014_x86_64
|
docker pull quay.io/pypa/manylinux2014_x86_64
|
||||||
docker run -it --rm -v $(shell pwd):/raptorq quay.io/pypa/manylinux2014_x86_64 /raptorq/py_publish.sh
|
docker run -it --rm -v $(shell pwd):/raptorq-ro:ro quay.io/pypa/manylinux2014_x86_64 /raptorq-ro/py_publish.sh
|
||||||
|
|
||||||
.PHONY: install_py
|
.PHONY: install_py
|
||||||
install_py: pre
|
install_py: pre
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
PYTHON3=/opt/python/cp311-cp311/bin/python3
|
||||||
|
|
||||||
|
cp -r /raptorq-ro /raptorq
|
||||||
cd /raptorq
|
cd /raptorq
|
||||||
yum install -y python3-pip
|
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=1.60.0
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain=$(cat ./rust-toolchain)
|
||||||
source $HOME/.cargo/env
|
source $HOME/.cargo/env
|
||||||
|
|
||||||
pip3 install toml
|
cd /tmp
|
||||||
pip3 install maturin
|
$PYTHON3 -m venv venv
|
||||||
|
cd /raptorq
|
||||||
|
source /tmp/venv/bin/activate
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
|
python3 -m pip install 'maturin>=1.0,<2.0'
|
||||||
|
|
||||||
# xargs is just to merge the lines together into a single line
|
python3 -m maturin publish
|
||||||
maturin publish --cargo-extra-args="--features python" \
|
|
||||||
-i $(ls -1 /opt/python/*/bin/python3 | xargs | sed 's/ / -i /g')
|
|
||||||
|
Loading…
Reference in New Issue
Block a user