Requirements Management - Current

We currently hold lists of requirements in -

dev-requirements.txt (Requirements that are required for the build / testing process)

&

requirements.txt (Requirements that are needed by the script(s) themselves

The dev-requirements file references the requirements file via the line

-r requirements.txt

which means that only the dev-requirements file needs to be passed to pip using the command

pip install -r dev-requirements.txt

The requirements files contain a mix of both internally developed and external packages. External packages are generally pinned to a specific version that is known to work. For internal packages the latest commit is used although pip has the capability to specify a specific commit.

Pip requirements line installing pinned version:

simplegeneric==0.8.1

Pip requirements line installing a module via Git via SSH:

-e git+ssh://jira.renalregistry.nhs.uk:7999/rr/rr_common#egg=rr_common
-e git+ssh://jira.renalregistry.nhs.uk:7999/rr/rr_common@{ commit or branch or tag }#egg=rr_common