在pypi上分享自己的库

1.首先在pypi官网,注册自己的账号:

https://pypi.org/

2.编写自己的库,目录如下:

其中 operate_excel库为代码

license为许可证(参考网址):

https://choosealicense.com/

setup.py参考:

https://pypi.org/classifiers/

READMEmd参考:

https://blog.csdn.net/a15920804969/article/details/80460537

https://www.cnblogs.com/shiy/p/6526868.html

上传代码:

确保您拥有setuptools并wheel 安装了最新版本
python -m pip install --user --upgrade setuptools wheel
python setup.py sdist bdist_wheel

现在您已注册,您可以使用twine上传分发包。你需要安装Twine:

python -m pip install --user --upgrade twine

安装完成后,运行Twine以上传所有存档dist:

python -m twine upload --repository-url https://upload.pypi.org/legacy/ dist/*

参考网址:

https://packaging.python.org/tutorials/packaging-projects/

https://youyou888856.iteye.com/blog/2407490

https://blog.csdn.net/youyou888856/article/details/84914804

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Christian_yang

你的鼓励将是我创作的最大动力!

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值