提交 dba0f431 编写于 作者: J Jeff Rasley

bump to 0.4.4 + add release scripts

上级 bc451c09
from packaging import version as pkg_version
with open('../version.txt') as fd:
version = pkg_version.parse(fd.read())
with open('../version.txt', 'w') as fd:
fd.write(f'{version.major}.{version.minor}.{version.micro + 1}\n')
print(f'{version} -> {version.major}.{version.minor}.{version.micro + 1}')
#!/bin/bash
cd ..
if [ ! -f ~/.pypirc ]; then
echo 'create .pypirc in order to upload to PyPI'
exit 1
fi
version=$1
if [ -z $version ]; then
echo "please provide version number for release"
exit 1
fi
if [[ $version == *"v"* ]]; then
echo "please only include version number without 'v' prefix"
exit 1
fi
if [ "${version}" != `cat version.txt` ]; then
echo "version=${version} does not match version.txt"
cat version.txt
exit 1
fi
python -c "import twine"
if [ $? != 0 ]; then
echo 'please install twine via pip'
exit 1
fi
DS_BUILD_STRING="" python setup.py sdist
if [ ! -f dist/deepspeed-${version}.tar.gz ]; then
echo "prepared version does not match version given ($version), bump version first?"
ls dist
exit 1
fi
python -m twine upload dist/deepspeed-${version}.tar.gz --repository deepspeed
git tag v${version}
git push origin v${version}
echo "bumping up patch version"
cd -
python bump_patch_version.py
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册