!rWxyQqNqMUDLECdsIf:blad.is

Poetry2nix

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

Load older messages


SenderMessageTime
7 Nov 2023
@k900:0upti.meK900That's probably just broken with latest poetry20:27:05
@fractivore:cyberia.club@fractivore:cyberia.clubIt looks similar, but fails with exit code 1 rather than 2, and it appears to be the main project builder20:27:13
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @k900:0upti.me
That's probably just broken with latest poetry
Should I pin to an earlier poetry version then? Can I do that with the flake?
20:27:47
@k900:0upti.meK900I'd probably try to get rid of the dependency20:27:59
@k900:0upti.meK900Yep20:28:40
@k900:0upti.meK900https://github.com/mtkennerly/poetry-dynamic-versioning/releases20:28:40
@k900:0upti.meK900poetry-dynamic-versioning 0.21.5 is broken with latest poetry20:28:49
@k900:0upti.meK900You should try and track down where it comes form20:29:01
@k900:0upti.meK900* You should try and track down where it comes from20:29:09
@k900:0upti.meK900And see if you can patch it out20:29:12
@k900:0upti.meK900Actually it's a direct dependency20:29:28
@k900:0upti.meK900 So you can try just poetry-dynamic-versioning = null; 20:29:36
@k900:0upti.meK900So it just doesn't get built at all20:29:41
@fractivore:cyberia.club@fractivore:cyberia.club
In reply to @k900:0upti.me
So you can try just poetry-dynamic-versioning = null;

Where would I put that line? I tried

            overrides = defaultPoetryOverrides.extend
            (self: super: {
              poetry-dynamic-versioning = null;

20:36:29
@k900:0upti.meK900Yes, there20:36:38
@fractivore:cyberia.club@fractivore:cyberia.club

But now I just get

       last 10 log lines:
       >   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1126, in _find_and_load_unlocked
       >   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
       >   File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
       >   File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
       >   File "<frozen importlib._bootstrap>", line 1140, in _find_and_load_unlocked
       > ModuleNotFoundError: No module named 'poetry_dynamic_versioning'
       >
       > ERROR Backend 'poetry_dynamic_versioning.backend' is not available.
20:36:54
@k900:0upti.meK900Oh20:37:47
@k900:0upti.meK900 In pyproject.toml replace

[build-system]
requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning"]
build-backend = "poetry_dynamic_versioning.backend"

with

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
20:38:14
@fractivore:cyberia.club@fractivore:cyberia.clubIt's building! I collected garbage after I edited the pyproject.toml file, maybe I didn't really need to do that. I'm gonna munch some more pasta while it builds.20:44:52
@fractivore:cyberia.club@fractivore:cyberia.clubyay it built! My first real derivation! 😄20:51:07
@fractivore:cyberia.club@fractivore:cyberia.clubNow what do I do lol20:51:18
@k900:0upti.meK900I dunno20:51:46
@k900:0upti.meK900Run it?20:51:49
@k900:0upti.meK900Whatever you were trying to do in the first place20:51:56
@fractivore:cyberia.club@fractivore:cyberia.clubShould I contribute it to nixpkgs or something? poetry2nix said something about pushing changes upstream20:52:49
@fractivore:cyberia.club@fractivore:cyberia.clubI'm pretty new to making open source contributions20:52:57
@k900:0upti.meK900You should contribute the overrides that worked for you20:54:51
@k900:0upti.meK900But putting the whole thing into nixpkgs will require a different build process20:55:03
@k900:0upti.meK900The current policy with Python packages in nixpkgs is to not use tools like poetry2nix, but use nixpkgs packages directly20:55:32
@fractivore:cyberia.club@fractivore:cyberia.clubOh, okay, I guess I'll just pull the build-systems.json file where it says to put the overrides in the edgecases.md file20:57:15

Show newer messages


Back to Room ListRoom Version: 6