Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace distutils with packaging for version checking #24

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Replace distutils with packaging for version checking
  • Loading branch information
dbinetti committed Jun 13, 2024
commit e1a9b129757af90aec3af732400fa8b731ff695a
4 changes: 2 additions & 2 deletions pelican/plugins/render_math/math.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,11 @@ def configure_typogrify(pelicanobj, mathjax_settings):
return

try:
from distutils.version import LooseVersion
from packaging.version import Version

import typogrify

if LooseVersion(typogrify.__version__) < LooseVersion("2.0.7"):
if Version(typogrify.__version__) < Version("2.0.7"):
raise TypeError("Incorrect version of Typogrify")

from typogrify.filters import typogrify
Expand Down
Loading