No python version argument in makePythonLock #1275

Closed
opened 2024-01-22 23:06:33 +01:00 by blotero · 0 comments
blotero commented 2024-01-22 23:06:33 +01:00 (Migrated from github.com)

Poetry offers a way to set the python environment version through poetry env use <python_version>.

Currently, when running makePythonLock on a project.toml which looks like:

[tool.poetry.dependencies]
python = "^3.12"

Will produce the following output:

[INFO] Generating poetry.lock
The currently activated Python version 3.11.6 is not supported by the project (^3.12).
Trying to find and use a compatible version.

Poetry was unable to find a compatible version. If you have one, you can explicitly use it via the "env use" command.

An additional python version argument is required in this builtin for letting poetry to know this detail.

Poetry offers a way to set the python environment version through `poetry env use <python_version>`. Currently, when running `makePythonLock` on a `project.toml` which looks like: ``` [tool.poetry.dependencies] python = "^3.12" ``` Will produce the following output: ``` [INFO] Generating poetry.lock The currently activated Python version 3.11.6 is not supported by the project (^3.12). Trying to find and use a compatible version. Poetry was unable to find a compatible version. If you have one, you can explicitly use it via the "env use" command. ``` An additional python version argument is required in this builtin for letting poetry to know this detail.
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
justin/makes#1275
No description provided.