!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

326 Members
https://github.com/nix-community/poetry2nix62 Servers

Load older messages


SenderMessageTime
22 Jan 2022
@adis:blad.isadisbladis Something that would be extremely welcome is to document these kind of things. 08:39:15
@mou_bugtracker:matrix.orgmouI understand. Python ecosystem is such chaos (( Every tool which decides to fix all issues will be buried in routine and exceptions ( If i come up with solution for my case, i'll definitly contribute it back in form of documentation08:40:10
@adis:blad.isadisbladis<308:40:35
@adis:blad.isadisbladis For all it's minor issues I still think Poetry is by far the best thing to happen to Python in a very long time 08:40:56
@mou_bugtracker:matrix.orgmouIndeed. I found poetry too late ) And was shocked about how long it already existed and i did not even heard of it. 08:42:26
@mou_bugtracker:matrix.orgmouI did it. Look like now i'm a little closer to understanding of poetry2nix override layers)08:55:33
@mou_bugtracker:matrix.orgmou adisbladis: what do you think of creating a document like Troubleshooting with structure like Error message or log tail to match -> description of problem -> possible typical solution? Maybe it could reduce amount of similar questions asked 08:57:35
@adis:blad.isadisbladis
In reply to @mou_bugtracker:matrix.org
adisbladis: what do you think of creating a document like Troubleshooting with structure like Error message or log tail to match -> description of problem -> possible typical solution? Maybe it could reduce amount of similar questions asked
I've been thinking about something similar. But I never get around to writing docs myself.
08:58:07
@adis:blad.isadisbladisI think it'd be great!08:58:14
@k900:0upti.meK900Another random convenience idea I just got09:00:48
@k900:0upti.meK900Make it possible to override build-systems.json09:01:03
@k900:0upti.meK900Just to save on some typing 09:01:08
@mou_bugtracker:matrix.orgmouI could try to write first version in upcoming days, hope community will help to fix language issues, because my english is more like pidgin and have many grammar issues.09:01:12
@k900:0upti.meK900 Something like buildSystemOverrides = { aiosqlite = "flit" } 09:01:42
@adis:blad.isadisbladis
In reply to @mou_bugtracker:matrix.org
I could try to write first version in upcoming days, hope community will help to fix language issues, because my english is more like pidgin and have many grammar issues.
Don't let that stop you :) I'm happy to nit on some English spelling.
09:01:57
@k900:0upti.meK900Could potentially allow for better special case handling for weird build systems too 09:02:21
@adis:blad.isadisbladis K900: That could easily be generalised, it doesn't have to be just build systems 09:03:09
@adis:blad.isadisbladisI like the much higher level interface :)09:03:17
@k900:0upti.meK900Yeah but ideally you'd want to not have it at all 09:03:26
@k900:0upti.meK900¯\_(ツ)_/¯09:03:29
@mou_bugtracker:matrix.orgmou I agree with adisbladis . The more poetry2nix will be used the more various exception will be found. Too many attributes will be added this way. Python ecosystem has too many legacy and surprises (( K900 Maybe what you suggested could be implemented with function over overrides.withDefaults . 09:07:01
@adis:blad.isadisbladis
In reply to @k900:0upti.me
Yeah but ideally you'd want to not have it at all
We're always going to have overrides for native deps, so as long as the interface is generic I think it's a really nice addition
09:07:15
@mou_bugtracker:matrix.orgmou something like
overrides = poetry2nix.buildSystemOverrides { aiosqlite = "flit" }
09:08:23
@k900:0upti.meK900Mostly I just want to avoid it getting to a point where it's easier to add overrides than it is to fix things upstream 09:09:14
@mou_bugtracker:matrix.orgmoubut upstreams are python packages09:09:43
@mou_bugtracker:matrix.orgmoupoetry for example. It's really difficult to propose changes to product used by hundred thousands09:10:36
@mou_bugtracker:matrix.orgmouPR mentioned above in poetry is still did not accepted (09:11:24
@adis:blad.isadisbladis There is a very little documented interface that is' a lot better than withDefaults, namely poetry2nix.defaultPoetryOverrides.extend:
(poetry2nix.defaultPoetryOverrides.extend (self: super: {})).extend(self: super: {})
09:11:27
@adis:blad.isadisbladisIt actually composes nicely09:12:37
@adis:blad.isadisbladisI'm thinking that might be a decent foundation09:12:48

Show newer messages


Back to Room ListRoom Version: 6