[Git][debian-gis-team/python-snuggs][upstream] New upstream version 1.4.3
Bas Couwenberg
gitlab at salsa.debian.org
Tue Feb 26 05:41:23 GMT 2019
Bas Couwenberg pushed to branch upstream at Debian GIS Project / python-snuggs
Commits:
23d63cb6 by Bas Couwenberg at 2019-02-26T05:35:29Z
New upstream version 1.4.3
- - - - -
5 changed files:
- CHANGES.txt
- + MANIFEST.in
- 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
=====================================
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/commit/23d63cb6a5f28de1deeb8b9afd8d8775aa1d4623
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/commit/23d63cb6a5f28de1deeb8b9afd8d8775aa1d4623
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/c6fb2909/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list