!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
20 Apr 2024
@rolandco:matrix.orgRoland Coeurjoly *

Questions about buildSystem:
Given the following:
"urllib3": [
"setuptools",
{
"buildSystem": "flit-core",
"until": "2.0.2"
},
{
"buildSystem": "hatchling",
"from": "2.0.2"
}
],

If I build 2.0.2, does it pull setuptools too?

15:23:51
@k900:0upti.meK900Yes15:25:18
@k900:0upti.meK900It needs to be set with until and/or from to be conditional15:25:28
@rolandco:matrix.orgRoland Coeurjoly
In reply to @k900:0upti.me
It needs to be set with until and/or from to be conditional

Thanks.
Also, if I have

"my_package": [
{
"buildSystem": "flit-core",
"from": "2.0.1"
},
{
"buildSystem": "hatchling",
"from": "2.0.2"
}
],

If I build 2.0.2, does it pull flit-core?

15:30:46
@k900:0upti.meK900Yes15:31:04
@k900:0upti.meK900None of those are exclusive15:31:09
@k900:0upti.meK900Every item is checked completely separately15:31:14
@k900:0upti.meK900And added if it applies15:31:17
@rolandco:matrix.orgRoland Coeurjolygreat, thank you.16:11:32
@rolandco:matrix.orgRoland CoeurjolyI just pushed a PR fixing one of the failling tests, git-deps16:11:52
@rolandco:matrix.orgRoland Coeurjolythere are now 15 failing tests, from 1616:12:25
21 Apr 2024
@rolandco:matrix.orgRoland CoeurjolyAnd some other PRs too, let me know if there is any question07:42:36
22 Apr 2024
@malteneuss:matrix.org@malteneuss:matrix.org joined the room.06:20:57
@malteneuss:matrix.org@malteneuss:matrix.org Ah i just found this dedicated room. At my company we are trying out Nix with our Python services and a few people are struggling with some areas of poetry2nix. That's why i decided to improve the documentation:
K900
Do you who know i can ping for some documentation improvement MRs for poetry2nix like https://github.com/nix-community/poetry2nix/pull/1600 Maybe you? adisbladis seems to be busy, and i couldn't find any other listed maintainer.
06:23:59
@matthewcroughan:defenestrate.itmatthewcroughanThis should probably get a merge https://github.com/nix-community/poetry2nix/pull/160020:13:57
@matthewcroughan:defenestrate.itmatthewcroughanActually, this code doesn't work in flakes.21:34:36
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/nix-community/poetry2nix/blob/master/vendor/pyproject.nix/fetchers/default.nix#L112-L11621:34:50
@matthewcroughan:defenestrate.itmatthewcroughan
      pathParts = filter ({ prefix, path }: "NETRC" == prefix) nixPath; # deadnix: skip
      netrc_file =
        if (pathParts != [ ])
        then (head pathParts).path
        else "";
21:34:59
@matthewcroughan:defenestrate.itmatthewcroughan netrc_file is always "" because nixPath is always [] in pure-eval 21:35:17
@niklauzg:matrix.org@niklauzg:matrix.org left the room.23:53:48
23 Apr 2024
@gsaurel:laas.frnim65s changed their display name from Guilhem to nim65s.07:52:33
@truh:matrix.orgtruhDoes it need to be that strict in fixed output derivations? Private git repos work too.09:49:56
@malteneuss:matrix.org@malteneuss:matrix.org
In reply to @matthewcroughan:defenestrate.it
netrc_file is always "" because nixPath is always [] in pure-eval

Thanks for the feedback. The Nix flake variant indeed was missing in my PR. I added a few paragraphs how to add env vars to the nix-daemon (i think this is the only working way for flakes). Could you take a look again?

btw, thanks for your awesome talks on Nix for Docker (the main reason my company is willing to try Nix) and for Riscv.

19:55:13
@malteneuss:matrix.org@malteneuss:matrix.org
In reply to @truh:matrix.org
Does it need to be that strict in fixed output derivations? Private git repos work too.
According to my current understanding the correct way is to not let code inside the sandbox fetch things with credentials (due to security concerns) but let nix do that outside of the sandbox. I think there are some special builtins.fetchers that can take care of that. I may take a look at this once our Python backend services run with poetry2nix and Docker.
19:59:28
@matthewcroughan:defenestrate.itmatthewcroughan
In reply to @malteneuss:matrix.org

Thanks for the feedback. The Nix flake variant indeed was missing in my PR. I added a few paragraphs how to add env vars to the nix-daemon (i think this is the only working way for flakes). Could you take a look again?

btw, thanks for your awesome talks on Nix for Docker (the main reason my company is willing to try Nix) and for Riscv.

Thanks!
21:59:21
@matthewcroughan:defenestrate.itmatthewcroughan No, I believe there is no way to pass the NETRC file in, even following your documentation, because poetry2nix has the above bug in it that makes stuff only work via -I which isn't available in pure-eval. 21:59:48
@matthewcroughan:defenestrate.itmatthewcroughanI'm triple checking that here 21:59:55
@matthewcroughan:defenestrate.itmatthewcroughanYeah, fixed it here anyway https://github.com/nix-community/poetry2nix/pull/161222:44:03
25 Apr 2024
@delroth:delroth.net@delroth:delroth.net left the room.14:44:15
@cullenmcd:matrix.orgcullenmcd joined the room.17:41:30

Show newer messages


Back to Room ListRoom Version: 6