chore: replace deprecated '--no-dev' flag of poetry

This commit is contained in:
Umut
2022-09-20 10:46:34 +02:00
parent f37175e821
commit c237bdd7f8
2 changed files with 2 additions and 2 deletions

View File

@@ -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}"

View File

@@ -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