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

Remove unnecessary usage of readme_renderer.markdown #421

Merged
merged 1 commit into from
Oct 29, 2018

Conversation

di
Copy link
Member

@di di commented Oct 28, 2018

Fixes #420.

Rendering plaintext or markdown will never fail, so we'll just automatically pass the check if those content types have been specified.

@codecov
Copy link

codecov bot commented Oct 28, 2018

Codecov Report

Merging #421 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #421      +/-   ##
==========================================
- Coverage   78.29%   78.23%   -0.06%     
==========================================
  Files          14       14              
  Lines         737      735       -2     
  Branches      106      106              
==========================================
- Hits          577      575       -2     
- Misses        127      128       +1     
+ Partials       33       32       -1
Impacted Files Coverage Δ
twine/commands/check.py 100% <100%> (ø) ⬆️
twine/wininst.py 31.57% <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 bd1d8b0...ee131f3. Read the comment docs.

@obestwalter
Copy link

Rendering plaintext or markdown will never fail

Does that mean that the check does not really do anything in case of markdown?

@theacodes
Copy link
Member

That's correct. Cmark does not error when it's given malformed markup, it will mostly just pass it through, being careful to close any dangling html tag if necessary.

@mmacvicar-splunk
Copy link

Temporary work around is to pip install readme_renderer[md]

g-chauvel pushed a commit to g-chauvel/zuul-jobs that referenced this pull request Oct 7, 2020
This dependency was added with
Iaf4da5aedaa3814b2ecebed4391da2324d3e388d to prevent a warning when
using "twine check" with text/markdown descriptions.

Per [1], this check doesn't really do anything and will never fail.

We are now having issues using this role with with Python 3.8 on the
executor as the md dependency pulls in cmarkgfm which has binary
dependencies but does not publish any wheels; meaning the executor
fails to install as it does not have a toolchain setup.  Unfortunately
upstream is not particularly active, so building good manylinux wheels
is not something we're going to be able to deal with in a timely
fashion.

Given that this is not a failure, and isn't really doing anything and
blocks Python 3.8, it seems our best course is to remove this
dependency.

[1] pypa/twine#421

Change-Id: Iac5c9f63d41375889e4fdad67b9a45a24a644341
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.

5 participants