我在PyPI注册我的最新项目时遇到了一些麻烦,我希望你们中的一个能告诉我我做错了什么。在
我的目录结构如下:
Scrappy/
|-- README.md
|-- setup.py
|-- manifest.in
|-- scrappy
| |-- __init__.py
| |-- core.py
| |-- formatters.py
| |-- docopty.py
| |-- gui.py
| |-- scrappy.py
| |-- scrappy.conf
我的manifest.in
文件的结构如下:
还有我的设置.py文件结构如下:
from setuptools import setup
setup(
name='Scrappy',
version='0.2.1 alpha',
author='Blz McBlz',
author_email='xxxx@xxxx.com',
packages=['scrappy'],
include_package_data=True,
install_requires=['guessit', 'tvdb_api', 'ez_setup', 'titlecase', 'hachoir-metadata'],
url='https://github.com/louist87/scrappy',
license='GPL 3.0',
description='Rename video files based on information scraped from thetvdb.com',
keywords=["TVDB", "thetvdb", "rename", "broadcatching", "media"],
long_description=open('README.md').read()
)
可以找到完整的回溯here
我尝试通过lines = open('README.md').read()
在pythonshell中加载README.md
。没有出现错误,文本确实如预期的那样位于lines
变量中。在
编辑:here是有问题的README.md
文件。在
问题是,setuptools要求在long_description字段中使用restructedText,而不是markdown语法。在
相关问题 更多 >
编程相关推荐