我正在尝试使用以下命令在 PyPi 上注册我的包:
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="someone@gmail.com",
url="https://github.com/someone",
packages=['folder_name',],
license="MIT License",
description = " Sample Description",
long_description = open("README").read(),
install_requires = ["python-mwapi"],
)