Closed kkom closed 4 years ago
Hi there, I believe the correct format for VCS dependency would be install_requires=['aiogremlin @ git+...
. Additionally the use of git+git
is discouraged because of security reasons (8f0dbec5734c5197c3b7070987814b584e3f31a6), for GitHub it's recommended to use git+https
instead. Hopefully this solves the problem for you.
Thanks @McSinyx, this solved it!
And yes - good point about the security gains from using https
!
Actually, your solution also solves my problem on the other issue: https://github.com/jazzband/pip-tools/issues/1111
Triple win! Thanks @McSinyx!
Environment
Description
I want to use a VCS requirement specifier in the
'install_requires'
section of asetup.py
file, such asgit+git://github.com/...
.python setup.py install --user
fails with this error message:Expected behavior
I would expect the installation to succeed and install a dependency exactly as specified in
setup.py
.How to Reproduce
Use this
setup.py
file from https://github.com/kkom/goblin/blob/4d112b95dfd2374363b4617b08d3f0689957ea73/setup.py :Output
Extra notes
I am aware that pinning dependencies so precisely in
'install_requires'
is a complete antipattern.I am doing it only because I'm fixing a blocking bug in
aiogremlin
, which is a dependency ofgoblin
- a package that I'm using in my program.I'm also trying to solve this problem in a different way, if you're interested: https://github.com/jazzband/pip-tools/issues/1111