| 29 Dec 2024 |
| 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 |
laauurraa | You are absolutely right! | 16:10:44 |