From 3419e359c8e97cf0cec452febe4407f181da15f4 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Tue, 17 Oct 2023 00:33:07 +0200 Subject: [PATCH] create build venv in chatmaild/venv --- scripts/deploy.sh | 2 +- scripts/init.sh | 6 +----- scripts/remote-deploy.sh | 6 +++--- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 6385f380..7ec2d0ef 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -2,7 +2,7 @@ : ${CHATMAIL_DOMAIN:=c1.testrun.org} export CHATMAIL_DOMAIN -venv/bin/python3 -m build -n --sdist chatmaild --outdir dist +chatmaild/venv/bin/python3 -m build -n --sdist chatmaild --outdir dist deploy-chatmail/venv/bin/pyinfra --ssh-user root "$CHATMAIL_DOMAIN" \ deploy-chatmail/src/deploy_chatmail/deploy.py diff --git a/scripts/init.sh b/scripts/init.sh index 07c776c0..37d5e240 100755 --- a/scripts/init.sh +++ b/scripts/init.sh @@ -6,12 +6,8 @@ deploy-chatmail/venv/bin/pip install -e deploy-chatmail deploy-chatmail/venv/bin/pip install -e chatmaild python3 -m venv chatmaild/venv -chatmaild/venv/bin/pip install pytest +chatmaild/venv/bin/pip install --upgrade pytest build 'setuptools>=68' chatmaild/venv/bin/pip install -e chatmaild python3 -m venv online-tests/venv online-tests/venv/bin/pip install pytest pytest-timeout pdbpp deltachat pytest-benchmark - -python3 -m venv venv -venv/bin/pip install build -venv/bin/pip install 'setuptools>=68' diff --git a/scripts/remote-deploy.sh b/scripts/remote-deploy.sh index 5bd1ed91..4a80cdca 100755 --- a/scripts/remote-deploy.sh +++ b/scripts/remote-deploy.sh @@ -2,7 +2,7 @@ set -e : ${CHATMAIL_DOMAIN:=c1.testrun.org} -: ${CHATMAIL_SSH_HOST:=$CHATMAIL_DOMAIN} +: ${CHATMAIL_SSH:=$CHATMAIL_DOMAIN} -rsync -avz . "root@$CHATMAIL_SSH_HOST:/root/chatmail" --exclude='/.git' --filter="dir-merge,- .gitignore" -ssh "root@$CHATMAIL_SSH_HOST" "cd /root/chatmail; apt install -y python3-venv; python3 -m venv venv; venv/bin/pip install pyinfra build; venv/bin/python3 -m build -n --sdist chatmaild --outdir dist; venv/bin/pip install -e ./deploy-chatmail -e ./chatmaild; export CHATMAIL_DOMAIN=$CHATMAIL_DOMAIN; venv/bin/pyinfra @local deploy.py" +rsync -avz . "root@$CHATMAIL_SSH:/root/chatmail" --exclude='/.git' --filter="dir-merge,- .gitignore" +ssh "root@$CHATMAIL_SSH" "cd /root/chatmail; apt install -y python3-venv; python3 -m venv venv; venv/bin/pip install pyinfra build; venv/bin/python3 -m build -n --sdist chatmaild --outdir dist; venv/bin/pip install -e ./deploy-chatmail -e ./chatmaild; export CHATMAIL_DOMAIN=$CHATMAIL_DOMAIN; venv/bin/pyinfra @local deploy.py"