Code Monkey home page Code Monkey logo

Comments (4)

mgedmin avatar mgedmin commented on July 4, 2024

It might be that the wheel file you've uploaded to PyPI was built with an older version of wheel and lacks some metadata, or maybe the version of twine you used for the upload was too old and didn't submit the right metadata?

from decorator.

altendky avatar altendky commented on July 4, 2024

I have seen this in various situations without ever fully identifying why the supposed default (I think that's indicated somewhere) isn't always used. It can be addressed explicitly such as:

https://github.com/altendky/exttr/blob/60aa5d6e9f04631b8e86552620f2d9cd2a0a3a04/setup.py#L12

long_description_content_type='text/x-rst',

from decorator.

mgedmin avatar mgedmin commented on July 4, 2024

Or it may be a ReST syntax error after all. If I run twine check on the files downloaded from PyPI, I get errors:

twine check decorator-4.4.0.tar.gz 
Checking distribution /home/mg/Atsiuntimai/decorator-4.4.0.tar.gz: warning: `long_description_content_type` missing.  defaulting to `text/x-rst`.
Failed
The project's long_description has invalid markup which will not be rendered on PyPI. The following syntax errors were detected:
line 66: Warning: Inline literal start-string without end-string.

I don't get these errors if I built a fresh sdist from the 4.4.0 git tag and run twine on it.

In fact if I compare the extracted contents of the 4.4.0 sdist tarball with the 4.4.0 tag from git I see a lot of differences, including setup.py in the tarball reading README.md instead of README.rst! That would explain the problem: PyPI supports Markdown, but only if you specify long_description_content_type='text/markdown'.

from decorator.

micheles avatar micheles commented on July 4, 2024

This is fixed now. The tarball for version 4.4.0 actually contained old code that was there by mistake.

from decorator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.