pypi fixes

This commit is contained in:
msramalho
2023-02-13 16:48:26 +00:00
parent 83fe050c15
commit 980a27ff96
14 changed files with 550 additions and 55 deletions

19
scripts/release.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
set -e
TAG=$(python -c 'from tiktok_hashtag_analysis.version import __version__; print("v" + __version__)')
read -p "Creating new release for $TAG. Do you want to continue? [Y/n] " prompt
if [[ $prompt == "y" || $prompt == "Y" || $prompt == "yes" || $prompt == "Yes" ]]; then
git add -A
git commit -m "Bump version to $TAG for release" || true && git push
echo "Creating new git tag $TAG"
git tag "$TAG" -m "$TAG"
git push --tags
else
echo "Cancelled"
exit 1
fi