Fix WordCompleter import
Since May 2018 [1], the WordCompleter and PathCompleter moved
from prompt_toolkit 's contrib module to prompt_toolkit.completion
Without this patch, it is impossible to use the interactive-release
CLI with the latest versions of prompt_toolkit, which is not freezed
in the requirements.
This fixes the issue by using the latest way to import WordCompleter
and ensuring users will have the latest prompt_toolkit versions
compatible with this change.
[1]: 8d12c16081 (diff-c25fe0509d70181361304341982e6d0f)
Change-Id: Ia9180a10f0aa8f6f8ed25d7fd5e4e3ec39f86714
This commit is contained in:
@@ -25,7 +25,7 @@ import tempfile
|
||||
|
||||
import six
|
||||
|
||||
from prompt_toolkit.contrib.completers import WordCompleter
|
||||
from prompt_toolkit.completion import WordCompleter
|
||||
from prompt_toolkit import prompt
|
||||
from prompt_toolkit.validation import ValidationError
|
||||
from prompt_toolkit.validation import Validator
|
||||
|
||||
@@ -17,7 +17,7 @@ keyring==7.3
|
||||
requests>=2.5.2
|
||||
PyYAML>=3.1.0
|
||||
yamlordereddictloader
|
||||
prompt_toolkit
|
||||
prompt_toolkit>=2.0.7
|
||||
tqdm
|
||||
mwclient==0.8.1
|
||||
jsonschema>=2.6.0
|
||||
|
||||
Reference in New Issue
Block a user