[Git][debian-gis-team/python-snuggs][master] 4 commits: New upstream version 1.4.3

Bas Couwenberg gitlab at salsa.debian.org
Tue Feb 26 05:41:20 GMT 2019


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


Commits:
23d63cb6 by Bas Couwenberg at 2019-02-26T05:35:29Z
New upstream version 1.4.3
- - - - -
6d4f2639 by Bas Couwenberg at 2019-02-26T05:35:31Z
Merge tag 'upstream/1.4.3'

Upstream version 1.4.3

- - - - -
658fb30e by Bas Couwenberg at 2019-02-26T05:35:49Z
New upstream release.

- - - - -
b2bbdf49 by Bas Couwenberg at 2019-02-26T05:37:04Z
Set distribution to unstable.

- - - - -


6 changed files:

- CHANGES.txt
- + MANIFEST.in
- debian/changelog
- setup.py
- snuggs/__init__.py
- test_snuggs.py


Changes:

=====================================
CHANGES.txt
=====================================
@@ -1,6 +1,12 @@
 Changes
 =======
 
+1.4.3 (2019-02-25)
+------------------
+- Add LICENSE to distributions (#11).
+- Remove click from requirements (#12).
+- Allow a wider range of valid variable and parameter names (#13).
+
 1.4.2 (2018-06-07)
 ------------------
 - Add missing docstrings and improve existing ones.


=====================================
MANIFEST.in
=====================================
@@ -0,0 +1,2 @@
+include CHANGES.txt AUTHORS.txt LICENSE VERSION.txt README.rst setup.py CODE_OF_CONDUCT.txt test_snuggs.py
+exclude MANIFEST.in


=====================================
debian/changelog
=====================================
@@ -1,8 +1,10 @@
-python-snuggs (1.4.2-3) UNRELEASED; urgency=medium
+python-snuggs (1.4.3-1) unstable; urgency=medium
 
+  * Team upload.
+  * New upstream release.
   * Bump Standards-Version to 4.3.0, no changes.
 
- -- Bas Couwenberg <sebastic at debian.org>  Tue, 28 Aug 2018 15:28:33 +0200
+ -- Bas Couwenberg <sebastic at debian.org>  Tue, 26 Feb 2019 06:36:52 +0100
 
 python-snuggs (1.4.2-2) unstable; urgency=medium
 


=====================================
setup.py
=====================================
@@ -29,6 +29,6 @@ setup(
     packages=find_packages(exclude=["ez_setup", "examples", "tests"]),
     include_package_data=True,
     zip_safe=False,
-    install_requires=["click", "numpy", "pyparsing"],
+    install_requires=["numpy", "pyparsing"],
     extras_require={"test": ["pytest"]},
 )


=====================================
snuggs/__init__.py
=====================================
@@ -10,13 +10,13 @@ import sys
 from pyparsing import (
     alphanums, ZeroOrMore, nums, oneOf, Word, Literal, Combine, QuotedString,
     ParseException, Forward, Group, CaselessLiteral, Optional, alphas,
-    OneOrMore, ParseResults)
+    OneOrMore, ParseResults, pyparsing_common)
 
 import numpy
 
 
 __all__ = ['eval']
-__version__ = "1.4.2"
+__version__ = "1.4.3"
 
 # Python 2-3 compatibility
 string_types = (str,) if sys.version_info[0] >= 3 else (basestring,)  # flake8: noqa
@@ -105,7 +105,7 @@ decimal = Literal('.')
 e = CaselessLiteral('E')
 sign = Literal('+') | Literal('-')
 number = Word(nums)
-name = Word(alphas)
+name = pyparsing_common.identifier
 nil = Literal('nil').setParseAction(lambda s, l, t: [None])
 
 def resolve_var(s, l, t):


=====================================
test_snuggs.py
=====================================
@@ -48,6 +48,10 @@ def test_arr_lookup(ones):
     r = snuggs.eval('(read 1)', kwargs)
     assert list(r.flatten()) == [1, 1, 1, 1]
 
+def test_arr_var_long(ones):
+    r = snuggs.eval('(+ FOO_BAR_42 0)', FOO_BAR_42=ones)
+    assert list(r.flatten()) == [1, 1, 1, 1]
+
 
 @pytest.mark.xfail(reason="Keyword argument order can't be relied on")
 def test_arr_lookup_kwarg_order(ones):



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/compare/7e6370eebd379ff4e310201b55ae97d66baebc52...b2bbdf4967d014c0381d97e70302d57b21eb2f84

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/compare/7e6370eebd379ff4e310201b55ae97d66baebc52...b2bbdf4967d014c0381d97e70302d57b21eb2f84
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/20190226/4cac738e/attachment-0001.html>


More information about the Pkg-grass-devel mailing list