Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify greater than or equal to Git tag in requirements.txt

Tags:

git

python

pip

In my requirements.txt I'd like to specify that I need greater than or equal to a specific version of a Python dependency. I could do this if I wanted the dependency Python package installed from PyPI:

ExamplePackage>=0.2

But what if I want to specify the GitHub URL to install from? I know you can specify an exact tag:

-e git://github.com/my-username/[email protected]

But can I specify a >= instead?

like image 499
mikecharles Avatar asked Jun 05 '15 16:06

mikecharles


1 Answers

Not possible, unfortunately.

See the list of supported git specifications in the official docs, none of which allow for >=

Seems like it would be useful functionality for somebody to add, though

like image 100
Dan O'Huiginn Avatar answered Nov 15 '22 00:11

Dan O'Huiginn