edgewall / genshi

Python toolkit for generation of output for the web
http://genshi.edgewall.org
Other
86 stars 35 forks source link

DeprecationWarnings for ast.Ellipsis and ast.Str in compat module #71

Closed jaraco closed 3 months ago

jaraco commented 9 months ago

When running tests on jaraco.site, I see these warnings against Genshi 0.7.7:

.tox/py/lib/python3.12/site-packages/genshi/compat.py:141
  /Users/jaraco/code/jaraco/jaraco.site/.tox/py/lib/python3.12/site-packages/genshi/compat.py:141: DeprecationWarning: ast.Ellipsis is deprecated and will be removed in Python 3.14; use ast.Constant instead
    _ast_Ellipsis = ast.Ellipsis

.tox/py/lib/python3.12/site-packages/genshi/compat.py:142
  /Users/jaraco/code/jaraco/jaraco.site/.tox/py/lib/python3.12/site-packages/genshi/compat.py:142: DeprecationWarning: ast.Str is deprecated and will be removed in Python 3.14; use ast.Constant instead
    _ast_Str = ast.Str
hodgestar commented 3 months ago

@jaraco I think this is fixed now in master.

jaraco commented 3 months ago

That's great. Should we cut a new release? How can I help?

jaraco commented 3 months ago

I've confirmed that the warnings are gone when running the jaraco.site tests against master.