1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

pinning: strip extras from dependencies

`poetry export` outputs in requirements.txt format, which is now
apparently producing "dep[extra]==...". We are using this output
as the constraints file for pip and pip's new resolver does not
permit extras in the constraints file.

This change filters out the extras specifiers.
This commit is contained in:
Alex Zorin
2022-07-14 11:20:14 +10:00
parent c9b9eb2214
commit 11268fd231

View File

@@ -40,5 +40,5 @@ fi
poetry lock >&2
trap 'rm poetry.lock' EXIT
# We need to remove local packages from the output.
poetry export --without-hashes | sed '/^acme @/d; /certbot/d;'
# We need to remove local packages and extras specifiers from the output
poetry export --without-hashes | sed '/^acme @/d; /certbot/d; s/\[[^][]*\]//g;'