diff --git a/.travis.yml b/.travis.yml index 79bfff2e..de7f1d3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,7 @@ notifications: install: - pip install nox + script: - nox -s tests-3.8 diff --git a/auditwheel/main.py b/auditwheel/main.py index 79086c32..e276fcdb 100644 --- a/auditwheel/main.py +++ b/auditwheel/main.py @@ -4,10 +4,10 @@ import pathlib import sys -try: +if sys.version_info[:2] >= (3, 8): from importlib import metadata -except ImportError: - import importlib_metadata as metadata # type: ignore +else: + import importlib_metadata as metadata from typing import Optional