search

Home  >  Q&A  >  body text

python3.5 - 如何发布自己的python包

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

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

难道只能写在readme.md中?

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

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

怪我咯怪我咯2766 days ago672

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 09:55:45

    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

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:55:45

    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

    reply
    0
  • Cancelreply