From 28192447ba169afa91e741836068337634ab49c8 Mon Sep 17 00:00:00 2001 From: Arnaud Gissinger Date: Sat, 11 Mar 2023 12:25:12 +0100 Subject: [PATCH] =?UTF-8?q?[UPDATE]=20migrate=20PyInquirer=20=E2=9E=A1?= =?UTF-8?q?=EF=B8=8F=20InquirerPy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ rofi_notion/manage.py | 3 ++- setup.py | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6598a8f..fc815cc 100644 --- a/README.md +++ b/README.md @@ -62,4 +62,6 @@ Default config destination is `$XDG_CONFIG_HOME/rofi-notion` or `$HOME/.config/r ## Deployment +### PyPi + Bump version in `setup.py` then run `make`. \ No newline at end of file diff --git a/rofi_notion/manage.py b/rofi_notion/manage.py index f92ca38..03d6430 100644 --- a/rofi_notion/manage.py +++ b/rofi_notion/manage.py @@ -1,5 +1,6 @@ -from PyInquirer import prompt, Validator, ValidationError +from prompt_toolkit.validation import Validator, ValidationError from .config import rm_db, set_config, config, set_creds +from InquirerPy.resolver import prompt from prompt_toolkit import document import re diff --git a/setup.py b/setup.py index 4bf49d9..29d98e8 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='rofi-notion', - version='1.2.0', + version='2.0.0', description='Quickly create new Notion pages for your databases with rofi as GUI', long_description=open('README.md').read(), long_description_content_type='text/markdown', @@ -45,7 +45,7 @@ install_requires=[ 'notion-client==1.0.0', 'python-rofi==1.0.1', - 'PyInquirer==1.0.3', + 'InquirerPy==0.3.4', 'argparse==1.4.0', 'PyYAML==6.0', ],