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

Automate versioning and releases #149

Closed
GitRon opened this issue Jan 9, 2024 · 3 comments · Fixed by #152
Closed

Automate versioning and releases #149

GitRon opened this issue Jan 9, 2024 · 3 comments · Fixed by #152
Assignees

Comments

@GitRon
Copy link
Contributor

GitRon commented Jan 9, 2024

Previous ticket: #147


@justinmayer He's a separate ticket so we don't mess around too much in the other one (which is unrelated to the actual task)

@GitRon
Copy link
Contributor Author

GitRon commented Jan 10, 2024

Question: Would it make sense to migrate to flit? I heard it's a newer and better way for package releasing and though I use it in my packages and it works great, I have no real clue about alternatives.

@justinmayer
Copy link
Contributor

These days there are a number of tools related to packaging, often with varying scopes and target use cases. While I have never used Flit, I have experience with other build back-ends such as PDM and Hatch/Hatchling. When it comes to the build process itself, I get the impression that all of these build back-ends perform sufficiently well when used with the Python build package as the build front-end.

I usually reach for tools like PDM / Hatch because they provide more features such as virtual environment handling and dependency management. Moreover, I prefer how they store the canonical version number in pyproject.toml instead of Flit's location inside packagename/__init__.py.

There are many articles out there that talk about how these projects differ from one another. One of the more comprehensive articles concluded that "PDM is really close to the ideal", which aligns with my own assessment as well: https://chriswarrick.com/blog/2023/01/15/how-to-improve-python-packaging/#summary

@GitRon
Copy link
Contributor Author

GitRon commented Jan 10, 2024

Awesome, happy to learn why "your" solution is better than flit 🙂

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

Successfully merging a pull request may close this issue.

2 participants