Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect python version in pipenv #3

Open
rarkins opened this issue Mar 14, 2023 · 0 comments
Open

Detect python version in pipenv #3

rarkins opened this issue Mar 14, 2023 · 0 comments

Comments

@rarkins
Copy link
Member

rarkins commented Mar 14, 2023

Read Pipfile and as per https://pipenv-fork.readthedocs.io/en/latest/basics.html:

Specify your target Python version in your Pipfile’s [requires] section. Ideally, you should only have one target Python version, as this is a deployment tool. python_version should be in the format X.Y and python_full_version should be in X.Y.Z format.

When the format is X.Y, we need to decide between:

  1. Appending .0 to it, or
  2. Shipping with a hardcoded default for each minor stream (e.g. 3.7 -> 3.7.16), or
  3. Dynamically looking up all available versions

(1) risks being too old. (2) may be a pragmatic trade-off between speed and accuracy. (3) ensures we always get the latest, but is slower/more error prone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant