리그캣의 개발놀이터

[pypi] pip upload "HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information. for url: https://upload.pypi.org/legacy/" error 본문

프로그래밍 언어/Python

[pypi] pip upload "HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information. for url: https://upload.pypi.org/legacy/" error

리그캣 2020. 1. 27. 23:34

"HTTPError: 400 Client Error: The description failed to render in the default format of reStructuredText. See https://pypi.org/help/#description-content-type for more information. for url: https://upload.pypi.org/legacy/
" 와 같은 에러가 났다.

 

https://blessingdev.wordpress.com/2019/05/31/pypi%eb%a1%9c-%ed%8c%a8%ed%82%a4%ec%a7%80-%eb%b0%b0%ed%8f%ac%ed%95%98%ea%b8%b0%eb%82%b4%ea%b0%80-%eb%a7%8c%eb%93%a0-%eb%aa%a8%eb%93%88%eb%8f%84-pip%eb%a1%9c-%eb%8b%a4%ec%9a%b4%eb%b0%9b%ec%9d%84/

 

PyPI로 패키지 배포하기:내가 만든 모듈도 pip로 다운받을 수 있다!

pypi에 내 프로젝트를 올리는 법

blessingdev.wordpress.com

위의 내용을 참고하여 pypi를 통해 pip module을 업로드하고 있었다.

알아보니 setup.py에서 문제가 있었고 아래 내용처럼 수정하였다. (굵은글씨 참고)

 

example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import setuptools
 
with open("README.md""r") as fh:
    long_description = fh.read()
 
    name="shholiday",
    version="0.0.1",
    license='MIT',
    author="league3236",
    author_email="league3236@gmail.com",
    description="Check if the current date is a holiday in Korea.",
    long_description=long_description,
    long_description_content_type="text/markdown",
    packages=setuptools.find_packages(),
    classifiers=[
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent"
    ],
    python_requires='>=3.6',
)
http://colorscripter.com/info#e" target="_blank" style="color:#e5e5e5text-decoration:none">Colored by Color Scripter
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none;color:white">cs

 

long_description_content_type이 설정이 안되어있엇나부다

이로인해 업로드시 문제가없었다. 다행이다...

Comments