You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
version=$(python -c "with open('src/autocoder/version.py') as f: print([line.split('=')[1].strip().strip('\"') for line in f if '__version__' in line][0])")
echo "Version: $version"
# 清理dist目录
echo "Clean dist"
rm -rf ./dist/*
# 卸载当前安装的项目版本
echo "Uninstall ${project}"
pip uninstall -y ${project}
# 构建项目
echo "Build ${project} ${version}"
python setup.py sdist bdist_wheel
cd ./dist/
# 安装新构建的项目版本
echo "Install ${project} ${version}"
pip install ${project}-${version}-py3-none-any.whl && cd -