From 17976a06706e1f4290daa72e1450534aaae5cdb7 Mon Sep 17 00:00:00 2001 From: "Jan (temporary)" Date: Tue, 8 May 2018 12:09:47 +0100 Subject: [PATCH] Use dependency_links to install prompt_toolkit 2.0 To avoid having to install using a bash script, we can specify a version of prompt_toolkit and provide the github branch tarball for 2.0 as a dependency link. This means when installing with pip install sml-sync --process-dependency-links, pip will install prompt toolkit from the github repo. This means we can close the bitbucket repo. --- setup.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 656701e..2e61a35 100644 --- a/setup.py +++ b/setup.py @@ -16,14 +16,17 @@ entry_points={ 'console_scripts': ['sml-sync=sml_sync:run'] }, + # prompt_toolkit 2.0 is currently only available from github: + dependency_links = ['https://github.com/' + + 'jonathanslenders/python-prompt-toolkit/' + + 'tarball/2.0#egg=prompt_toolkit-2.0'], install_requires=[ 'sml', 'daiquiri', 'paramiko', 'inflect', 'watchdog', - 'semantic_version' - # This is currently missing prompt-toolkit - # (waiting for 2.0 to be released) + 'semantic_version', + 'prompt_toolkit>=2.0' ] )