fluidattacks / makes

A software supply chain framework powered by Nix.
https://makes.fluidattacks.tech/
MIT License
427 stars 42 forks source link

Infer poetry python version env from toml file #1280

Closed blotero closed 7 months ago

blotero commented 7 months ago

Python version environment is received as first argument in the makePythonLockbuiltin as introduced in #1275. This is however redundant considering that poetry environment version should match the field in thepyproject.toml` file:

[tool.poetry.dependencies]
python = <ENV VERSION>

It would be desirable to infer this field from the pyproject.toml file instead of being passed as an argument.

dsalaza4 commented 7 months ago

Not worth it due to poetry complexity when defining python versions