提交 1b8732cf 编写于 作者: H Hou Tianze

Add in release testing script release.sh

上级 75537192
#!/bin/sh
actual=0
build=0
upload=0
while getopts "abu" opt; do
case "$opt" in
a)
actual=1
;;
b)
build=1
;;
u)
build=1
upload=1
;;
esac
done
if [ "$build" -eq 1 ]
then
rm -Rf dist/*
python3 setup.py sdist bdist_wheel -r testpypi
fi
if [ "$actual" -eq 0 ]
then
repoopt="-r testpypi"
indexopt="-i https://testpypi.python.org/simple/"
else
repoopt=""
indexopt=""
fi
uploadcmd="twine upload dist/* $repoopt"
if [ "$upload" -eq 0 ]
then
echo "$uploadcmd"
else
eval "$uploadcmd"
fi
. ~/Documents/t/venv27/bin/activate
pip install -U bypy $indexopt
bypy -V
deactivate
. ~/Documents/t/venv34/bin/activate
pip install -U bypy $indexopt
bypy -V
deactivate
# vim: tabstop=4 noexpandtab shiftwidth=4 softtabstop=4 ff=unix fileencoding=utf-8
...@@ -22,7 +22,7 @@ setup( ...@@ -22,7 +22,7 @@ setup(
'baidu cloud storage', 'baidu personal cloud storage', 'baidu cloud storage', 'baidu personal cloud storage',
'百度云', '百度云盘', '百度网盘', '百度个人云存储'], '百度云', '百度云盘', '百度网盘', '百度个人云存储'],
classifiers = [ classifiers = [
'Development Status :: 4 - Beta' 'Development Status :: 4 - Beta',
'Environment :: Console', 'Environment :: Console',
'Intended Audience :: End Users/Desktop', 'Intended Audience :: End Users/Desktop',
'Intended Audience :: Developers', 'Intended Audience :: Developers',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册