尝试上传一个包到pypi,除了我的详细描述之外,一切都正常。它是为了通读我的自述文件.rst但在pypi上它是空白的。docutils rst2html没有抛出任何错误,设置.py--长描述打印出我的自述文件,设置.py-检查也不会产生错误。在
https://pypi.python.org/pypi/cryptocli
在设置.py公司名称:
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
with open('README.rst') as f:
readme = f.read()
with open('LICENSE') as f:
license = f.read()
setup(
name='cryptocli',
version='0.1.3',
description='CLI to query cryptocurrency value',
long_description=readme,
author='huwwp',
author_email='hpigott@gmail.com',
url='https://github.com/huwwp/cryptocli',
license=license,
keywords='crypto cli query cryptocurrency bitcoin',
packages=find_packages(exclude=('tests', 'docs')),
install_requires=['requests'],
py_modules=['cryptocli'],
entry_points = {
'console_scripts': ['cryptocli = cryptocli:main'],
}
)
在自述文件.rst公司名称:
^{pr2}$
license
参数用于提供正在使用的软件许可证的名称(例如,'MIT'
或{PKG-INFO
文件如下所示:setuptools未能缩进许可证文本会导致
PKG-INFO
的所有后续字段(包括长描述和关键字)都无法解析,因此它们不会出现在PyPI上。你应该把license='MIT'
写在你的setup.py
中。在{{cd8>文件中没有{cd8>,除非你的文件{cd8}不在,否则你的cd8}不会自动包含在你的cd8}中在
相关问题 更多 >
编程相关推荐