mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 15:02:11 +03:00
* import python, try to adapt for rust * add missing wrapper functions * - try to write up how to build python bindings - strike some unused functions from deltachat.h * adjustments to make tox work * try to run circle-ci with python build * don't do docs * running cargo test as well * don't run cargo test anymore, that's done in other ci jobs * also build docs * don't run doxygen anymore * subst C with Rust * a try to get better wheels Closes #41
48 lines
1.1 KiB
Bash
Executable File
48 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ -z "$DEVPI_LOGIN" ] ; then
|
|
echo "required: password for 'dc' user on https://m.devpi/net/dc index"
|
|
exit 1
|
|
fi
|
|
|
|
set -xe
|
|
|
|
#DOXYDOCDIR=${1:?directory where doxygen docs to be found}
|
|
PYDOCDIR=${1:?directory with python docs}
|
|
WHEELHOUSEDIR=${2:?directory with pre-built wheels}
|
|
|
|
export BRANCH=${CIRCLE_BRANCH:?specify branch for uploading purposes}
|
|
|
|
|
|
# python docs to py.delta.chat
|
|
rsync -avz \
|
|
-e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
|
|
"$PYDOCDIR/html/" \
|
|
delta@py.delta.chat:build/${BRANCH}
|
|
|
|
# C docs to c.delta.chat
|
|
#rsync -avz \
|
|
# -e "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
|
|
# "$DOXYDOCDIR/html/" \
|
|
# delta@py.delta.chat:build-c/${BRANCH}
|
|
|
|
echo -----------------------
|
|
echo upload wheels
|
|
echo -----------------------
|
|
|
|
# Bundle external shared libraries into the wheels
|
|
pushd $WHEELHOUSEDIR
|
|
|
|
pip install devpi-client
|
|
devpi use https://m.devpi.net
|
|
devpi login dc --password $DEVPI_LOGIN
|
|
|
|
devpi use dc/$BRANCH || {
|
|
devpi index -c $BRANCH
|
|
devpi use dc/$BRANCH
|
|
}
|
|
devpi index $BRANCH bases=/root/pypi
|
|
devpi upload deltachat*.whl
|
|
|
|
popd
|