Workaround para problema no parser da licença (Error: The description failed to render in the default format of reStructuredText.) #164
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Conforme descrito nessa issue do projeto twine e essa do projeto setuptools ao utilizar todo o conteúdo da licença no argumento do setup() pode ocorrer a quebra na criação do arquivo PKG-INFO, causando o parseamento errado do arquivo.
Por conta disso o twine falha ao checar o aquivo dist gerado:
Checking dist/libpythonprosfx-0.1.tar.gz: FAILED
long_description has syntax errors in markup and would not be rendered on PyPI.
line 8: Warning: Block quote ends without a blank line; unexpected unindent.
warning: long_description_content_type missing. defaulting to text/x-rst.
E o erro posterior no upload do pacote para o Pypi:
HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText.
A solução recomendada pelos desenvolveres é passar apenas uma string declarando o tipo de licença e o conteúdo da mesma ficar apenas no arquivo LICENSE como já está setado no projeto.
Com a mudança, o projeto sobe sem problemas.