Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (5)
New upstream version 2.14.3
· 0fa0d489
Bas Couwenberg
authored
Aug 08, 2018
0fa0d489
Merge tag 'upstream/2.14.3'
· e76aeaf3
Bas Couwenberg
authored
Aug 08, 2018
Upstream version 2.14.3
e76aeaf3
New upstream release.
· 59c66ae5
Bas Couwenberg
authored
Aug 08, 2018
59c66ae5
Drop patch to fix i386 test failure, included upstream.
· 6d1c06fb
Bas Couwenberg
authored
Aug 08, 2018
6d1c06fb
Set distribution to unstable.
· f49750cc
Bas Couwenberg
authored
Aug 08, 2018
f49750cc
Show whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
f49750cc
...
...
@@ -12,6 +12,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
## [2.14.3] - 2018-08-08
### Added
### Changed
### Fixed
-
fix rounding error in tests
## [2.14.2] - 2018-08-07
### Added
...
...
debian/changelog
View file @
f49750cc
pyosmium (2.14.3-1) unstable; urgency=medium
* New upstream release.
* Drop patch to fix i386 test failure, included upstream.
-- Bas Couwenberg <sebastic@debian.org> Wed, 08 Aug 2018 22:54:21 +0200
pyosmium (2.14.2-3) unstable; urgency=medium
* Add upstream patch to fix test failure on i386.
...
...
debian/patches/0001-tests-use-fuzzy-equal-for-coordinate-floats.patch
deleted
100644 → 0
View file @
4b675df1
Description: tests: use fuzzy equal for coordinate floats
Author: Sarah Hoffmann <lonvia@denofr.de>
Origin: https://github.com/osmcode/pyosmium/commit/8450ad70c6e03db5d14b5c3e725bdeb7d6733e76
Bug: https://github.com/osmcode/pyosmium/issues/68https://github.com/osmcode/pyosmium/issues/68
--- a/test/test_geom.py
+++ b/test/test_geom.py
@@ -56,17 +56,17 @@
class TestCoordinateConversion(unittest.
def test_lonlat_to_mercator(self):
c = o.geom.lonlat_to_mercator(o.geom.Coordinates(0,0))
- assert_equals(c.x, 0)
- assert_equals(c.y, 0)
+ assert_almost_equals(c.x, 0)
+ assert_almost_equals(c.y, 0)
def test_mercator_lonlat(self):
c = o.geom.mercator_to_lonlat(o.geom.Coordinates(0,0))
- assert_equals(c.x, 0)
- assert_equals(c.y, 0)
+ assert_almost_equals(c.x, 0)
+ assert_almost_equals(c.y, 0)
class TestCoordinates(unittest.TestCase):
def test_coordinate_from_location(self):
c = o.geom.Coordinates(o.osm.Location(10.0, -3.0))
- assert_equals(c.x, 10.0)
- assert_equals(c.y, -3.0)
+ assert_almost_equals(c.x, 10.0)
+ assert_almost_equals(c.y, -3.0)
debian/patches/series
deleted
100644 → 0
View file @
4b675df1
0001-tests-use-fuzzy-equal-for-coordinate-floats.patch
src/osmium/version.py
View file @
f49750cc
...
...
@@ -5,7 +5,7 @@ Version information.
# the major version
pyosmium_major
=
'
2.14
'
# current release (Pip version)
pyosmium_release
=
'
2.14.
2
'
pyosmium_release
=
'
2.14.
3
'
# libosmium version shipped with the Pip release
libosmium_version
=
'
2.14.2
'
...
...
test/test_geom.py
View file @
f49750cc
...
...
@@ -56,17 +56,17 @@ class TestCoordinateConversion(unittest.TestCase):
def
test_lonlat_to_mercator
(
self
):
c
=
o
.
geom
.
lonlat_to_mercator
(
o
.
geom
.
Coordinates
(
0
,
0
))
assert_equals
(
c
.
x
,
0
)
assert_equals
(
c
.
y
,
0
)
assert_
almost_
equals
(
c
.
x
,
0
)
assert_
almost_
equals
(
c
.
y
,
0
)
def
test_mercator_lonlat
(
self
):
c
=
o
.
geom
.
mercator_to_lonlat
(
o
.
geom
.
Coordinates
(
0
,
0
))
assert_equals
(
c
.
x
,
0
)
assert_equals
(
c
.
y
,
0
)
assert_
almost_
equals
(
c
.
x
,
0
)
assert_
almost_
equals
(
c
.
y
,
0
)
class
TestCoordinates
(
unittest
.
TestCase
):
def
test_coordinate_from_location
(
self
):
c
=
o
.
geom
.
Coordinates
(
o
.
osm
.
Location
(
10.0
,
-
3.0
))
assert_equals
(
c
.
x
,
10.0
)
assert_equals
(
c
.
y
,
-
3.0
)
assert_
almost_
equals
(
c
.
x
,
10.0
)
assert_
almost_
equals
(
c
.
y
,
-
3.0
)