Open magical opened 5 years ago
Running with markdown 2.6.11 gives a different set of warnings:
pokedex/tests/test_strings.py::test_markdown
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:140: DeprecationWarning: "safe_mode" is deprecated in Python-Markdown. Use an HTML sanitizer (like Bleach https://bleach.readthedocs.io/) if you are parsing untrusted markdown text. See the 2.6 release notes for more info
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.extra" instead of "extra"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:140: DeprecationWarning: "safe_mode" is deprecated in Python-Markdown. Use an HTML sanitizer (like Bleach https://bleach.readthedocs.io/) if you are parsing untrusted markdown text. See the 2.6 release notes for more info
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.extra" instead of "extra"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:140: DeprecationWarning: "safe_mode" is deprecated in Python-Markdown. Use an HTML sanitizer (like Bleach https://bleach.readthedocs.io/) if you are parsing untrusted markdown text. See the 2.6 release notes for more info
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.extra" instead of "extra"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:140: DeprecationWarning: "safe_mode" is deprecated in Python-Markdown. Use an HTML sanitizer (like Bleach https://bleach.readthedocs.io/) if you are parsing untrusted markdown text. See the 2.6 release notes for more info
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.extra" instead of "extra"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.
DeprecationWarning)
pokedex/tests/test_strings.py::test_markdown_string
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:140: DeprecationWarning: "safe_mode" is deprecated in Python-Markdown. Use an HTML sanitizer (like Bleach https://bleach.readthedocs.io/) if you are parsing untrusted markdown text. See the 2.6 release notes for more info
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.extra" instead of "extra"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:140: DeprecationWarning: "safe_mode" is deprecated in Python-Markdown. Use an HTML sanitizer (like Bleach https://bleach.readthedocs.io/) if you are parsing untrusted markdown text. See the 2.6 release notes for more info
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.extra" instead of "extra"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:140: DeprecationWarning: "safe_mode" is deprecated in Python-Markdown. Use an HTML sanitizer (like Bleach https://bleach.readthedocs.io/) if you are parsing untrusted markdown text. See the 2.6 release notes for more info
DeprecationWarning)
/home/andrew/veekun/env-pyramid/lib/python2.7/site-packages/markdown/__init__.py:259: DeprecationWarning: Using short names for Markdown's builtin extensions is deprecated. Use the full path to the extension with Python's dot notation (eg: "markdown.extensions.extra" instead of "extra"). The current behavior will raise an error in version 2.7. See the Release Notes for Python-Markdown version 2.6 for more info.
DeprecationWarning)
Markdown is now preventing us from supporting python 3.9. Attempting to install markdown 2.4.1 on python 3.9 produces this delightful little error: AttributeError: 'xml.etree.ElementTree.Element' object has no attribute 'getiterator'
. And also a warning about 'imp' being deprecated.
Noticed while trying to set up github actions.
Good news: markdown 2.6.11 does seem to work on 3.9.
I tested the latest version (3.3.4) and it seems to work, despite the deprecation warnings (same warnings as the OP). They are trivial to fix but will require breaking support for Markdown 2.6.11. Note also that Markdown 3.2 dropped support for Python 2.
I'm going to leave this alone for now, but once we drop Python 2.7 support we should bump the minimum Markdown version up to 3.0 and fix the deprecations.
Running the test suite with a recent version of Markdown (3.0.1) gives me the following warnings