代码拉取完成,页面将自动刷新
#!/bin/sh
set -e
# Different to release-pypi-win.cmd and release-pypi-osx.sh,
# this script has to be ran from a clean dockerfile
# Download and init conda
MINICONDA_FILENAME=Miniconda3-latest-MacOSX-x86_64.sh
curl -L -o $MINICONDA_FILENAME \
"https://repo.continuum.io/miniconda/$MINICONDA_FILENAME"
bash ${MINICONDA_FILENAME} -b -f -p $HOME/miniconda3
export PATH=$HOME/miniconda3/bin:$PATH
eval "$(conda shell.bash hook)"
for VERSION in 3.8 3.9 3.10 3.11 3.12; do
# Create and activate environment
conda config --add channels conda-forge
conda config --set channel_priority strict
conda create -y -n py$VERSION python=$VERSION
conda activate py$VERSION
# Build and package
pip install --no-cache-dir setuptools wheel
python setup.py build_ext bdist_wheel
# Cleanup
conda deactivate
rm -rf build python/opencc/clib OpenCC.egg-info
done
if [ "$1" != "testonly" ]; then
# Upload to PyPI
conda activate py3.8
python -m pip install twine
python -m twine upload dist/*
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。