зеркало из https://github.com/microsoft/CCF.git
upgrade_pip (#2934)
This commit is contained in:
Родитель
04a7956e0f
Коммит
40c6647bd7
|
@ -11,8 +11,9 @@ if [ ! -f "env/bin/activate" ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
pip install --disable-pip-version-check -q -U -e ./python/
|
pip install -U pip
|
||||||
pip install --disable-pip-version-check -q -U -r ./doc/requirements.txt
|
pip install -q -U -e ./python/
|
||||||
|
pip install -q -U -r ./doc/requirements.txt
|
||||||
echo "Python environment successfully setup"
|
echo "Python environment successfully setup"
|
||||||
|
|
||||||
sphinx-autobuild -b html doc doc/html --host localhost --port 8080
|
sphinx-autobuild -b html doc doc/html --host localhost --port 8080
|
|
@ -34,7 +34,8 @@ if [ ! -f "scripts/env/bin/activate" ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source scripts/env/bin/activate
|
source scripts/env/bin/activate
|
||||||
pip install --disable-pip-version-check cmake_format==0.6.11 1>/dev/null
|
pip install -U pip
|
||||||
|
pip install cmake_format==0.6.11 1>/dev/null
|
||||||
|
|
||||||
unformatted_files=""
|
unformatted_files=""
|
||||||
for file in $(git ls-files "$@" | grep -e '\.cmake$' -e 'CMakeLists\.txt$'); do
|
for file in $(git ls-files "$@" | grep -e '\.cmake$' -e 'CMakeLists\.txt$'); do
|
||||||
|
|
|
@ -57,7 +57,8 @@ if [ ! -f "scripts/env/bin/activate" ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source scripts/env/bin/activate
|
source scripts/env/bin/activate
|
||||||
pip --disable-pip-version-check install -U wheel black pylint mypy 1>/dev/null
|
pip install -U pip
|
||||||
|
pip install -U wheel black pylint mypy 1>/dev/null
|
||||||
|
|
||||||
echo "Python format"
|
echo "Python format"
|
||||||
if [ $FIX -ne 0 ]; then
|
if [ $FIX -ne 0 ]; then
|
||||||
|
@ -67,8 +68,8 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install test dependencies before linting
|
# Install test dependencies before linting
|
||||||
pip --disable-pip-version-check install -U -r tests/requirements.txt 1>/dev/null
|
pip install -U -r tests/requirements.txt 1>/dev/null
|
||||||
pip --disable-pip-version-check install -U -r python/requirements.txt 1>/dev/null
|
pip install -U -r python/requirements.txt 1>/dev/null
|
||||||
|
|
||||||
echo "Python lint"
|
echo "Python lint"
|
||||||
git ls-files tests/ python/ | grep -e '\.py$' | xargs python -m pylint
|
git ls-files tests/ python/ | grep -e '\.py$' | xargs python -m pylint
|
||||||
|
|
|
@ -42,6 +42,7 @@ if [ ! -f "${VENV_DIR}/bin/activate" ]; then
|
||||||
fi
|
fi
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source "${VENV_DIR}"/bin/activate
|
source "${VENV_DIR}"/bin/activate
|
||||||
|
pip install -U -q pip
|
||||||
|
|
||||||
if [ -f "${VERSION_FILE}" ]; then
|
if [ -f "${VERSION_FILE}" ]; then
|
||||||
# install tree
|
# install tree
|
||||||
|
@ -59,17 +60,17 @@ if [ -f "${VERSION_FILE}" ]; then
|
||||||
# With an install tree, the python package can be specified, e.g. when testing
|
# With an install tree, the python package can be specified, e.g. when testing
|
||||||
# an install just before it is released
|
# an install just before it is released
|
||||||
echo "Using python package: ${PYTHON_PACKAGE_PATH}"
|
echo "Using python package: ${PYTHON_PACKAGE_PATH}"
|
||||||
pip install --disable-pip-version-check -q -U -e "${PYTHON_PACKAGE_PATH}"
|
pip install -q -U -e "${PYTHON_PACKAGE_PATH}"
|
||||||
else
|
else
|
||||||
pip install --disable-pip-version-check -q -U ccf=="$VERSION"
|
pip install -q -U ccf=="$VERSION"
|
||||||
fi
|
fi
|
||||||
pip install --disable-pip-version-check -q -U -r "${PATH_HERE}"/requirements.txt
|
pip install -q -U -r "${PATH_HERE}"/requirements.txt
|
||||||
else
|
else
|
||||||
# source tree
|
# source tree
|
||||||
BINARY_DIR=.
|
BINARY_DIR=.
|
||||||
START_NETWORK_SCRIPT="${PATH_HERE}"/../start_network.py
|
START_NETWORK_SCRIPT="${PATH_HERE}"/../start_network.py
|
||||||
pip install --disable-pip-version-check -q -U -e "${PATH_HERE}"/../../python/
|
pip install -q -U -e "${PATH_HERE}"/../../python/
|
||||||
pip install --disable-pip-version-check -q -U -r "${PATH_HERE}"/../requirements.txt
|
pip install -q -U -r "${PATH_HERE}"/../requirements.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Python environment successfully setup"
|
echo "Python environment successfully setup"
|
||||||
|
|
|
@ -11,8 +11,9 @@ if [ ! -f "env/bin/activate" ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source env/bin/activate
|
source env/bin/activate
|
||||||
pip install --disable-pip-version-check -q -U -e ../python/
|
pip install -U -q pip
|
||||||
pip install --disable-pip-version-check -q -U -r ../tests/requirements.txt
|
pip install -q -U -e ../python/
|
||||||
|
pip install -q -U -r ../tests/requirements.txt
|
||||||
echo "Python environment successfully setup"
|
echo "Python environment successfully setup"
|
||||||
|
|
||||||
# Export where the VENV has been set, so tests running
|
# Export where the VENV has been set, so tests running
|
||||||
|
|
Загрузка…
Ссылка в новой задаче