This commit is contained in:
Amaury Chamayou 2021-09-02 15:35:27 +01:00 коммит произвёл GitHub
Родитель 04a7956e0f
Коммит 40c6647bd7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
5 изменённых файлов: 18 добавлений и 13 удалений

Просмотреть файл

@ -11,8 +11,9 @@ if [ ! -f "env/bin/activate" ]
fi
source env/bin/activate
pip install --disable-pip-version-check -q -U -e ./python/
pip install --disable-pip-version-check -q -U -r ./doc/requirements.txt
pip install -U pip
pip install -q -U -e ./python/
pip install -q -U -r ./doc/requirements.txt
echo "Python environment successfully setup"
sphinx-autobuild -b html doc doc/html --host localhost --port 8080

Просмотреть файл

@ -34,7 +34,8 @@ if [ ! -f "scripts/env/bin/activate" ]
fi
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=""
for file in $(git ls-files "$@" | grep -e '\.cmake$' -e 'CMakeLists\.txt$'); do

Просмотреть файл

@ -57,7 +57,8 @@ if [ ! -f "scripts/env/bin/activate" ]
fi
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"
if [ $FIX -ne 0 ]; then
@ -67,8 +68,8 @@ else
fi
# Install test dependencies before linting
pip --disable-pip-version-check 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 tests/requirements.txt 1>/dev/null
pip install -U -r python/requirements.txt 1>/dev/null
echo "Python lint"
git ls-files tests/ python/ | grep -e '\.py$' | xargs python -m pylint

Просмотреть файл

@ -42,6 +42,7 @@ if [ ! -f "${VENV_DIR}/bin/activate" ]; then
fi
# shellcheck source=/dev/null
source "${VENV_DIR}"/bin/activate
pip install -U -q pip
if [ -f "${VERSION_FILE}" ]; then
# 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
# an install just before it is released
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
pip install --disable-pip-version-check -q -U ccf=="$VERSION"
pip install -q -U ccf=="$VERSION"
fi
pip install --disable-pip-version-check -q -U -r "${PATH_HERE}"/requirements.txt
pip install -q -U -r "${PATH_HERE}"/requirements.txt
else
# source tree
BINARY_DIR=.
START_NETWORK_SCRIPT="${PATH_HERE}"/../start_network.py
pip install --disable-pip-version-check -q -U -e "${PATH_HERE}"/../../python/
pip install --disable-pip-version-check -q -U -r "${PATH_HERE}"/../requirements.txt
pip install -q -U -e "${PATH_HERE}"/../../python/
pip install -q -U -r "${PATH_HERE}"/../requirements.txt
fi
echo "Python environment successfully setup"

Просмотреть файл

@ -11,8 +11,9 @@ if [ ! -f "env/bin/activate" ]
fi
source env/bin/activate
pip install --disable-pip-version-check -q -U -e ../python/
pip install --disable-pip-version-check -q -U -r ../tests/requirements.txt
pip install -U -q pip
pip install -q -U -e ../python/
pip install -q -U -r ../tests/requirements.txt
echo "Python environment successfully setup"
# Export where the VENV has been set, so tests running