From 3dd725c397b088749407e5d7758534ae3298aec2 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Wed, 26 Jun 2024 10:22:30 -0500 Subject: [PATCH] Exclude twine==5.1.0 and set `--strict` 5.1.0 has a bug with how it interacts with `importlib_metadata>=8.0`. A fix is in progress, but it's not clear when it will be released (probably soon). --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 4bffa677d..830553fc4 100644 --- a/tox.ini +++ b/tox.ini @@ -79,12 +79,12 @@ commands = sphinx-build -j auto -d _build/doctrees -b dirhtml -W . _build/dirhtm [testenv:twine-check] skip_install = true deps = build - twine + twine!=5.1.0 allowlist_externals = rm commands_pre = rm -rf dist/ # check that twine validating package data works commands = python -m build - twine check dist/* + twine check --strict dist/* [testenv:poetry-check] skip_install = true