3 Star 0 Fork 0

mirrors_lepy / python-rsa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
update_version.sh 462 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/bin/bash
if [ -z "$1" ]; then
echo "Usage: $0 new-version" >&2
exit 1
fi
DATE=$(date +'%Y-%m-%d')
sed "s/__date__\s=\s\"[^\"]*\"/__date__ = \"$DATE\"/" -i rsa/__init__.py
sed "s/__version__\s=\s\"[^\"]*\"/__version__ = \"$1\"/" -i rsa/__init__.py
poetry version "$1"
git diff
echo
echo "Don't forget to commit and tag:"
echo git commit -m \'Bumped version to $1\' rsa/__init__.py pyproject.toml
echo git tag -a version-$1 -m \'Tagged version $1\'
1
https://gitee.com/mirrors_lepy/python-rsa.git
git@gitee.com:mirrors_lepy/python-rsa.git
mirrors_lepy
python-rsa
python-rsa
main

搜索帮助