From de7acb5f0d95ea416ce6c1b77cd33ab723d7c994 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Fri, 5 Aug 2022 13:39:35 +0200 Subject: [PATCH] scripts: Switch release script to twine The old procedure finally broke over a new distro version of the maintainer. Migrate to twine for uploading, that seems to work fine. Signed-off-by: Jan Kiszka --- scripts/release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/release.sh b/scripts/release.sh index 63b5cc9..9dd8cb4 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -41,7 +41,8 @@ git commit -m "Release $NEW_VERSION" git tag -s -m "Release $NEW_VERSION" "$NEW_VERSION" git push --follow-tags -python setup.py sdist upload -r pypi +python3 setup.py sdist +twine upload -r pypi "dist/kas-$NEW_VERSION.tar.gz" authors=$(git shortlog -s "$OLD_VERSION".."$NEW_VERSION" | cut -c8- | paste -s -d, - | sed -e 's/,/, /g') highlights=$(sed -e "/$OLD_VERSION/,\$d" CHANGELOG.md)