/python_developer_tools

python_developer_tools

Primary LanguagePythonApache License 2.0Apache-2.0

python_developer_tools

python 开发过程中常用到的工具

生成发布软件包文件

python -m pip install --user --upgrade setuptools wheel
python setup.py sdist bdist_wheel

将打包好的项目上传至PyPI

python -m pip install --user --upgrade twine
# upload to test PyPI
python -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*
# upload to real PyPI
python -m twine upload dist/*

测试是否发布成功

# 在线安装测试版本
pip install -i https://test.pypi.org/simple/ python_developer_tools==0.0.2
# 在线安装正式版本
pip install -i https://pypi.org/simple/ python_developer_tools==0.0.2
pip install python_developer_tools==0.0.2
pip install git+https://github.com/carlsummer/python_developer_tools.git
# 离线安装
pip install dist/python_developer_tools-0.0.2-py3-none-any.whl
pip uninstall -y python_developer_tools