[Git][debian-gis-team/python-snuggs][master] 4 commits: New upstream version 1.4.6
Bas Couwenberg
gitlab at salsa.debian.org
Wed May 15 16:21:16 BST 2019
Bas Couwenberg pushed to branch master at Debian GIS Project / python-snuggs
Commits:
f5e8f45a by Bas Couwenberg at 2019-05-15T15:13:02Z
New upstream version 1.4.6
- - - - -
e21e26d9 by Bas Couwenberg at 2019-05-15T15:13:03Z
Merge tag 'upstream/1.4.6'
Upstream version 1.4.6
- - - - -
e5e8ea76 by Bas Couwenberg at 2019-05-15T15:13:22Z
New upstream release.
- - - - -
451c4842 by Bas Couwenberg at 2019-05-15T15:14:01Z
Set distribution to experimental.
- - - - -
5 changed files:
- .travis.yml
- CHANGES.txt
- debian/changelog
- snuggs/__init__.py
- test_snuggs.py
Changes:
=====================================
.travis.yml
=====================================
@@ -1,6 +1,7 @@
dist: xenial
language: python
python:
+ - "2.7"
- "3.6"
- "3.7"
install:
=====================================
CHANGES.txt
=====================================
@@ -1,6 +1,11 @@
Changes
=======
+1.4.6 (2019-05-15)
+------------------
+- Tests were failing on Python 2.7 (#20, #21) due to loss of precision in
+ str(num). This has been fixed by using repr(num).
+
1.4.5 (2019-05-14)
------------------
- Replace custom integer and real parsers with pyparsing_common's number (#19).
=====================================
debian/changelog
=====================================
@@ -1,10 +1,10 @@
-python-snuggs (1.4.5-1) UNRELEASED; urgency=medium
+python-snuggs (1.4.6-1~exp1) experimental; urgency=medium
* Team upload.
* New upstream release.
* Add python{,3}-hypothesis to build dependencies.
- -- Bas Couwenberg <sebastic at debian.org> Wed, 15 May 2019 06:22:43 +0200
+ -- Bas Couwenberg <sebastic at debian.org> Wed, 15 May 2019 17:13:50 +0200
python-snuggs (1.4.3-1) unstable; urgency=medium
=====================================
snuggs/__init__.py
=====================================
@@ -16,7 +16,7 @@ import numpy
__all__ = ['eval']
-__version__ = "1.4.5"
+__version__ = "1.4.6"
# Python 2-3 compatibility
string_types = (str,) if sys.version_info[0] >= 3 else (basestring,) # flake8: noqa
=====================================
test_snuggs.py
=====================================
@@ -25,12 +25,12 @@ def truefalse():
@given(integers())
def test_integer_operand(num):
- assert list(snuggs.operand.parseString(str(num))) == [num]
+ assert list(snuggs.operand.parseString(repr(num))) == [num]
@given(floats(allow_infinity=False, allow_nan=False))
def test_real_operand(num):
- assert list(snuggs.operand.parseString(str(num))) == [num]
+ assert list(snuggs.operand.parseString(repr(num))) == [num]
def test_int_expr():
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/compare/ca670c5ba192b6d30926f7e4d4013784816610d2...451c48428e1aa8345af2447db9f4edf36d6f3c37
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-snuggs/compare/ca670c5ba192b6d30926f7e4d4013784816610d2...451c48428e1aa8345af2447db9f4edf36d6f3c37
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/20190515/bda0bf9a/attachment-0001.html>
More information about the Pkg-grass-devel
mailing list