Сделал по мануалу setup.py, зарегался на pypi.python.org, зааплоадил туда PKG_INFO, но когда делаю python setup.py register, то получаю в ответ:
running register
running check
Registering dfclean to https://upload.pypi.org/legacy/
Server response (500): <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:720)>
В чем проблема?
from distutils.core import setup
with open('README.md') as file:
long_description = file.read()
setup(
name='dfclean',
version='0.0.0.1',
packages=['dfclean'],
url='https://gitlab.com/panter_dsd/distfilescleaner',
license='GPLv3',
author='PanteR',
author_email='panter.dsd@gmail.com',
description='Clean up old distfiles in Gentoo',
long_description=long_description,
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 4.6',
]
)
cat ~/.pypirc
[distutils]
index-servers = pypi
[pypi]
repository=https://pypi.python.org/pypi
username=panter_dsd
password=*********
[server-login]
username:panter_dsd
password:*********
OS: gentoo
Python: 3.5, 3.6
Еще почему-то не могу twine установить через pip, выдает:
sudo pip install twine
ERROR: (Gentoo) Please run pip with the --user option to avoid breaking python-exec
Гугл не помог.