Repository navigation
Explain why README.md should be added to sdist - #711
Conversation
merwok
left a comment
There was a problem hiding this comment.
Good change for setup.py doc.
Would be even simpler with metadata in setup.cfg but I guess that’s a bigger change!
|
@pastelmind hey, do you mind synching this PR with the |
|
I'm busy atm. I'll see what I can do after today. |
|
@webknjaz I merged |
|
@pfmoore Thank you. The |
|
@pastelmind could you please resolve the merge conflict? |
| author_email="author@example.com", | ||
| description="A small example package", | ||
| long_description=long_description, | ||
| long_description="file:README.md", |
There was a problem hiding this comment.
This should be reverted: directives like file: only work in declarative config (setup.cfg) and this doesn't work in Python script (setup.py).
There was a problem hiding this comment.
Right! The document that was linked has most info in setup.cfg and a near-empty setup.py
There was a problem hiding this comment.
@webknjaz You are right. I checked by uploading a package on TestPyPI...and long_description="file:README.rst" does not do what I thought it would do. I will revert the changes and fix the merge conflicts as well.
|
Because |
Update sample setup.py to correctly load README.md when cwd is not the same directory that setup.py lives in (discussed in #696). The updated README-loading code is for Python 3+. Since Python 2 has been deprecated, it is probably safe to assume that anyone reading this guide is most likely using Python 3.The guide has been updated significantly since the inception of this PR, which obviates thesetup.pychanges. Also see #711 (comment)Also explain why README.md should be added to the package (discussed in #696).