- Tag the in-house version of the file. Assuming you are using Git, a tag is generated by using the following:
git tag -a <tag_name> -m "<tag_message>" # git tag -a v0.3 -m "Changed the calculations"
- Upload it to the version control system.
- Indicate the local version in the requirements.txt file, as shown in the following example:
git+https://<vcs>/<dependency>@<tag_name>#egg=<dependency> # git+https://gitlab/pump_laws@v0.3#egg=pump_laws
- Write the constraints.txt file in the same manner as a requirements.txt file. The following example comes from https://github.com/mldbai/mldb (this was released under the Apache v2.0 license by MLDB.ai):
# math / science / graph stuff bokeh==0.11.1 numpy==1.10.4 pandas==0.17.1 scipy==0.17.0 ...