publish: le registre PyPI de Gitea refuse --skip-existing
build / build (push) Successful in 5m33s

Run 13 (tag) : twine « UnsupportedConfiguration: does not have support for
--skip-existing ». Un doublon fera échouer l'envoi, comportement voulu.
This commit is contained in:
eric committed 2026-09-24 20:11:39 +02:00
1 parent ab48f31f18
commit 7118a8721a
1 file changed
+4 -1
+4 -1
View File
@@ -12,9 +12,12 @@ if [ -x "$ROOT/work/venv/bin/pip" ]; then PIP=$ROOT/work/venv/bin/pip; TWINE=$RO
else PIP="python3 -m pip"; TWINE=twine; fi
$PIP install -q twine
# Le registre PyPI de Gitea ne connaît pas --skip-existing (twine refuse alors
# toute la configuration) : un fichier déjà présent fait échouer l'envoi, ce qui
# est voulu pour un tag — on ne republie pas une version.
echo "== PyPI : $GITEA_URL/api/packages/$OWNER/pypi"
TWINE_USERNAME=$PACKAGES_USER TWINE_PASSWORD=$PACKAGES_TOKEN \
$TWINE upload --non-interactive --skip-existing \
$TWINE upload --non-interactive \
--repository-url "$GITEA_URL/api/packages/$OWNER/pypi" "$DIST"/*.whl
for deb in "$DIST"/*.deb; do