Skip to content

Commit e6672fe

Browse files
authored
Merge pull request #246 from python-cmd2/python_3.7
Enabled Python 3.7 testing on Travis CI
2 parents 2a474dc + 2244cb0 commit e6672fe

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

.travis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ matrix:
1616
- os: linux
1717
python: 3.6
1818
env: TOXENV=py36
19-
# - os: linux
20-
# python: 3.7-dev
21-
# env: TOXENV=py37
19+
- os: linux
20+
python: 3.7-dev
21+
env: TOXENV=py37
2222
# # Warning: Don't try to use code coverage analysis with pypy as it is insanely slow
2323
# - os: linux
2424
# python: pypy

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.8.0 (TBD, 2018)
2+
* Bug Fixes
3+
* Fixed unit tests on Python 3.7 due to changes in how re.escape() behaves in Python 3.7
4+
15
## 0.7.9 (January 4, 2018)
26

37
* Bug Fixes

cmd2.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
except ImportError:
107107
pass
108108

109-
__version__ = '0.7.9'
109+
__version__ = '0.8.0a'
110110

111111
# Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past
112112
pyparsing.ParserElement.enablePackrat()
@@ -2399,18 +2399,18 @@ def _test_transcript(self, fname, transcript):
23992399

24002400
def _transform_transcript_expected(self, s):
24012401
"""parse the string with slashed regexes into a valid regex
2402-
2402+
24032403
Given a string like:
2404-
2404+
24052405
Match a 10 digit phone number: /\d{3}-\d{3}-\d{4}/
2406-
2406+
24072407
Turn it into a valid regular expression which matches the literal text
24082408
of the string and the regular expression. We have to remove the slashes
24092409
because they differentiate between plain text and a regular expression.
24102410
Unless the slashes are escaped, in which case they are interpreted as
24112411
plain text, or there is only one slash, which is treated as plain text
24122412
also.
2413-
2413+
24142414
Check the tests in tests/test_transcript.py to see all the edge
24152415
cases.
24162416
"""

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import sys
77
from setuptools import setup
88

9-
VERSION = '0.7.9'
9+
VERSION = '0.8.0a'
1010
DESCRIPTION = "cmd2 - a tool for building interactive command line applications in Python"
1111
LONG_DESCRIPTION = """cmd2 is a tool for building interactive command line applications in Python. Its goal is to make
1212
it quick and easy for developers to build feature-rich and user-friendly interactive command line applications. It
@@ -55,6 +55,7 @@
5555
Programming Language :: Python :: 3.4
5656
Programming Language :: Python :: 3.5
5757
Programming Language :: Python :: 3.6
58+
Programming Language :: Python :: 3.7
5859
Programming Language :: Python :: Implementation :: CPython
5960
Programming Language :: Python :: Implementation :: PyPy
6061
Topic :: Software Development :: Libraries :: Python Modules

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.9'
27+
assert cmd2.__version__ == '0.8.0a'
2828

2929

3030
def test_empty_statement(base_app):

0 commit comments

Comments
 (0)