Skip to content

Commit

Permalink
Fix importlib-metadata 6.0.0 compatibility (fixes #389)
Browse files Browse the repository at this point in the history
  • Loading branch information
brechtm committed Jan 13, 2023
1 parent 370b5a5 commit 840afca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ Changed:

Fixed:

* Compatibility with importlib-metadata 6.0.0 (#389)
* Document part templates were not retrieved recursively (#379 comment)
* Listing the installed fonts in a PDF: ``rinoh --list-fonts <filename>``
* Crash on rendering a heading with an index entry annotation (#369)
Expand Down
6 changes: 6 additions & 0 deletions src/rinoh/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ def entry_points(self):
for group, entry_points in self._entry_point_groups.items()
for name, value in entry_points.items()]

def read_text(self, filename): # is abstract in importlib-metadata
raise NotImplementedError

def locate_file(self, path): # is abstract in importlib-metadata
raise NotImplementedError


_DISTRIBUTION = DynamicRinohDistribution()

Expand Down

0 comments on commit 840afca

Please sign in to comment.