!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

318 Members
https://github.com/nix-community/poetry2nix63 Servers

Load older messages


SenderMessageTime
17 Apr 2024
@k900:0upti.meK900 changed their display name from K9Ö0 to K900.17:21:55
@k900:0upti.meK900 17:21:55
@vengmark2:matrix.orgl0b0 How to fix an "unknown location" import error from cryptography.hazmat.bindings._rust.x509? 22:15:23
@vengmark2:matrix.orgl0b0 * How to fix an "unknown location" import error from cryptography.hazmat.bindings._rust.x509? Looks like it might be related to poetryPackages = poetry2nix.mkPoetryPackages {python = pkgs.python310; …}; poetryPackages.python.withPackages (ps: poetryPackages.poetryPackages) ending up with a cryptography library linked to Python 3.11. 22:18:54
@vengmark2:matrix.orgl0b0 Crap, looks like pkgs.awscli2 is overriding something. How can I avoid that? 22:30:53
@vengmark2:matrix.orgl0b0 Filed issue. 22:43:21
18 Apr 2024
@fractivore:cyberia.club@fractivore:cyberia.club left the room.02:25:46
19 Apr 2024
@nirudium:matrix.orgnirudiumHow could I use pypy with a poetry2nix flake? 23:32:38
20 Apr 2024
@rolandco:matrix.orgRoland Coeurjoly joined the room.14:50:15
@rolandco:matrix.orgRoland Coeurjoly
In reply to @vengmark2:matrix.org
  1. Absolutely. There are far too many packages for any individual to keep track of all the non-Python dependencies and missing dependencies.
  2. Generally, yes, but if that's too much work simply having the dependencies at all is better than not having them.
  3. If you can, that would be great. Splitting your work into multiple PRs would be appreciated, though, since the difficulty of reviewing scales by something like O(N²) for N lines.

Questions about buildSystem:

"urllib3": [
"setuptools",
{
"buildSystem": "flit-core",
"until": "2.0.2"
},
{
"buildSystem": "hatchling",
"from": "2.0.2"
}
],

15:22:51
@rolandco:matrix.orgRoland Coeurjoly
In reply to @vengmark2:matrix.org
  1. Absolutely. There are far too many packages for any individual to keep track of all the non-Python dependencies and missing dependencies.
  2. Generally, yes, but if that's too much work simply having the dependencies at all is better than not having them.
  3. If you can, that would be great. Splitting your work into multiple PRs would be appreciated, though, since the difficulty of reviewing scales by something like O(N²) for N lines.
* Questions about buildSystem:
Given the following:
"urllib3": [
"setuptools",
{
"buildSystem": "flit-core",
"until": "2.0.2"
},
{
"buildSystem": "hatchling",
"from": "2.0.2"
}
],
15:23:12
@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.orgmalteneuss joined the room.06:20:57
@malteneuss:matrix.orgmalteneuss 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

Show newer messages


Back to Room ListRoom Version: 6