-
Notifications
You must be signed in to change notification settings - Fork 557
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Keep support for prompt_toolkit 2 #1197
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1197 +/- ##
==========================================
- Coverage 83.89% 83.85% -0.04%
==========================================
Files 21 21
Lines 2552 2552
==========================================
- Hits 2141 2140 -1
- Misses 411 412 +1
Continue to review full report at Codecov.
|
Whoops thanks for checking this @laixintao that was my idea (to include pt 3). Fixed in 36e6047 |
@meeuw Did you verify that pgcli can work with both prompt_toolkit 2.x and 3.x? I thought they are not compatible. |
I think it's compatible, I didn't change any code while upgrading from 2.x: https://github.com/dbcli/pgcli/pull/1149/files , and I checked the changelog. Can @jonathanslenders confirm? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right @laixintao , it looks like the only breaking changes are in get_event_loop
and dialogs, and we're not using those calls in pgcli:
https://python-prompt-toolkit.readthedocs.io/en/stable/pages/upgrading/3.0.html
This is good.
36e6047
to
345a527
Compare
🎉 yes, I've checked that pgcli still works with pt-2. Thanks a lot for merging! |
Description
It turns out that Fedora 32 doesn't have prompt-toolkit 3 yet :-(
Seems we still support Prompt Toolkit 2 without any code changes (the tests don't fail on my system).
Checklist
changelog.rst
.AUTHORS
file (or it's already there).pip install pre-commit && pre-commit install
), and ranblack
on my code.