Mercurial > kallithea
comparison scripts/validate-minimum-dependency-versions @ 8215:928bc1d8b279 default-i18n
Merge from default
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Thu, 06 Feb 2020 01:19:23 +0100 |
parents | 01aca0a4f876 |
children | 0a9ddb8cd8c1 |
comparison
equal
deleted
inserted
replaced
8214:460e7d2d1b38 | 8215:928bc1d8b279 |
---|---|
26 # finding all >= requirements and dumping into a custom requirements.txt | 26 # finding all >= requirements and dumping into a custom requirements.txt |
27 # while fixating the requirement at the lower bound. | 27 # while fixating the requirement at the lower bound. |
28 sed -n 's/.*"\(.*\)>=\(.*\)".*/\1==\2/p' setup.py > "$min_requirements" | 28 sed -n 's/.*"\(.*\)>=\(.*\)".*/\1==\2/p' setup.py > "$min_requirements" |
29 sed 's/>=/==/p' dev_requirements.txt >> "$min_requirements" | 29 sed 's/>=/==/p' dev_requirements.txt >> "$min_requirements" |
30 | 30 |
31 virtualenv -p "$(command -v python2)" "$venv" | 31 python3 -m venv "$venv" |
32 source "$venv/bin/activate" | 32 source "$venv/bin/activate" |
33 pip install --upgrade pip setuptools | 33 pip install --upgrade pip setuptools |
34 pip install -e . -r "$min_requirements" python-ldap python-pam 2> >(tee "$log" >&2) | 34 pip install -e . -r "$min_requirements" python-ldap python-pam 2> >(tee "$log" >&2) |
35 | |
36 # Strip out the known Python 2.7 deprecation message. | |
37 sed -i '/DEPRECATION: Python 2\.7 will reach the end of its life/d' "$log" | |
38 | 35 |
39 # Treat any message on stderr as a problem, for the caller to interpret. | 36 # Treat any message on stderr as a problem, for the caller to interpret. |
40 if [ -s "$log" ]; then | 37 if [ -s "$log" ]; then |
41 echo | 38 echo |
42 echo "Error: pip detected following problems:" | 39 echo "Error: pip detected following problems:" |