pypa / hatch

Modern, extensible Python project management
https://hatch.pypa.io/latest/
MIT License
5.91k stars 294 forks source link

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

Open startakovsky opened 1 year ago

startakovsky commented 1 year ago

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?

jamesdow21 commented 1 year ago

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

startakovsky commented 1 year ago

Thanks, I will give this a shot

buhtz commented 8 months ago

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