为什么是设置.py当我尝试向pypi注册时失败了?

2024-06-02 08:25:57 发布

您现在位置:Python中文网/ 问答频道 /正文

我在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文件的结构如下:

^{pr2}$

还有我的设置.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文件。在


Tags: 文件infrompycomsetupdescription结构