-
Notifications
You must be signed in to change notification settings - Fork 7
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
Modernise Python packaging #31
Conversation
Hi @chrisjsewell , thanks, both your PRs are very much appreciated. I was about to merge the #29 , which tries to do some of the things you suggest. |
There is also https://github.com/pypa/hatch, but yeh its not the end of the world either way Definitely adding the pre-commit would be great. and yeh for the CLI, the main thing is that there is one 😅 FYI, what triggered this is that I was mocking up how it would look like to use pyfirecrest with aiida: https://github.com/chrisjsewell/pyfirecrest/blob/aiida_mock/firecrest/mock_calc.py Especially getting it to all work with asyncio 😄 |
Just FYI, I have a made a release today with what I have for now but we will try to add your suggestions from your PRs (all three) in the next release. I think they are all good points |
yeh no worries, actually I would strongly recommend moving away from poetry and using one of the python standard packaging tools: https://github.com/pypa/flit, https://github.com/pypa/hatch or https://github.com/pdm-project/pdm/ I was playing around with the new release, and poetry makes the developer experience pretty horrible Also, did you mean to leave the |
Implement https://peps.python.org/pep-0621/ with https://flit.readthedocs.io/
Add https://pre-commit.com/ to run code formatting/linting, and apply https://black.readthedocs.io, https://pycqa.github.io/isort/ and https://github.com/charliermarsh/ruff