On 2/22/26 14:34, Pronay Sarker via Mailman-Developers wrote:
However i was wondering what the preferred method is to fix the following
(see below) error in my pipeline
<https://gitlab.com/itsPronay/mailman/-/jobs/13215168236>. I did a bit of
research and found 2 way to fix this problem
1. I add urllib3 version in dependencies 2. or I update
test_fix_deprecations or intro.rst so that it ignores this error in the
pipeline. Let me know which one I should follow. Thanks
Neither of those is correct. The first thing to ask is why does only
diffcov fail in this way when all the test-mysql, test-postgres and
test-sqlite jobs pass.
The answer to that is only diffcov requires coverage and diff_cover>=6.0
and one of those requires chardet and as of today, the latest version of
chardet in PyPI is 6.0.0.post1 which replaced chardet 6.0.0 (released
yesterday).
Traceback (most recent call last):
...> - Warning: urllib3 (2.6.3) or chardet (6.0.0.post1)/charset_normalizer
(3.4.4) doesn't match a supported version!
The issue is the requests package requires chardet < 6.0.0. This fix.
```
--- a/tox.ini
+++ b/tox.ini
@@ -22,6 +22,7 @@ deps =
pg: psycopg2-binary
mysql: pymysql
diffcov: diff_cover>=6.0
+ diffcov: chardet<6.0
passenv =
MAILMAN_*
PYTHON*
```
will work around it.
--
Mark Sapiro <[email protected]> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
_______________________________________________
Mailman-Developers mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/mailman-developers.python.org/
Mailman FAQ: https://wiki.list.org/x/AgA3
Security Policy: https://wiki.list.org/x/QIA9