[Git][debian-gis-team/python-snuggs][upstream] New upstream version 1.4.7

Bas Couwenberg gitlab at salsa.debian.org
Thu Sep 19 05:49:44 BST 2019



Bas Couwenberg pushed to branch upstream at Debian GIS Project / python-snuggs


Commits:
03483b9c by Bas Couwenberg at 2019-09-19T04:43:09Z
New upstream version 1.4.7
- - - - -


4 changed files:

- .travis.yml
- CHANGES.txt
- snuggs/__init__.py
- test_snuggs.py


Changes:

=====================================
.travis.yml
=====================================
@@ -5,7 +5,7 @@ python:
   - "3.6"
   - "3.7"
 install:
-  - "pip install pytest-cov coveralls pyparsing==2.3.1"
+  - "pip install pytest-cov coveralls pyparsing~=2.0"
   - "pip install -e .[test]"
 script: 
   - python -m pytest --cov snuggs --cov-report term-missing
@@ -16,5 +16,5 @@ deploy:
     tags: true
     condition: "$TRAVIS_PYTHON_VERSION = 3.6"
   provider: pypi
-  user: mapboxci
+  user: __token__
   distributions: "sdist bdist_wheel"


=====================================
CHANGES.txt
=====================================
@@ -1,6 +1,12 @@
 Changes
 =======
 
+1.4.7 (2019-09-18)
+------------------
+- The snuggs tests of syntax errors no longer assert a specific pyparsing
+  exception message as the format of these messages is not stable (#15).
+  Previous versions of snuggs had no other issues with pyparsing 2.3 or 2.4.
+
 1.4.6 (2019-05-15)
 ------------------
 - Tests were failing on Python 2.7 (#20, #21) due to loss of precision in


=====================================
snuggs/__init__.py
=====================================
@@ -16,7 +16,7 @@ import numpy
 
 
 __all__ = ['eval']
-__version__ = "1.4.6"
+__version__ = "1.4.7"
 
 # Python 2-3 compatibility
 string_types = (str,) if sys.version_info[0] >= 3 else (basestring,)  # flake8: noqa


=====================================
test_snuggs.py
=====================================
@@ -196,9 +196,6 @@ def test_missing_closing_paren():
         snuggs.eval("(+ 1 2")
     assert excinfo.value.lineno == 1
     assert excinfo.value.offset == 7
-    exception_options = ['expected a function or operator',
-                         'Expected {Forward: ... | Forward: ...}']
-    assert str(excinfo.value) in exception_options
 
 
 def test_missing_func():
@@ -214,9 +211,6 @@ def test_missing_func2():
         snuggs.eval("(# 1 2)")
     assert excinfo.value.lineno == 1
     assert excinfo.value.offset == 2
-    exception_options = ['expected a function or operator',
-                         'Expected {Forward: ... | Forward: ...}']
-    assert str(excinfo.value) in exception_options
 
 
 def test_undefined_var():
@@ -232,9 +226,6 @@ def test_bogus_higher_order_func():
         snuggs.eval("((bogus * 2) 2)")
     assert excinfo.value.lineno == 1
     assert excinfo.value.offset == 3
-    exception_options = ['expected a function or operator',
-                         'Expected {Forward: ... | Forward: ...}']
-    assert str(excinfo.value) in exception_options
 
 
 def test_type_error():



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/commit/03483b9cdea993cddc4e27f828079c1292782e02

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/commit/03483b9cdea993cddc4e27f828079c1292782e02
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20190919/c029ce78/attachment-0001.html>


More information about the Pkg-grass-devel mailing list