1 Star 0 Fork 0

术木 / OpenCC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
release-pypi-macos.sh 894 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/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 2.7 3.5 3.6 3.7 3.8; do
# Create and activate environment
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
# Upload to PyPI
conda activate py3.8
python -m pip install twine
python -m twine upload dist/*
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/spy109/OpenCC.git
git@gitee.com:spy109/OpenCC.git
spy109
OpenCC
OpenCC
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891