Twine verwendet standardmäßig „long_description_content_type“ auf text/x-rstPython

Python-Programme
Anonymous
 Twine verwendet standardmäßig „long_description_content_type“ auf text/x-rst

Post by Anonymous »

Hier ist mein Setup

Code: Select all

setup(
name="`...",
version="...",
description=...,
long_description_content_type="text/markdown",
long_description=README,
author="...",

classifiers=[...],

packages=["..."],
include_package_data=True,
)
Ich habe den folgenden Befehl verwendet, um mein Projekt zu packen

Code: Select all

python setup.py sdist bdist_wheel
aber wenn ich renne

Code: Select all

twine check dist/*
Ich erhalte die folgende Fehlermeldung

Code: Select all

Checking dist\Futshane_TBG-1.0.0-py3-none-any.whl: FAILED
`long_description` has syntax errors in markup and would not be rendered on PyPI.
line 9: Error: Unexpected indentation.
warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
Checking dist\Futshane_TBG-1.0.0.tar.gz: FAILED
`long_description` has syntax errors in markup and would not be rendered on PyPI.
line 9: Error: Unexpected indentation.
warning: `long_description_content_type` missing. defaulting to `text/x-rst`.
Warum kann der angegebene Typ nicht identifiziert werden, wenn ich offensichtlich einen angegeben habe?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post