pytest-falcon
pytest-falcon copied to clipboard
Fix pypi description
Pypi only supports ReStructuredText :/
Ah, should be fixed in Warehouse soon: https://github.com/pypa/readme_renderer
Easy to fix with pandoc; struggling with High Sierra upgrade issues today.
Easy to fix with pandoc
If you mean to swtich from Markdown to RST, even by hand it's easy to fix ;) But I don't this is the best idea, imho the issue is on pypi side.
Oh: https://github.com/pypa/pypi-legacy/commit/c7dfc6b961da4f56fb8c4dc41f96a94230d84d06 I wonder why md is not supported then.
But I don't this is the best idea,
Github will render rst files... why not move to rst?
imho the issue is on pypi side.
Agreed.
Github will render rst files... why not move to rst?
Because I feel Markdown is easier, and going that way would mean migrating all python projects to rst, which is not a path I want to take :p
I feel Markdown is easier
Markdown is also my first choice.
Another option is to automate the conversion of markdown to rst within setup.py. And then when it is pushed, it will always be rst on the backside (rendering properly), but we can still maintain with markdown. Not quite as easy a fix, but still pretty straight-forward.
Another option is to automate the conversion of markdown to rst within setup.py
KISS warning ;) I think I prefer no fix than a workaround in this case.
Ah, after a bit of searching, maybe we have the proper fix here:
https://packaging.python.org/specifications/core-metadata/#description-content-type-optional
So something like... (from here)?
# setup.py
...
setup(
...
long_description=long_description,
long_description_content_type='text/markdown',
...
)
I think so. This needs a setuptools up to date though. Also, I'd add the charset=utf-8.
This needs a setuptools up to date though.
According to https://github.com/pypa/setuptools/commit/4fc60ed1e47f725a833dd63656ceec981a58e1a0 it seems the minimal setuptools version needed is 36.4.0.
From what I can tell, I've set everything up correctly, but the website is still not rendering properly.
Note: the legacy pypitest has been sunset. If we want to actually test a build on the test site, we have to bump the version each time.
Metadata-Version: 1.1
Name: pytest-falcon
Version: 0.4.2.dev1
Summary: Pytest helpers for Falcon.
Home-page: https://github.com/yohanboniface/pytest-falcon
Author: Yohan Boniface
Author-email: [email protected]
License: WTFPL
Description-Content-Type: text/markdown; charset=UTF-8; variant=CommonMark
Description: [](https://travis-ci.org/yohanboniface/pytest-falcon) [](https://pypi.python.org/pypi/pytest-falcon)
# Pytest-Falcon
Pytest helpers for the Falcon framework.
## Install
```
pip install pytest-falcon
```
## Usage
...
Erf, seems we are stuck on https://github.com/pypa/warehouse/issues/869 :(
Let's see if we can help there. Bed time for me, though ;)