我想我值寄存器PyPI上的包,用下面的命令:PyPI將服務器響應500
pyton setup.py register
但它會導致以下錯誤:
Server response (500): <urlopen error [Errno -2] Name or service not known>
我甚至刪除了〜 /.pypirc文件,並再次嘗試發出該命令,但也會導致相同的錯誤。我的setup.py腳本如下:
from setuptools import setup
from setuptools import find_packages
setup(
name="xxxxx",
version="0.0.1",
author="someone",
author_email="[email protected]",
url="https://github.com/someone",
packages=['folder_name',],
license="MIT License",
description = " Sample Description",
long_description = open("README").read(),
install_requires = ["python-mwapi"],
)