Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pipenv specify minimum version of python in pipfile?

Is there a way in pipenv to specify the minimum version of python in the Pipfile?

Would something like this work?

[requires] python_version = ">=python 3.5" 
like image 515
Jasonca1 Avatar asked Jul 24 '18 07:07

Jasonca1


People also ask

Should Pipfile lock be committed?

When two developers are working on a projet with different operating systems, the Pipfile. lock is different (especially the part inside host-environment-markers ). For Composer, most people recommend to commit composer. lock .

What is Pipfile and Pipfile lock?

The Pipfile. lock is intended to specify, based on the packages present in Pipfile, which specific version of those should be used, avoiding the risks of automatically upgrading packages that depend upon each other and breaking your project dependency tree.

Which Python does Pipenv use?

pipenv install --python 3.8.


1 Answers

No, pipenv does not support this. Per pipenv issue 1050 feature request, the pipenv authors have explicitly chosen not to implement it.

Note that you can specify:

 python_version = "3" 

to allow any version of Python 3. Not exactly what you asked for, but it might be sufficient for some projects.

like image 183
Rob Bednark Avatar answered Oct 09 '22 11:10

Rob Bednark