question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: rename prompt_toolkit to prompt_toolkit2 or not? (during a transition period).

See original GitHub issue

Hi everyone,

I’m opening this issue to discuss whether or not we should rename prompt_toolkit to prompt_toolkit2.

The problem that we are facing right now is that we want to release version 2.0, but it’s backwards incompatible with 1.0. This would normally not be an issue, because the best practices tell you to install Python applications in a virtualenv. However, most prompt_toolkit applications are system tools, which are often installed with the system wide Python installation, and very often these are distributed through other channels like the repositories of Linux distributions. We don’t want to break those.

As I understand it, setuptools can install multiple versions of a package alongside each other. There is a __requires__ variable that is inspected by pkg_resources to make sure the right version of the package is loaded. (See, e.g.: https://stackoverflow.com/questions/13720065/what-does-requires-mean-in-python ). However, I’m not sure how well this works in practice.

While I don’t like it, if renaming this library to prompt_toolkit2 during a transition period is the only way to solve certain issues, then I’m in favor of doing it. The intend is to rename it back to prompt_toolkit when most applications are transitioned. (At that point, prompt_toolkit2 could remain an alias for prompt_toolkit.)

I don’t have much personal experience with issues like this, so all feedback is welcome.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:15
  • Comments:30 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
jonathanslenderscommented, Dec 30, 2017

@return42: it is possible that certain bug fixes will still be applied to the 1.0 branch, but I’d like to move as much as possible to the 2.0 branch. Maintaining two branches takes a lot of time.

1reaction
jonathanslenderscommented, Jun 2, 2018

Hi everyone,

I just released prompt_toolkit 2.0.1. Check the changelog: https://github.com/jonathanslenders/python-prompt-toolkit/blob/master/CHANGELOG and the docs: https://python-prompt-toolkit.readthedocs.io/ .

Please let me know if you have any issues upgrading your applications!

Cheers, Jonathan

Read more comments on GitHub >

github_iconTop Results From Across the Web

prompt_toolkit 3.0.18 documentation - Python Prompt Toolkit 3.0
prompt_toolkit is a library for building powerful interactive command line and terminal applications in Python. It can be a very advanced pure Python ......
Read more >
Custom lexer in Python prompt_toolkit - Stack Overflow
Does anyone have any suggestion or example? I'm looking to creating a lexer from an application-specific derivative of SQL. python · lexer ...
Read more >
oci-utils bug fix update - Oracle Linux Yum Server
[3.9.5-11] - Fixes file permissions problem detected in rpmdiff test ... issues #3) - Rename path to linux-git.us.oracle.com/Kubernetes [0.0.2-1.0.8] ...
Read more >
python-prompt-toolkit.pdf - Read the Docs
(Python 2.6 - 3.x is supported in prompt_toolkit. 2.0; not ... 3.2.2 Several use cases: prompts versus full screen terminal applications.
Read more >
External Packages - SageMath Documentation
gf2x: Fast arithmetic in GF(2)[x] and searching for irreducible/primitive ... prompt_toolkit: Interactive command lines for Python.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found