mkdocs-minify-plugin: htmlmin fires warning in python 3.11 and is not maintained anymore
INFO - DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
File "/usr/local/lib/python3.11/warnings.py", line 514, in _deprecated
warn(msg, DeprecationWarning, stacklevel=3)
File "/usr/local/lib/python3.11/site-packages/htmlmin/main.py", line 28, in
import cgi
The original issue: https://github.com/mankyd/htmlmin/issues/66
The latest commit in https://github.com/mankyd/htmlmin is from 2017.
Maybe it’s time to move to a different html minifier?
Also you could avoid importing a HTML minifier if minify_html option is false (same for the others)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 2
- Comments: 20 (8 by maintainers)
Okay okay, let’s go with my fork then. Should be the safest option without introducing any breaking changes or losing any HTML minification options.
@wilhelmer 0.6.3 released!