Skip to content

Commit cc1e973

Browse files
committed
Remove deprecated --no-python-version-warning option from pip
Discussion: pypa/pip#13154
1 parent 88d6f94 commit cc1e973

File tree

2 files changed

+3
-3
lines changed
  • examples

2 files changed

+3
-3
lines changed

examples/npm-virtualenv-uwsgi-test-app/app.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ packages=("pip" "setuptools" "wheel")
1313
for pkg in ${packages[@]}; do
1414
# grep returns exit code 1 if the output contains only one line starting
1515
# with "Requirement already …" which means that the package is updated
16-
python -m pip install -U --no-deps --no-python-version-warning $pkg 2>&1 | grep -Ev "^Requirement already (up-to-date|satisfied): "
16+
python -m pip install -U --no-deps $pkg 2>&1 | grep -Ev "^Requirement already (up-to-date|satisfied): "
1717
if [ $? -eq 0 ]; then
1818
echo "ERROR: Failed to upgrade '$pkg' to the latest version."
1919
echo "Output of the pip install command is:"
20-
python -m pip install -U --no-deps --no-python-version-warning $pkg
20+
python -m pip install -U --no-deps $pkg
2121
exit 1
2222
fi
2323
done

examples/uwsgi-test-app/app.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ packages=("pip" "setuptools" "wheel")
2222
for pkg in ${packages[@]}; do
2323
# grep returns exit code 1 if the output contains only one line starting
2424
# with "Requirement already …" which means that the package is updated
25-
python -m pip install -U --no-deps --no-python-version-warning $pkg 2>&1 | grep -Ev "^Requirement already (up-to-date|satisfied): "
25+
python -m pip install -U --no-deps $pkg 2>&1 | grep -Ev "^Requirement already (up-to-date|satisfied): "
2626
if [ $? -eq 0 ]; then
2727
echo "ERROR: Failed to upgrade '$pkg' to the latest version."
2828
exit 1

0 commit comments

Comments
 (0)