-
Notifications
You must be signed in to change notification settings - Fork 137
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
[Bug]: jupyEnv doesn't respect python version from pyproject.toml #478
Comments
Flake.nix:
|
flake.lock in a gist: |
This may be user error... I didn't realize that "^3.9" was equivalent to ">=3.9,<4.0". I'm going to test with ">=3.9,<3.10" to see if I get the correct python version |
I have updated my pyproject.toml to use |
I have struggled with this as well, I think the pinned python version is actually something which is managed outside poetry. The python version bounds are merely there to guide the dependency resolution, possible for multiple supported versions of python. The way I would expect this to work is that in the kernels.nix we actually pin the python version so that dependency resolution is done for that version. What i noticed from working with Python developers professionally is that the workflow on how to use poetry is not very well understood. How poetry2nix / jupyenv interacts with this is not documented from a user perspective from what I could find. I think the documentation would benefit from defining how to use jupyenv in combination with poetry2nix so you can use only the nix toolchain to start a project, generate a pyproject.toml, generate a lock file and later in the life cycle add / remove / update / dependencies purely with nix and nix develop. |
Current Behavior
When I create a kernel from a pyprojet.toml, the python version is ignore, and 3.10 is used as default
Expected Behavior
I expect the kernel to respect pyproject.toml, or alternatively, document that it's not using that part of pyproject.toml
Steps To Reproduce
Config from kernels.nix:
Config from pyproject.toml:
OS
The text was updated successfully, but these errors were encountered: