Skip to content

Migrate Dependency Management from pip to Poetry #321

Open
@nanotaboada

Description

@nanotaboada

Description

Currently, the project uses pip with requirements.txt for dependency management. To improve maintainability, dependency resolution, and support multiple environments, we should migrate to Poetry and manage dependencies using pyproject.toml.

This migration will:

  • Enable better version pinning and dependency resolution.
  • Simplify virtual environment management.
  • Provide built-in support for dependency groups (e.g., dev, lint, test).

Acceptance Criteria

  • Remove requirements.txt, requirements-lint.txt, and requirements-test.txt.
  • Initialize pyproject.toml with Poetry.
  • Define dependencies in [tool.poetry.dependencies].
  • Define test and lint dependencies in [tool.poetry.group.*.dependencies].
  • Ensure dependencies are correctly installed with poetry install.
  • Update CI workflow to use poetry install instead of pip install -r requirements.txt.
  • Verify FastAPI app runs successfully with Poetry.
  • Update README.md with new installation instructions.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpythonPull requests that update Python code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions