| 15 Dec 2024 |
@perchun:matrix.org | * and how do i fix the error? | 03:13:43 |
adisbladis | Possible workarounds:
- Override uvicorn to add the expected attributes
- Add fastapi-cli to your project
| 04:27:44 |
| adisbladis changed the room topic to "https://github.com/nix-community/poetry2nix | Poetry2nix is unmaintained https://github.com/nix-community/poetry2nix/issues/1865" from "https://github.com/nix-community/poetry2nix". | 04:28:10 |
| 16 Dec 2024 |
| @lenny:flipdot.org left the room. | 19:38:55 |
| 19 Dec 2024 |
| @collinarnett:matrix.org left the room. | 14:47:23 |
| 20 Dec 2024 |
| Oliver Bläse changed their display name from Oliver Bläse to Oliver Bläse (zwarimurlaubaberhatdie chatszustarkimaltagintigriert). | 12:51:30 |
| Oliver Bläse changed their display name from Oliver Bläse (zwarimurlaubaberhatdie chatszustarkimaltagintigriert) to Oliver Bläse (zwarimurlaubaberhatdie chatszustarkimaltagintegriert). | 13:24:02 |
| Oliver Bläse changed their display name from Oliver Bläse (zwarimurlaubaberhatdie chatszustarkimaltagintegriert) to Oliver Bläse (zwarimurlaubaberhatdiechatszustarkimaltagintegriert). | 13:29:33 |
| 21 Dec 2024 |
| elikoga joined the room. | 17:08:39 |
elikoga | In reply to @adis:blad.is You have a uvicorn derivation created by poetry2nix & a fastapi-cli derivation from nixpkgs. Derivations generated by poetry2nix doesn't have passthru.optional-dependencies because poetry2nix predates it. Do I understand correctly that if we pass through optional-dependencies in poetry2nix it'd work? | 17:09:51 |
elikoga | overrides = poetry2nix.overrides.withDefaults (self: super: {
fastapi-cli = python312.pkgs.fastapi-cli;
bcrypt = python312.pkgs.bcrypt;
});
Seems to work for me
| 17:21:13 |
| 23 Dec 2024 |
adisbladis | It might work in your particular case, but is conceptually broken and will result in collisions because of dependency propagation | 02:53:22 |
| 26 Dec 2024 |
| elikoga changed their display name from elikoga to elikoga (@38c3 📞448{0,1}. | 15:21:51 |
| elikoga changed their display name from elikoga (@38c3 📞448{0,1} to elikoga (@38c3 📞448{0,1}). | 15:26:05 |
| elikoga changed their display name from elikoga (@38c3 📞448{0,1}) to elikoga (@38c3 📞488{0,1}). | 15:26:47 |
| @phaer:matrix.org changed their display name from phaer to phaer (8650 at 38c3). | 17:41:26 |
| 27 Dec 2024 |
| kdn changed their display name from nazarewk to kdn. | 12:37:21 |
| 28 Dec 2024 |
| matthewcroughan changed their display name from matthewcroughan to matthewcroughan (DECT: 56490). | 19:53:36 |
| 29 Dec 2024 |
| elikoga changed their display name from elikoga (@38c3 📞488{0,1}) to elikoga (@38c3 📞488{0,1,9}). | 11:03:14 |
| laauurraa joined the room. | 16:03:00 |
laauurraa | HI! <3 | 16:03:55 |
laauurraa | Is it possible to create a poetry application that picks a different starting script from tool.poetry.scripts in pyproject.toml? | 16:04:34 |
laauurraa | I'm not sure how the "right" script is chosen in the first place.
I have this now:
[tool.poetry.scripts] remarks = 'remarks.main:main' remarks-server = "server:main"
| 16:04:56 |
laauurraa | And if I build with
poetryConfig = {
projectDir = ./.;
python = pkgs.python310;
preferWheels = true;
overrides = defaultPoetryOverrides.extend (final: prev: {
click = prev.click.overridePythonAttrs (old: {
buildInputs = (old.buildInputs or [ ]) ++ [ prev.flit-scm ];
});
});
# Optional overrides if needed:
# overrides = poetry2nix.overrides.withDefaults (final: prev: { });
};
remarksBin = mkPoetryApplication poetryConfig;
remarksServer = mkPoetryApplication (poetryConfig // {
extras = [ "server" ];
});
| 16:05:25 |
laauurraa | I get the remarks script, but not the remarks-server | 16:05:40 |
laauurraa | * I'm not sure how the "right" script is chosen in the first place.
I have this now:
[tool.poetry.scripts]
remarks = 'remarks.__main__:main'
remarks-server = "server:main" | 16:06:02 |
laauurraa | is it even possible to specify what entrypoint you want? Because I can't find it in the documentation | 16:06:17 |
K900 | It should create all the entrypoints I'm pretty surey? | 16:06:47 |
K900 | * It should create all the entrypoints I'm pretty sure? | 16:06:50 |
laauurraa | Oh woah | 16:08:36 |