-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
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.txtto the repo and utilise something likepip 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 pydanticwould look at currently installed versions of packages and add the necessary version constraint to theproject.dependenciesofpyproject.tomlfile) - If the above is adopted, introduce lockfile (e.g. poetry.lock) automatically generated by the tool (as opposed to the
requirements.txtapproach).
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
Labels
No labels