Skip to content

Duplication of dependencies in pyproject.toml and requirements.txt #301

@Frosty2500

Description

@Frosty2500

We currently maintain both a pyproject.toml and a requirements.txt file in our repository. Both files contain overlapping dependency information, which introduces redundancy and the risk of inconsistencies between them. Our pyproject.toml is actually currently missing many dependencies in requirements.txt.

I have two questions:

Do we need both files? If pyproject.toml serves as the primary source for dependencies, do we still need to maintain a separate requirements.txt file?
What is the best practice for handling dependencies between these two files, particularly in CI pipelines? Should requirements.txt be generated automatically from pyproject.toml to prevent divergence?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementEnhancement of an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions