python3.5 - 如何发布自己的python包
怪我咯
怪我咯 2017-04-18 09:53:45
0
2
669

如果我写了一个包开源到github上(水平渣不敢放到pip),我该如何处理包依赖问题?

就是我写的包依赖第三方包,如果我直接把代码发到github,别人下载肯定不能用

难道只能写在readme.md中?

或者是requirements.txt?使用者把requirements.txt复制粘贴到自己项目中的requirements.txt?

希望举个例子说明:如何发布一个包,别人又是如何使用这个包.

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
左手右手慢动作

You can check out the following article release version 1
Questions on Zhihu
Another relatively popular article
I hope it can help you. In fact, publishing is an extremely simple thing. As long as you are willing to do it, you will get started quickly

伊谢尔伦

Since you still expect others to use your package, of course you still put pip
Your code itself can still be placed on github, but as for the detailed process, it is recommended to read the official documentation
https://packaging.python. org/…

PS: Level is not a problem, if people really use it, then you will have the motivation to improve

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!