我试着在我造轮子的时候用长_描述打印,它打印得很好。但是当我上传到PyPi时,它没有显示我的详细描述。这是我的设置.py,希望有人能帮忙解决这个问题。在
from setuptools import setup
from codecs import open
from os import path
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='matchmod',
version='1.2.1',
description='Simple Rust-like pattern matching for Python, with some added features',
long_description=long_description,
url='https://github.com/AN3223/rustlike-pattern-matching-for-python',
author='AN3223',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
],
keywords='rust rustlang procedural',
py_modules=['matchmod']
)
编辑:我刚刚意识到我在构建轮子时遇到了这个错误Error while finding module specification for 'setup.py' (AttributeError: module 'setup' has no attribute '__path__')
,不知道该怎么解决这个问题?我试着像yausername建议的那样打开文件,但是仍然得到相同的错误:
目前没有回答
相关问题 更多 >
编程相关推荐