Skip to content
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

Workaround para problema no parser da licença (Error: The description failed to render in the default format of reStructuredText.) #164

Merged
merged 1 commit into from Sep 29, 2019

Conversation

undersfx
Copy link
Contributor

@undersfx undersfx commented Sep 29, 2019

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.

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@319ffa4). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             master   #164   +/-   ##
=======================================
  Coverage          ?   100%           
=======================================
  Files             ?     12           
  Lines             ?    116           
  Branches          ?      0           
=======================================
  Hits              ?    116           
  Misses            ?      0           
  Partials          ?      0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 319ffa4...1f68123. Read the comment docs.

@undersfx undersfx changed the title Workaround para problema no parser da licença (HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText.) Workaround para problema no parser da licença (Error: The description failed to render in the default format of reStructuredText.) Sep 29, 2019
@renzon renzon merged commit 9648034 into pythonprobr:master Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants