Skip to content

Lockfile introduction / better dependency management #223

@joecrowley-synergy

Description

@joecrowley-synergy

I've encountered once (possibly twice) issues with package updates resulting in failed tests, highlighting compatibility issues (e.g. #220). I would like to have included more restriction on dependency versions and / or lock files introduced to the repo. Options:

  • Add a requirements.txt to the repo and utilise something like pip install -r requirements.txt.
  • Go through dependencies and better define each version constraint manually for each named, especially max versions.
  • Introduce a dependency management tool (e.g. Poetry) and have it define dependency version constraints automatically (e.g. poetry add pydantic would look at currently installed versions of packages and add the necessary version constraint to the project.dependencies of pyproject.toml file)
  • If the above is adopted, introduce lockfile (e.g. poetry.lock) automatically generated by the tool (as opposed to the requirements.txt approach).

Pros:

  • New comers can have some confidence that the versions of packages they are installing for the project are what is being used as reference when going through Getting Started tutorials
  • Bug reviews will (likely) become less shrouded in mystery, eliminating conflicting package issues

Cons:

  • Less flexible
  • Managing updates becomes a new manual, sometimes tedious and soul crushing, task (could be a positive tho).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions