当我尝试上传我的软件包的新版本时,我遇到以下错误:
$ python setup.py sdist upload
...
...
...
Submitting dist/django-super-favicon-0.6.0.tar.gz to https://pypi.python.org/pypi
Upload failed (400): Invalid URI: u'UNKNOWN'
error: Upload failed (400): Invalid URI: u'UNKNOWN'
我的存储库中唯一有UNKNOWN
的地方是我的鸡蛋信息,由上面的命令创建:
$ grep -r UNKNOWN
django_super_favicon.egg-info/PKG-INFO:Platform: UNKNOWN
我的setup.py
非常简单,可以使用之前的上传而无需更改:
#!/usr/bin/env python
from setuptools import setup, find_packages
import favicon
def read_file(name):
with open(name) as fd:
return fd.read()
setup(
name='django-super-favicon',
version=favicon.__version__,
description=favicon.__doc__,
long_description=read_file('README.rst'),
author=favicon.__author__,
author_email=favicon.__email__,
install_requires=read_file('requirements.txt'),
license='BSD',
url=favicon.__url__,
keywords=['django', 'web', 'favicon', 'html'],
packages=find_packages(exclude=[]),
include_package_data=True,
test_suite='runtests.main',
tests_require=read_file('requirements-tests.txt'),
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Environment :: Console',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 3',
],
)
是否有人已经遇到此错误并进行修复?
答案 0 :(得分:1)
我认为pypi可能有问题 - 我刚刚经历过同样的事情,我似乎无法通过网站登录到用户的pypi。