Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (4)
New upstream version 1.4.6
· f5e8f45a
Bas Couwenberg
authored
May 15, 2019
f5e8f45a
Merge tag 'upstream/1.4.6'
· e21e26d9
Bas Couwenberg
authored
May 15, 2019
Upstream version 1.4.6
e21e26d9
New upstream release.
· e5e8ea76
Bas Couwenberg
authored
May 15, 2019
e5e8ea76
Set distribution to experimental.
· 451c4842
Bas Couwenberg
authored
May 15, 2019
451c4842
Show whitespace changes
Inline
Side-by-side
.travis.yml
View file @
451c4842
dist
:
xenial
language
:
python
python
:
-
"
2.7"
-
"
3.6"
-
"
3.7"
install
:
...
...
CHANGES.txt
View file @
451c4842
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
View file @
451c4842
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@debian.org> Wed, 15 May 2019
06:22:43
+0200
-- Bas Couwenberg <sebastic@debian.org> Wed, 15 May 2019
17:13:50
+0200
python-snuggs (1.4.3-1) unstable; urgency=medium
...
...
snuggs/__init__.py
View file @
451c4842
...
...
@@ -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
View file @
451c4842
...
...
@@ -25,12 +25,12 @@ def truefalse():
@given
(
integers
())
def
test_integer_operand
(
num
):
assert
list
(
snuggs
.
operand
.
parseString
(
st
r
(
num
)))
==
[
num
]
assert
list
(
snuggs
.
operand
.
parseString
(
rep
r
(
num
)))
==
[
num
]
@given
(
floats
(
allow_infinity
=
False
,
allow_nan
=
False
))
def
test_real_operand
(
num
):
assert
list
(
snuggs
.
operand
.
parseString
(
st
r
(
num
)))
==
[
num
]
assert
list
(
snuggs
.
operand
.
parseString
(
rep
r
(
num
)))
==
[
num
]
def
test_int_expr
():
...
...