From 5dca65f73879926a0bbaca8fe41887a121be84aa Mon Sep 17 00:00:00 2001 From: "russell@unturf.com" Date: Tue, 16 Jun 2026 13:55:17 -0400 Subject: [PATCH] ci: twine check before upload, non-interactive twine check validates the built artifacts' metadata (long_description rendering, required fields) so a broken render hits CI logs instead of landing on PyPI as a malformed project page. --non-interactive guards against a wedged prompt hanging the pipeline if the runner ever loses its ~/.pypirc auth. --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 100dbb3..5ce5aed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,4 +21,5 @@ pypi-twine: - pip install --upgrade pip - pip install twine - python3 setup.py sdist bdist_wheel - - twine upload dist/* + - twine check dist/* + - twine upload --non-interactive dist/*