!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

315 Members
https://github.com/nix-community/poetry2nix60 Servers

Load older messages


SenderMessageTime
26 Mar 2024
@k900:0upti.meK900 Because we can't read pyproject.toml at eval time 10:43:45
@k900:0upti.meK900Well, we can10:43:53
@k900:0upti.meK900But it would then mean we have to fetch the sources of the package at eval time10:44:04
@k900:0upti.meK900 * But it would then mean we have to fetch the sources of the package at eval time10:44:07
@k900:0upti.meK900Which will slow down evaluation massively and is probably a bad idea10:44:16
@gsaurel:laas.frnim65sok, for now we only get metadata from pypi ?10:44:18
@k900:0upti.meK900We don't get metadata from anywhere10:44:58
@k900:0upti.meK900Except poetry2nix itself and nixpkgs10:45:02
@k900:0upti.meK900And the lock file10:45:09
@k900:0upti.meK900 * And the lock file for your project10:45:13
@gsaurel:laas.frnim65soh, the required deps are found in the project currently being processed by poetry2nix, I see, it makes sense, thanks.10:46:43
@gsaurel:laas.frnim65sBut then, second question: as the author of one of the libs I'm using in one of my project (both are separate projects/git repos, in pure python, and packaged with poetry), can I provide a hint with the lib to avoid having to provide an override for it in the projects packaging ?10:48:51
@gsaurel:laas.frnim65s maybe a [tool.poetry.group.poetry2nix.dependencies] poetry-core = "^1" or something similar ? 10:49:49
@gsaurel:laas.frnim65sOr should I simply add all my projects in overrides/build-systems.json ?10:50:46
@k900:0upti.meK900You can add your own overrides in your Nix expression 10:51:22
@gsaurel:laas.frnim65sThis is what I did in a few projects to test poetry2nix, but it quickly adds up to a lot of copy-paste of the same 3 lines x number of libs in every project, which is not super nice to write, see, or maintain, so I was looking for another solution.10:55:54
@k900:0upti.meK900There is not really one currently 10:56:40
@k900:0upti.meK900We could implement an optional, opt-in IFD mode 10:56:54
@k900:0upti.meK900But that has to be optional and someone needs to actually do it 10:57:10
@gsaurel:laas.frnim65sok, now everything is clear, thanks for your answers ! 11:00:43
@goodboy:matrix.org@goodboy:matrix.organyone seen this new project yet?20:26:38
@goodboy:matrix.org@goodboy:matrix.orghttps://github.com/astral-sh/uv20:26:40
@goodboy:matrix.org@goodboy:matrix.orglooks like it also has locking for deps20:27:23
@goodboy:matrix.org@goodboy:matrix.orgwhich i guess would make it possibly compat with nix?20:27:33
@k900:0upti.meK900In theory20:29:31
@k900:0upti.meK900I haven't looked closely at the lockfile format20:29:37
@gsaurel:laas.frnim65sfrom astral, nice !21:12:43
@goodboy:matrix.org@goodboy:matrix.orgyah21:51:00
@goodboy:matrix.org@goodboy:matrix.orghaven't tried it but ma peeps say it lives up to its goals21:51:12
27 Mar 2024
@cloudcomputer:matrix.orgcloudcomputerOne of the really nice things about uv is that it supports locking to lower bounds12:31:32

Show newer messages


Back to Room ListRoom Version: 6