-
Notifications
You must be signed in to change notification settings - Fork 931
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guidlines for making a PyPI-friendly readme #210
Comments
Note: you can test a long_description using the exact same code that PyPI (and Warehouse) uses (modulo version numbers) using: $ pip install readme
$ python setup.py check -r -s |
@njsmith suggested it might also be good to link to https://pypi.python.org/pypi/pyroma . |
I now see that https://packaging.python.org/tutorials/distributing-packages/?highlight=https#uploading-your-project-to-pypi does mention readme_renderer. I do think a bit more explanation, mapping bits of the README to bits of a PyPI project detail page, would be useful. |
The packaging and distribution tutorial currently says:
I think that right now we should just say it is a requirement, to simplify the experience for users, till the multiple steps laid out in pypi/warehouse#869 (comment) are completed. This would also reduce conflict with the sample project README which says that it should be written in reStructuredText. This would reduce confusion. I was advising a person today who was trying out the new PyPI who asked,
Until we can confidently list what other formats will render well, let's just advise people to use |
I think the docs are implying that plaintext is also an option, if users don't want to use reStructuredText. |
Right, the two currently fully supported formats are plain text (
|
Also worth noting: PEP 566 has been accepted, so I'd expect Markdown to be supported properly over the next couple of months ( |
@ncoghlan do you have a branch/PR/issue we can follow for Markdown support? |
@nnadeau You can follow pypi/warehouse#869, which I will close once it's possible to publish a package with a Markdown description with some subset of packaging tools. |
@di posted it in pypi/warehouse#869 but it's worth pointing to here as well: with releases or pre-releases available of all the tools in the packaging and distro toolchain, you can now build and upload an sdist to Warehouse with a Markdown Followups: |
@ddbeck If you are interested in writing "make a PyPI-friendly |
@brainwane good timing on reminding me of this! I actually have some time for this either tomorrow or Monday. Feel free to nudge me about it if there's no progress by Tuesday. :-) |
OK, I didn't make as much progress on this I would've liked. I'll return to this in a couple of days. In the meantime, here's the outline I'm working from: Title: Making a PyPI-friendly README
|
OK, I've opened a PR to add a guide. I ultimately did not cover testing README rendering because the |
Per pypi/warehouse#3438 (comment) I would love for https://packaging.python.org/guides/making-a-pypi-friendly-readme/ to mention the minimum versions of these tools folks will need:
|
I've already made a separate issue for that: #481 Also should not that the |
OK, the README guide merged and the other issue is open so I'm going to close this. Thanks, everyone! |
A warehouse issue brought up the idea of documenting how to format code in READMEs for PyPI. Rather than covering code formatting alone, I thought it might be useful to have a section that covers setting the contents of a project's PyPI home page:
long_description
)long_description
to the content of a project's README file (like the pypa sample project does)Before I started writing, I thought I would open this issue for feedback or additional ideas.
The text was updated successfully, but these errors were encountered: