Charlas - Oscar Cortez: Modernizando tu paquete Python con pyproject y hatch

Modernize your Python package with pyproject and Hatch, managing dependencies and metadata with ease. Learn how to create a pyproject file, publish to PyPI, and run tests with this powerful tool.

Key takeaways
  • pyproject.toml is a configuration file for Python projects, similar to requirements.txt.
  • Pyproject allows you to define dependencies, scripts, and other metadata for your project.
  • Hatch is a Python package that helps you manage your project’s dependencies and metadata using pyproject.toml.
  • With Hatch, you can create a pyproject.toml file for your project and use it to manage your dependencies.
  • Hatch also provides a way to publish your project to PyPI using a simple command.
  • You can use Hatch to create a setup.cfg file for your project, which is similar to a setup.py file.
  • Hatch allows you to specify the Python version required by your project in pyproject.toml.
  • Hatch provides a way to run your project’s tests using the pytest framework.
  • Hatch can help you manage your project’s dependencies and avoid conflicts between different versions of the same package.
  • Hatch is a convenient tool for managing your Python project’s metadata and dependencies.