Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to hatch as a python project tool #30

Open
devraj opened this issue Feb 18, 2024 · 4 comments
Open

Move to hatch as a python project tool #30

devraj opened this issue Feb 18, 2024 · 4 comments
Assignees
Milestone

Comments

@devraj
Copy link
Member

devraj commented Feb 18, 2024

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 devraj self-assigned this Feb 18, 2024
@devraj
Copy link
Member Author

devraj commented Feb 25, 2024

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
Copy link
Member Author

devraj commented Feb 25, 2024

Notes to follow up on post migration:

  • Github action will need to change to use hatch to manage dependencies and run the tests
  • Documentation needs to be updated to reflect how we use hatch in the project
  • Notes around how dependencies are managed when using hatch

devraj added a commit that referenced this issue Feb 25, 2024
this is our first attempt to move package dependencies to hatch with porting
the base package to pyproject.toml, we still have to see how this work swith
alternate configuration for development and packages like our cli, or tui
@devraj
Copy link
Member Author

devraj commented Feb 27, 2024

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 devraj changed the title Move to hatch as a python project manager Move to hatch as a python project tool Mar 27, 2024
@devraj devraj added this to the rc-1 milestone Apr 14, 2024
@devraj
Copy link
Member Author

devraj commented Apr 25, 2024

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

@devraj devraj modified the milestones: rc-1, 1.1.0 Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant