Skip to content

Improve requirements management.

Arber X requested to merge arber/unpin-dependencies into master

Description

Improve requirement file management, by introducing new tools, and including none-frozen (requirements..in) and frozen (requirements..txt) requirements.

Workflow

Creating a frozen requirements list from a requirements.*.in file

./manage-deps lock requirement.*.in

Try to upgrade every package in all locked requirements.*.txt files, including requirements.txt.

./manage-deps upgrade-all

Lock the main requirements.in file

./manage-deps lock

Note

For the Gitlab CI, and development purposes, the unlocked requirements.*.in are used. The requirements.txt are only for production purposes.

Changes

  • Add requirement.*.in files.
  • Freeze requirements in requirements.*.txt
  • Manage requirements with pip-compile, with a new dependency pip-tools
  • Add manage-deps a script that allows for simple upgrade/locking of dependencies.

TODO

  • Add shell script for easy management.

Closes #197 (closed)

Edited by Arber X

Merge request reports

Loading