Skip to content

Commit

Permalink
fix: fixed import of pkgresources in favor of importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
salvo-polizzi authored and lb- committed Jan 26, 2024
1 parent 0e9f3ab commit 1f564f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ All notable changes to this project will be documented in this file.
### Fixed

- Update `favicon` usage to be the new Sphinx variable `favicon_url` & add default favicon (Sahil Jangra)
- Avoid using pkgresources module for generating version, replace with use importlib.metadata (Salvo Polizzi)

### Security

Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Andy Chosak
- Temidayo Azeez
- Sahil Jangra
- Salvo Polizzi

## Sphinx Typo3 theme

Expand Down
4 changes: 2 additions & 2 deletions sphinx_wagtail_theme/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""Sphinx Wagtail theme"""

import os
import pkg_resources
from importlib.metadata import version


__version__ = pkg_resources.require("sphinx_wagtail_theme")[0].version
__version__ = version("sphinx-wagtail-theme")
__version_full__ = __version__


Expand Down

0 comments on commit 1f564f8

Please sign in to comment.