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 <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka 2022-08-05 13:39:35 +02:00
parent d1834dd6bf
commit de7acb5f0d

View File

@ -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)