Skip to content

Move build system from poetry to hatch#354

Merged
C4ptainCrunch merged 3 commits intomainfrom
hatch
Jul 19, 2022
Merged

Move build system from poetry to hatch#354
C4ptainCrunch merged 3 commits intomainfrom
hatch

Conversation

@N-Coder
Copy link
Copy Markdown
Member

@N-Coder N-Coder commented Jul 10, 2022

It seems that hatch is about to be PyPA's successor to setuptools and in my experience with other projects it's so much nicer to use (and esp. less-opinionated) than Poetry, so here's a PR for moving to it. The pyproject.toml file now looks a lot cleaner and also follows the corresponding PEPs more closely. You shouldn'y actually notice this change much (except if you are directly invoking poetry) as pip install, python -m build, tox,... nicely abstract across the build backend and automatically use the correct one.

  • project and dependency declaration is now according to the standard
  • optional-dependencies are declared nicely (including pinned tox versions for flake8 and mypy)
  • upper version caps preferred by poetry have been removed (see also here)
  • removed lock file which we don't need

Also fixes #352.

- project and dependency declaration is now according to the standard
- optional-dependencies are declared nicely (including pinned tox versions for flake8 and mypy)
- upper version caps preferred by poetry have been removed
- removed lock file which we don't need
Copy link
Copy Markdown
Member

@C4ptainCrunch C4ptainCrunch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a hard time following all the new packaging developments in Python right now (i already did not grasp poetry fully) so i trust you on this. Thank you for taking the time to modernise our setup 🚀

(Small detail before merging, don't forget to update the contributing docs ;) )

@strobeflash
Copy link
Copy Markdown
Contributor

(Small detail before merging, don't forget to update the contributing docs ;) )

See #357, does that fit the bill?

strobeflash and others added 2 commits July 19, 2022 12:36
Co-authored-by: 0xC4 <nikita.marchant@gmail.com>
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 this pull request may close these issues.

3 participants