Skip to content

Commit dd671ef

Browse files
committed
Modified setup.py and README.md to make pyreadline a dependency on Windwos
Also: - bumped version to 0.7.9a - updated changelog
1 parent f72f36a commit dd671ef

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.7.9 (TBD)
2+
3+
* Bug Fixes
4+
* Fixed a couple broken examples
5+
* Enhancements
6+
* Improved documentation for modifying shortcuts (command aliases)
7+
* Made ``pyreadline`` a dependency on Windows to ensure tab-completion works
8+
19
## 0.7.8 (November 8, 2017)
210

311
* Bug Fixes

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ pip install -U cmd2
4848

4949
cmd2 works with Python 2.7 and Python 3.3+ on Windows, macOS, and Linux. It is pure Python code with
5050
the only 3rd-party dependencies being on [six](https://pypi.python.org/pypi/six),
51-
[pyparsing](http://pyparsing.wikispaces.com), and [pyperclip](https://github.com/asweigart/pyperclip).
51+
[pyparsing](http://pyparsing.wikispaces.com), and [pyperclip](https://github.com/asweigart/pyperclip)
52+
(on Windows, [pyreadline](https://pypi.python.org/pypi/pyreadline) is an additional dependency).
5253

5354
For information on other installation options, see
5455
[Installation Instructions](https://cmd2.readthedocs.io/en/latest/install.html) in the cmd2

cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
else:
106106
BROKEN_PIPE_ERROR = IOError
107107

108-
__version__ = '0.7.8'
108+
__version__ = '0.7.9a'
109109

110110
# Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past
111111
pyparsing.ParserElement.enablePackrat()

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
"""
44
Setuptools setup file, used to install or test 'cmd2'
55
"""
6+
import sys
67
from setuptools import setup
78

8-
VERSION = '0.7.8'
9+
VERSION = '0.7.9a'
910
DESCRIPTION = "cmd2 - a tool for building interactive command line applications in Python"
1011
LONG_DESCRIPTION = """cmd2 is a tool for building interactive command line applications in Python. Its goal is to make
1112
it quick and easy for developers to build feature-rich and user-friendly interactive command line applications. It
@@ -61,6 +62,9 @@
6162
""".splitlines())))
6263

6364
INSTALL_REQUIRES = ['pyparsing >= 2.0.1', 'pyperclip', 'six']
65+
if sys.platform.startswith('win'):
66+
INSTALL_REQUIRES += 'pyreadline'
67+
6468
# unittest.mock was added in Python 3.3. mock is a backport of unittest.mock to all versions of Python
6569
TESTS_REQUIRE = ['mock', 'pytest']
6670
DOCS_REQUIRE = ['sphinx', 'sphinx_rtd_theme', 'pyparsing', 'pyperclip', 'six']

tests/test_cmd2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525

2626
def test_ver():
27-
assert cmd2.__version__ == '0.7.8'
27+
assert cmd2.__version__ == '0.7.9a'
2828

2929

3030
def test_empty_statement(base_app):

0 commit comments

Comments
 (0)