From c237bdd7f8a73866d280ca1426f059613b8c0847 Mon Sep 17 00:00:00 2001 From: Umut Date: Tue, 20 Sep 2022 10:46:34 +0200 Subject: [PATCH] chore: replace deprecated '--no-dev' flag of poetry --- script/make_utils/licenses.sh | 2 +- script/make_utils/upgrade_deps.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/make_utils/licenses.sh b/script/make_utils/licenses.sh index 0fbdd3d05..abf9ef84a 100755 --- a/script/make_utils/licenses.sh +++ b/script/make_utils/licenses.sh @@ -60,7 +60,7 @@ then python -m pip install -U pip wheel python -m pip install -U --force-reinstall setuptools - poetry install --no-dev + poetry install --only main python -m pip install pip-licenses pip-licenses | grep -v "pkg\-resources\|concrete-numpy" | tee "${NEW_LICENSES_FILENAME}" diff --git a/script/make_utils/upgrade_deps.sh b/script/make_utils/upgrade_deps.sh index 778cc9310..5e44325e5 100755 --- a/script/make_utils/upgrade_deps.sh +++ b/script/make_utils/upgrade_deps.sh @@ -7,7 +7,7 @@ no_dev_file=$(mktemp --suffix=.txt) all_file=$(mktemp --suffix=.txt) dev_file=$(mktemp --suffix=.txt) -poetry show -o -t --no-dev | grep -v -e "--" | cut -d " " -f 1 | sed 's/$/\@latest/g' > "${no_dev_file}" +poetry show -o -t --only main | grep -v -e "--" | cut -d " " -f 1 | sed 's/$/\@latest/g' > "${no_dev_file}" poetry show -o -t | grep -v -e "--" | cut -d " " -f 1 | sed 's/$/\@latest/g' > "${all_file}" join -v1 -v2 "${all_file}" "${no_dev_file}" > "${dev_file}" # shellcheck disable=SC2002