Setuptools package requiring permission-unverified git repositories

How to resolve external requirements in my setup.py?

eg:

setup(
    ...
    install_requires=['some_package',]
    dependency_links=['git+ssh://git@gitlab.com/some/repo.git#egg=some_package'],
    ...
)

this fails:

Could not find any downloads that satisfy the requirement some-package in /home/myhome/Envs/some_venv/lib/python2.7/site-packages (from asdf==0.1.0)
Some insecure and unverifiable files were ignored (use --allow-unverified some-package to allow).

add --allow-all-externaland --allow-unverified some-package git+ssh://...to the requirements file .txt and install using pip install -r requirements.txt, it works.

However, I cannot get it to work in setup.py

+4
source share

All Articles