Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Changelog
0.19
----

General information:
* The bpython-cli and bpython-urwid rendering backends have been deprecated and
will show a warning that they'll be removed in a future release when started.
* Usage in combination with Python 2 has been deprecated. This does not mean that
support is dropped instantly but rather that at some point in the future we will
stop running our testcases against Python 2.

New features:

Fixes:
Expand Down
18 changes: 18 additions & 0 deletions bpython/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1988,6 +1988,24 @@ def main_curses(scr, args, config, interactive=True, locals_=None, banner=None):
if banner is not None:
clirepl.write(banner)
clirepl.write("\n")

# XXX these deprecation warnings need to go at some point
clirepl.write(
_(
"WARNING: You are using `bpython-cli`, the curses backend for `bpython`. This backend has been deprecated in version 0.19 and might disappear in a future version."
)
)
clirepl.write("\n")

if sys.version_info[0] == 2:
# XXX these deprecation warnings need to go at some point
clirepl.write(
_(
"WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version."
)
)
clirepl.write("\n")

exit_value = clirepl.repl()
if hasattr(sys, "exitfunc"):
sys.exitfunc()
Expand Down
9 changes: 9 additions & 0 deletions bpython/curtsies.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,15 @@ def main(args=None, locals_=None, banner=None, welcome_message=None):
print(bpargs.version_banner())
if banner is not None:
print(banner)

if sys.version_info[0] == 2:
# XXX these deprecation warnings need to go at some point
print(
_(
"WARNING: You are using `bpython` on Python 2. Support for Python 2 has been deprecated in version 0.19 and might disappear in a future version."
)
)

global repl
repl = FullCurtsiesRepl(config, locals_, welcome_message, interp)
try:
Expand Down
Loading