pip - Automatic installation of dependencies when publishing Python 3 project on pypi -
i want publish project using pypi. ideally installation be:
sudo pip3 install projectname
the problem is, get:
could not find downloads satisfy requirement itsdangerous (from projectname) insecure , unverifiable files ignored (use --allow-unverified itsdangerous allow).
if firstly install external requirements (itsdangerous , wspy in case), installation completes.
here requirements.txt:
requests>=2.10.0 six>=1.10.0 itsdangerous==0.24 ws4py==0.3.4
and here install_requires setup.py:
install_requires=[ "requests", "six", "ws4py", "itsdangerous" ]
one thing think may cause issue requirements.txt not included in manifest.in, not sure how include it.
i using https://testpypi.python.org/pypi/.
basically, have same issue described in question. not understand accepted answer.
to install
update ~/.config/pip/pip.conf
and/or /etc/pip.conf
.
append test repository --find-links
option:
[install] find-links = https://pypi.python.org/pypi https://testpypi.python.org/pypi
the order important…
see cofiguration topic in documentation.
to register , upload
see testpypi wiki page.
Comments
Post a Comment