anomaly / gallagher

The missing toolkit for extending Gallagher Command Centre, featuring a CLI, SQL interface, TUI and a Python idiomatic SDK
https://anomaly.github.io/gallagher/
MIT License
11 stars 2 forks source link

Move to `hatch` as a python project tool #30

Open devraj opened 6 months ago

devraj commented 6 months ago

I've been tracking if poetry is suitable for our projects (specially as it comes to managing libraries) - don't get me wrong poetry does wonders.

This is based on the analysis of what some of our major library vendors are using, and where the ecosystem is going in terms of a PEP665 compliant tool.

I have decided to move our projects to hatch and this is a ticket to move this project (first amongst anomaly projects) to hatch.

Note that we should produce substantial documentation on how we moved from poetry to hatch.

See also:

devraj commented 6 months ago

Seeing that hatch can run commands and manage the environments, we might not actually need our Taskfile anymore.

I will investigate this further, document it and then make a decision based on what I am able to automate.

devraj commented 6 months ago

Notes to follow up on post migration:

devraj commented 6 months ago

Leaving a note her that hatch does not support lock files at the moment and package dependency management is still done by editing pyproject.tom (or from what I can see anyway).

Studying the venn diagram and watching @zotroneneis's presentation, peotry may still be our most viable option for now (apart from it missing managing version numbers)

devraj commented 4 months ago

See comment on anomaly/lab-python-server by @juftin highlighting pip-compile