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"
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"
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.
As other answers explain, this is not supported in Pipenv and is never going to be supported by decision of the maintainers.
Instead, you can use Poetry, which does not have such an attitude and does not have any problem with specifying an arbitrary version range for supported Python versions.