diff --git a/granulate_utils/linux/elf.py b/granulate_utils/linux/elf.py index c48f3c6b..634df6d3 100644 --- a/granulate_utils/linux/elf.py +++ b/granulate_utils/linux/elf.py @@ -6,10 +6,13 @@ import hashlib from typing import Optional, cast -from elftools.elf.elffile import ELFFile # type: ignore +from elftools.elf.elffile import ELFError, ELFFile # type: ignore from elftools.elf.sections import NoteSection # type: ignore +__all__ = ["ELFError"] + + def get_elf_arch(path: str) -> str: """ Gets the file architecture embedded in the ELF file section diff --git a/requirements.txt b/requirements.txt index c88bc431..23182dff 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ dataclasses~=0.8; python_version < '3.7' typing-extensions>=4.1.0 pyelftools~=0.28 packaging~=21.2 +importlib_metadata~=4.8