From 84e87239bc6d75986afc42def70afa5894626cb1 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 20 Jul 2024 17:47:59 +0200 Subject: [PATCH] fix pypi repo name in upload script it needs to be like this to support a ~/.pypirc like this, containing a separate upload token for the borgbackup project: [distutils] index-servers = borgbackup ... [borgbackup] repository = https://upload.pypi.org/legacy/ username = __token__ password = pypi-...(token)... --- scripts/upload-pypi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upload-pypi b/scripts/upload-pypi index afd6acdcc..44aea4024 100755 --- a/scripts/upload-pypi +++ b/scripts/upload-pypi @@ -8,11 +8,11 @@ if [ "$R" = "" ]; then fi if [ "$2" = "test" ]; then - export TWINE_REPOSITORY=testpypi + export TWINE_REPOSITORY=borgbackuptest else - export TWINE_REPOSITORY=pypi + export TWINE_REPOSITORY=borgbackup fi D=dist/borgbackup-$R.tar.gz -twine upload "$D" +twine upload $D