Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

A location for the constraints file used in building cloudfit services

Notifications You must be signed in to change notification settings

BBC-archive/rd-cloudfit-python-constraints

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

ARCHIVED

This repository is archived and is no longer being maintained.

rd-cloudfit-python-constraints

A location for the constraints file used in building cloudfit services

The only file of importance in this repo is [constraints.txt] which is a pip-formatted constraints file.

Guide to adding constraints to the file

Every python package you create should have a setup.py, and the setup.py should list all of the direct dependencies of the package. Indirect dependencies should not be added to the setup.py file.

  • Dependencies of the form: package-name or package-name >= {version} do not need to be copied into the constraints file.
  • Dependencies that make use of the <, <=, == or ~= notations must be duplicated in the constraints file as well as in the setup.py
  • If the same package already has a constraint listed in the constraints file when you need to add one then make sure you combine the two constraints together into a single constraint. If this isn't possible then we have a problem since the packages clash with each other.

If any packages you directly depend upon also have their own dependencies which would need to be included in the constraints file then you will need to add them to the constraints file as well.

About

A location for the constraints file used in building cloudfit services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages