diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-06 23:35:48 -0500 |
---|---|---|
committer | Todd Leonhardt <todd.leonhardt@gmail.com> | 2018-01-06 23:35:48 -0500 |
commit | 2244cb09264de050d072ebf1136a6d575d111a8b (patch) | |
tree | ce17ec63281bb45bd3c4b38b1b1eebc4514a79df | |
parent | 2a474dc8f13a3a4558136215a7a1706ba13ba732 (diff) | |
download | cmd2-git-2244cb09264de050d072ebf1136a6d575d111a8b.tar.gz |
Enabled Python 3.7 testing on Travis CI
Also bumped version to 0.8.0a
-rw-r--r-- | .travis.yml | 6 | ||||
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rwxr-xr-x | cmd2.py | 10 | ||||
-rwxr-xr-x | setup.py | 3 | ||||
-rw-r--r-- | tests/test_cmd2.py | 2 |
5 files changed, 15 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index 97e1077a..2c5b5124 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,9 +16,9 @@ matrix: - os: linux python: 3.6 env: TOXENV=py36 -# - os: linux -# python: 3.7-dev -# env: TOXENV=py37 + - os: linux + python: 3.7-dev + env: TOXENV=py37 # # Warning: Don't try to use code coverage analysis with pypy as it is insanely slow # - os: linux # python: pypy diff --git a/CHANGELOG.md b/CHANGELOG.md index afb13842..7a9d49d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.8.0 (TBD, 2018) +* Bug Fixes + * Fixed unit tests on Python 3.7 due to changes in how re.escape() behaves in Python 3.7 + ## 0.7.9 (January 4, 2018) * Bug Fixes @@ -106,7 +106,7 @@ if six.PY2 and sys.platform.startswith('lin'): except ImportError: pass -__version__ = '0.7.9' +__version__ = '0.8.0a' # Pyparsing enablePackrat() can greatly speed up parsing, but problems have been seen in Python 3 in the past pyparsing.ParserElement.enablePackrat() @@ -2399,18 +2399,18 @@ class Cmd2TestCase(unittest.TestCase): def _transform_transcript_expected(self, s): """parse the string with slashed regexes into a valid regex - + Given a string like: - + Match a 10 digit phone number: /\d{3}-\d{3}-\d{4}/ - + Turn it into a valid regular expression which matches the literal text of the string and the regular expression. We have to remove the slashes because they differentiate between plain text and a regular expression. Unless the slashes are escaped, in which case they are interpreted as plain text, or there is only one slash, which is treated as plain text also. - + Check the tests in tests/test_transcript.py to see all the edge cases. """ @@ -6,7 +6,7 @@ Setuptools setup file, used to install or test 'cmd2' import sys from setuptools import setup -VERSION = '0.7.9' +VERSION = '0.8.0a' DESCRIPTION = "cmd2 - a tool for building interactive command line applications in Python" LONG_DESCRIPTION = """cmd2 is a tool for building interactive command line applications in Python. Its goal is to make it quick and easy for developers to build feature-rich and user-friendly interactive command line applications. It @@ -55,6 +55,7 @@ Programming Language :: Python :: 3 Programming Language :: Python :: 3.4 Programming Language :: Python :: 3.5 Programming Language :: Python :: 3.6 +Programming Language :: Python :: 3.7 Programming Language :: Python :: Implementation :: CPython Programming Language :: Python :: Implementation :: PyPy Topic :: Software Development :: Libraries :: Python Modules diff --git a/tests/test_cmd2.py b/tests/test_cmd2.py index 25889580..ebd388b1 100644 --- a/tests/test_cmd2.py +++ b/tests/test_cmd2.py @@ -24,7 +24,7 @@ from conftest import run_cmd, normalize, BASE_HELP, HELP_HISTORY, SHORTCUTS_TXT, def test_ver(): - assert cmd2.__version__ == '0.7.9' + assert cmd2.__version__ == '0.8.0a' def test_empty_statement(base_app): |