Feature: Populate python_full_version instead of python_version in Pipfile when full python version is specified in "--python" arg #5345
Labels
Contributor Candidate
The issue has been identified/triaged and contributions are welcomed/encouraged.
hacktoberfest
Type: Enhancement 💡
This is a feature or enhancement request.
I verified that I am using the latest version of pipenv at the time of writing (
2022.9.8
).Is your feature request related to a problem? Please describe.
Not related to a problem, just observed a behavior I find odd given current functionality of pipenv. When creating a virtual environment, specifying a full python version (e.g.,
pipenv install --python 3.10.4
) generates a Pipfile withpython_version = "3.10"
. Given that pipenv supports apython_full_version
key in the [requires] table, it seems odd to me that it doesn't use the full version field when a full python version is specified. Instead, it only uses thepython_version
field and specifies the feature release (e.g.,3.10
).Describe the solution you'd like
When using a full python version qualifier in the
pipenv install
command (e.g.,pipenv install --python 3.10.4
), the resulting Pipfile will use thepython_full_version
field instead:If the full version is not specified, the current expected behavior should apply:
Describe alternatives you've considered
An obvious workaround is to manually fill out the field, but if others agree with me, I believe this behavior should happen automatically.
The text was updated successfully, but these errors were encountered: