Skip to content

Commit f56bbf8

Browse files
committed
fix: Pypi description parsing
1 parent 79c2fd4 commit f56bbf8

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Flask RestPlus
55
.. image:: https://secure.travis-ci.org/python-restx/flask-restx.svg?branch=master
66
:target: https://travis-ci.org/python-restx/flask-restx?branch=master
77
:alt: Build status
8-
.. image:: https://coveralls.io/repos/python-restx/flask-restx/badge.svg?branch=master
9-
:target: https://coveralls.io/r/python-restx/flask-restx?branch=master
8+
.. image:: https://coveralls.io/repos/github/python-restx/flask-restx/badge.svg?branch=master
9+
:target: https://coveralls.io/github/python-restx/flask-restx?branch=master
1010
:alt: Code coverage
1111
.. image:: https://readthedocs.org/projects/flask-restx/badge/?version=latest
1212
:target: https://flask-restx.readthedocs.io/en/latest/
@@ -174,4 +174,4 @@ The documentation is hosted `on Read the Docs <http://flask-restx.readthedocs.io
174174

175175
Contribution
176176
============
177-
Want to contribute! That's awesome! Check out `CONTRIBUTING.rst! <https://github.com/python-restx/flask-restx/blob/master/CONTRIBUTING.rst>`_
177+
Want to contribute! That's awesome! Check out `CONTRIBUTING.rst! <https://github.com/python-restx/flask-restx/blob/master/CONTRIBUTING.rst>`_

requirements/develop.pip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ invoke==1.3.0
22
flake8==3.7.8
33
readme-renderer==24.0
44
tox==3.13.2
5+
twine==3.1.1

tasks.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,12 @@ def qa(ctx):
157157
else:
158158
success('No linter errors')
159159
info('Ensure PyPI can render README and CHANGELOG')
160-
readme_results = ctx.run('python setup.py check -r -s', pty=True, warn=True, hide=True)
160+
info('Building dist package')
161+
dist = ctx.run('python setup.py sdist', pty=True, warn=False, hide=True)
162+
if dist.failed:
163+
error('Unable to build sdist package')
164+
exit('Quality check failed', dist.return_code)
165+
readme_results = ctx.run('twine check dist/*', pty=True, warn=True, hide=True)
161166
if readme_results.failed:
162167
print(readme_results.stdout)
163168
error('README and/or CHANGELOG is not renderable by PyPI')

0 commit comments

Comments
 (0)