Index: invocations-3.0.2/tests/packaging/release.py =================================================================== --- invocations-3.0.2.orig/tests/packaging/release.py +++ invocations-3.0.2/tests/packaging/release.py @@ -3,7 +3,10 @@ from os import path import re import sys -from invoke.vendor.lexicon import Lexicon +try: + from invoke.vendor.lexicon import Lexicon +except ImportError: + from lexicon import Lexicon from invoke import MockContext, Result, Config, Exit from docutils.utils import Reporter from unittest.mock import Mock, patch, call Index: invocations-3.0.2/invocations/packaging/release.py =================================================================== --- invocations-3.0.2.orig/invocations/packaging/release.py +++ invocations-3.0.2/invocations/packaging/release.py @@ -20,7 +20,10 @@ from glob import glob from io import StringIO from shutil import rmtree -from invoke.vendor.lexicon import Lexicon +try: + from invoke.vendor.lexicon import Lexicon +except ImportError: + from lexicon import Lexicon from blessings import Terminal from docutils.utils import Reporter