python将包添加到pip中

时间:2013-11-30 21:35:25

标签: python install package pip

我正在尝试将我的包添加到python包索引中。

我将包注册到Python包索引中。

在我的仓库中添加了一个MANIFEST.in:

include README.rst
include MANIFEST.in
include CHANGELOG.rst
include LICENSE
include requirements.txt
include requirements-test.txt
include setup.py
recursive-include mypackagename *

和setup.py文件:

import os
from setuptools import setup

install_requires = ["requests"]

base_dir = os.path.dirname(os.path.abspath(__file__))

setup(
    name = "mypackagename",
    version = "0.0.5.dev",
    description = "My Description",
    long_description="\n\n".join([
        open(os.path.join(base_dir, "README.rst"), "r").read(),
        open(os.path.join(base_dir, "CHANGELOG.rst"), "r").read()
    ]),
    url = "https://github.com/myaccount/mypackagename",
    author = "My Name",
    author_email = "my@email.com",
    packages = ["mypackagename"],
    zip_safe = False,
    install_requires = install_requires,
    test_suite = "tests.get_tests",
)

但是当我这样做时:pip install mypackagename

显示此错误:

  

下载/解压缩mypackagename无法找到任何下载

     

满足要求mypackagename清理......否

     找到mypackagename的所有发行版

0 个答案:

没有答案