Skip to content
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

Update to prompt_toolkit 2.0.x - take over jonathanslenders's works #152

Closed
wants to merge 7 commits into from

Conversation

boarnasia
Copy link

I patched jonathanslenders's works into the latest source.

I don't know why this update stop for a long time, and creating new pull request is good manner or not, but I think http-prompt works with prompt_tookit 2.0.x is things I need.

Almost changes is the same as jonathanslenders's. I added only information message for KeyboardInterrupt exception on http_prompt/cli.py:169.

@boarnasia boarnasia changed the title Update to prompt_toolkit 2.0.x - take over jonathanslenders's works [WIP] Update to prompt_toolkit 2.0.x - take over jonathanslenders's works Mar 20, 2019
@boarnasia
Copy link
Author

Oh, it has problems on python27.
I'll try to fix it.

iPython on py27 uses prompt-toolkit<2.0.0, and on py36 uses
prompt-toolkit>2.0.0, so I put changes that environment on python2 uses
prompt-toolkit<2.0 and environment on python3 uses prompt-toolkit>2.0.
Since pytest-cov ver 2.6, it needs pytest v3.6 over, so pytest-cov
version should be limited under 2.6.0.
@boarnasia
Copy link
Author

Since pytest-cov v2.6, it needs pytest v3.6 over.
So I've limited pytest-cov version under 2.6 in my works.

Latest pytest ver is 4.3.1. I think it is better to update pytest minimum version to over 3.6.

@boarnasia boarnasia changed the title [WIP] Update to prompt_toolkit 2.0.x - take over jonathanslenders's works Update to prompt_toolkit 2.0.x - take over jonathanslenders's works Mar 22, 2019
@boarnasia
Copy link
Author

Ref issue#147

@boarnasia
Copy link
Author

boarnasia commented Mar 23, 2019

How do you think about changing prompt-toolkit version according to iPython?

iPython have 3 version combination patterns as wrote below:

iPython Prompt-toolkit Python
5.x 1.x 2.x
6.x 1.x 3.3,3.4
7.x 2.x >3.4

I think most people suffer from incompatible prompt-toolkit version between http-prompt and iPython, therefore I think changing PT version according to iPython is good idea personally.

tcorbettclark pushed a commit to Encapsia/encapsia-cli that referenced this pull request Aug 19, 2019
@jayvdb
Copy link

jayvdb commented Apr 10, 2020

Why not use try: except: blocks and support both.

@BoboTiG
Copy link
Contributor

BoboTiG commented Aug 5, 2021

I merged #137, this is no more needed (thanks @boarnasia for the patch).

@BoboTiG BoboTiG closed this Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants