[Git][debian-gis-team/pyorbital][master] 3 commits: New 0001-Fix-floating-point-comparison.patch

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Sat Feb 4 09:06:29 GMT 2023



Antonio Valentino pushed to branch master at Debian GIS Project / pyorbital


Commits:
05f1f02d by Antonio Valentino at 2023-02-04T09:04:10+00:00
New 0001-Fix-floating-point-comparison.patch

- - - - -
69282944 by Antonio Valentino at 2023-02-04T09:04:16+00:00
Update d/copyright

- - - - -
005c0cb0 by Antonio Valentino at 2023-02-04T09:04:17+00:00
Set distribution to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/copyright
- + debian/patches/0001-Fix-floating-point-comparison.patch
- + debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,14 +1,17 @@
-pyorbital (1.7.3-2) UNRELEASED; urgency=medium
+pyorbital (1.7.3-2) unstable; urgency=medium
 
   [ Antonio Valentino ]
   * Improve d/python3-pyorbital.lintian-overrides formatting.
+  * debian/patches:
+    - new 0001-Fix-floating-point-comparison.patch (Closes: #1030492).
+  * Update dates in d/copyright.
 
   [ Bas Couwenberg ]
   * Enable numpy3 dh helper.
   * Enable Salsa CI.
   * Bump Standards-Version to 4.6.2, no changes.
 
- -- Antonio Valentino <antonio.valentino at tiscali.it>  Wed, 13 Jul 2022 07:48:38 +0200
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Sat, 04 Feb 2023 08:51:37 +0000
 
 pyorbital (1.7.3-1) unstable; urgency=medium
 


=====================================
debian/copyright
=====================================
@@ -18,7 +18,7 @@ Copyright: 2018, Brian Warner
 License: CC0-1.0
 
 Files: debian/*
-Copyright: 2014-2022, Antonio Valentino <antonio.valentino at tiscali.it>
+Copyright: 2014-2023, Antonio Valentino <antonio.valentino at tiscali.it>
 License: GPL-3+
 
 License: GPL-3+


=====================================
debian/patches/0001-Fix-floating-point-comparison.patch
=====================================
@@ -0,0 +1,22 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Sat, 4 Feb 2023 08:46:14 +0000
+Subject: Fix floating point comparison
+
+Forwarded: https://github.com/pytroll/pyorbital/pull/117
+---
+ pyorbital/tests/test_geoloc.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/pyorbital/tests/test_geoloc.py b/pyorbital/tests/test_geoloc.py
+index abf8395..69b9e70 100644
+--- a/pyorbital/tests/test_geoloc.py
++++ b/pyorbital/tests/test_geoloc.py
+@@ -118,7 +118,7 @@ class TestGeoloc(unittest.TestCase):
+     def test_geodetic_lat(self):
+         """Test the determination of the geodetic latitude."""
+         point = np.array([7000, 0, 7000])
+-        self.assertEqual(geodetic_lat(point), 0.78755832699854733)
++        self.assertAlmostEqual(geodetic_lat(point), 0.78755832699854733)
+         points = np.array([[7000, 0, 7000],
+                            [7000, 0, 7000]]).T
+         self.assertTrue(np.allclose(geodetic_lat(points), np.array([0.78755832699854733, 0.78755832699854733])))


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+0001-Fix-floating-point-comparison.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/-/compare/178c4f8b94eb3c7ee02d787beeab1b3d4b672a7c...005c0cb0096600beecbe7d5ac6470183f8dd9de1

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pyorbital/-/compare/178c4f8b94eb3c7ee02d787beeab1b3d4b672a7c...005c0cb0096600beecbe7d5ac6470183f8dd9de1
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/20230204/4563dae2/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list