hatch icon indicating copy to clipboard operation
hatch copied to clipboard

Question about all this stuff (hatch, pyproject.toml, pipenv).

Open startakovsky opened this issue 1 year ago • 3 comments

I have a standard python repository and it has is a setup.py. I can install it the typical way with venv, but I want to use this pypa tooling described above.

I know the hatch new --init creates a pyproject.toml file. What do I do now? I could create a pipfile or I could create a hatch env. I rely on pyenv to install python versions.

Is there a blog post or some documentation provided by pypa that addresses how one should go about working with and thinking about these tools?

startakovsky avatar Jun 13 '23 20:06 startakovsky

The Python Packaging User Guide will have all the info you'll want.

Unless you are dealing with managing dependencies outside of Python (in which case moving entirely to the conda ecosystem might help), I personally have been a fan of installing each Python minor version separately and then using Hatch as my only packaging tool.

YMMV but I try to avoid to any of the other libraries that do too much of their own things and have been a huge fan of Hatch for sticking to specifications in PEPs

jamesdow21 avatar Jul 17 '23 01:07 jamesdow21

Thanks, I will give this a shot

startakovsky avatar Jul 27 '23 08:07 startakovsky

You can have a look at this demo projects for examples about how to use pyproject.toml. https://codeberg.org/buhtz/tech-demo-python-packaging

buhtz avatar Dec 29 '23 14:12 buhtz