X Tutup
Skip to content

Commit 347c7c8

Browse files
committed
Switch default binary to curtsies
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent d28b3ab commit 347c7c8

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

doc/sphinx/source/man-bpython.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Synopsis
88

99
**bpython** [*options*] [*file* [*args*]]
1010

11-
**bpython-urwid** [*options*] [*file* [*args*]]
11+
**bpython-curses** [*options*] [*file* [*args*]]
1212

13-
**bpython-curtsies** [*options*] [*file* [*args*]]
13+
**bpython-urwid** [*options*] [*file* [*args*]]
1414

1515

1616
Description

setup.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -125,30 +125,32 @@ def initialize_options(self):
125125

126126
install_requires = [
127127
'pygments',
128-
'requests'
128+
'requests',
129+
'curtsies >=0.1.15, <0.2.0',
130+
'greenlet'
129131
]
130132

131133
extras_require = {
132-
'urwid' : ['urwid']
134+
'urwid' : ['urwid'],
135+
'watch' : ['watchdog']
133136
}
134137

135-
packages = ['bpython', 'bpython.test', 'bpython.translations', 'bpdb']
138+
packages = [
139+
'bpython',
140+
'bpython.curtsiesfrontend',
141+
'bpython.test',
142+
'bpython.translations',
143+
'bpdb'
144+
]
136145

137146
entry_points = {
138147
'console_scripts': [
139-
'bpython = bpython.cli:main',
148+
'bpython = bpython.curtsies:main',
149+
'bpython-curses = bpython.cli:main',
140150
'bpython-urwid = bpython.urwid:main [urwid]'
141151
]
142152
}
143153

144-
if sys.version_info[:2] >= (2, 6):
145-
# curtsies only supports 2.6 and onwards
146-
extras_require['curtsies'] = ['curtsies >=0.1.15, <0.2.0', 'greenlet']
147-
extras_require['watch'] = ['watchdog']
148-
packages.append("bpython.curtsiesfrontend")
149-
entry_points['console_scripts'].append(
150-
'bpython-curtsies = bpython.curtsies:main [curtsies]')
151-
152154
if sys.version_info[0] == 2 and sys.platform == "darwin":
153155
# need PyOpenSSL for SNI support (only 2.X and on Darwin)
154156
# list of packages taken from

0 commit comments

Comments
 (0)
X Tutup