我做错了什么pypi缺少“链接”

时间:2013-08-15 14:51:43

标签: python pip setup.py

我正在尝试尝试pypi来发布一些库。所以我从一个简单的项目开始。 我有以下setup.py:

import os
from distutils.core import setup

setup(
    name='event_amd',
    packages = ["event_amd"],
    description='Port for EventEmitter from nodejs',
    version='1.0.7',
    author="Borrey Kim",
    author_email="borrey@gmail.com",
    url="https://bitbucket.org/borreykim/event_amd",
    download_url="https://bitbucket.org/borreykim/event_amd/downloads/event_amd-1.0.6.tar.gz",
    keywords=['events'],
    long_description = """\                                                                                                                                                                                                                   
    This is an initial step to port over EventEmitter of nodejs. This is done with the goal of having libraries that are cross platform so that cross communication is easier, and collected together.                                          
    """
)

我注册了但是:sudo pip install event_amd给了我一个错误: DistributionNotFound:找不到event-amd的发行版 (我不确定event_amd如何变成event-amd?) 此外没有链接(其他项目似乎有): https://pypi.python.org/simple/event_amd/

我想知道我是否在setup.py中做错了什么或可能导致这种情况。

提前致谢。

1 个答案:

答案 0 :(得分:2)

您需要在注册版本后上传源存档:python setup.py register sdist upload