mirror of
https://github.com/certbot/certbot.git
synced 2026-01-27 19:42:53 +03:00
* Revert "Pin python-augeas version to avoid error with 1.0.0 (#4422)" This reverts commit1c51ae2588. * make dependency-requirements * separate certbot and dependency requirements * fix build.py * update hashin comment * simplify release pinning * separate letsencrypt dependency * pin hashes in venv * error out when bad things happen * use pinned dependencies in tox * Revert "pin hashes in venv" This reverts commit1cd38a9e50. * use pip_install.sh in venv_common * quote pip install args * bump mock version
14 lines
555 B
Bash
Executable File
14 lines
555 B
Bash
Executable File
#!/bin/sh -e
|
|
# pip installs packages using Certbot's requirements file as constraints
|
|
|
|
# get the root of the Certbot repo
|
|
repo_root=$(git rev-parse --show-toplevel)
|
|
requirements="$repo_root/letsencrypt-auto-source/pieces/dependency-requirements.txt"
|
|
constraints=$(mktemp)
|
|
trap "rm -f $constraints" EXIT
|
|
# extract pinned requirements without hashes
|
|
sed -n -e 's/^\([^[:space:]]*==[^[:space:]]*\).*$/\1/p' $requirements > $constraints
|
|
|
|
# install the requested packages using the pinned requirements as constraints
|
|
pip install --constraint $constraints "$@"
|