Skip to content

Commit

Permalink
Build docs with python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Sep 19, 2023
1 parent 717feb4 commit 7f7fcf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
copyright = '2020, Daniel Flook'
author = 'Daniel Flook'

from pkg_resources import get_distribution, DistributionNotFound
from importlib import metadata
try:
release = get_distribution('python_minifier').version
release = metadata.version('python-minifier')
version = '.'.join(release.split('.')[:3])
except DistributionNotFound:
except metadata.PackageNotFoundError:
release = '0.0.0'
version = '0.0.0'

Expand Down

0 comments on commit 7f7fcf1

Please sign in to comment.