学习笔记(35):零基础掌握 Python 入门到实战-自己造积木:编写和搭建模块(二)

it2024-10-06  44

立即学习:https://edu.csdn.net/course/play/26676/402884?utm_source=blogtoedu

包的创建:就是包含有__init__.py文件的python文件

包的发布:

LICENSE: 在网站 https://choosealicense.com/licenses/mit/ 页面中的MIT License进行复制 

检查安装软件是否是最新版本:-m pip install --user --upgrade setuptools wheel 

安装工具:https://pypi.org/project/twine,

实验区:https://test.pypi.org/manage/projects/

在第三方包里面执行:python3 setup.py sdist bdist_wheel

包的发布:twine upload --repsitory-url https://test.pypi.org/legacy/  ./dist/*

最新回复(0)