[med-svn] [Git][med-team/python-skbio][master] 4 commits: fix-test_shannon.patch: new: relax floating point comparison.
Étienne Mollier (@emollier)
gitlab at salsa.debian.org
Wed Jul 10 20:39:16 BST 2024
Étienne Mollier pushed to branch master at Debian Med / python-skbio
Commits:
d28f940f by Étienne Mollier at 2024-07-10T21:35:50+02:00
fix-test_shannon.patch: new: relax floating point comparison.
Closes: #1074745
- - - - -
82bcfcee by Étienne Mollier at 2024-07-10T21:37:12+02:00
d/control: add myself to uploaders.
- - - - -
756d9f21 by Étienne Mollier at 2024-07-10T21:37:35+02:00
d/control: declare compliance to standards version 4.7.0.
- - - - -
dacd70c8 by Étienne Mollier at 2024-07-10T21:38:29+02:00
ready to upload to unstable.
- - - - -
4 changed files:
- debian/changelog
- debian/control
- + debian/patches/fix-test_shannon.patch
- debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+python-skbio (0.6.1-3) unstable; urgency=medium
+
+ * fix-test_shannon.patch: new: relax floating point comparison.
+ (Closes: #1074745)
+ * d/control: add myself to uploaders.
+ * d/control: declare compliance to standards version 4.7.0.
+
+ -- Étienne Mollier <emollier at debian.org> Wed, 10 Jul 2024 21:38:07 +0200
+
python-skbio (0.6.1-2) unstable; urgency=medium
* Team upload.
=====================================
debian/control
=====================================
@@ -1,7 +1,8 @@
Source: python-skbio
Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Andreas Tille <tille at debian.org>,
- Kevin Murray <kdmfoss at gmail.com>
+ Kevin Murray <kdmfoss at gmail.com>,
+ Étienne Mollier <emollier at debian.org>
Section: python
Priority: optional
Build-Depends: debhelper-compat (= 13),
@@ -37,7 +38,7 @@ Build-Depends-Indep: python3-sphinx <!nodoc>,
python-biom-format-doc <!nodoc>,
python-pandas-doc <!nodoc>,
python-numpy-doc <!nodoc>
-Standards-Version: 4.6.2
+Standards-Version: 4.7.0
Vcs-Browser: https://salsa.debian.org/med-team/python-skbio
Vcs-Git: https://salsa.debian.org/med-team/python-skbio.git
Homepage: https://github.com/biocore/scikit-bio
=====================================
debian/patches/fix-test_shannon.patch
=====================================
@@ -0,0 +1,19 @@
+Description: relax precision on floating point number comparison.
+
+Author: Étienne Mollier <emollier at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1074745
+Forwarded: https://github.com/scikit-bio/scikit-bio/commit/edf4286dd8f69445e400fd1f2c3bacc7c5cd3f0b
+Last-Update: 2024-07-10
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- python-skbio.orig/skbio/diversity/alpha/tests/test_base.py
++++ python-skbio/skbio/diversity/alpha/tests/test_base.py
+@@ -316,7 +316,7 @@
+ self.assertAlmostEqual(shannon([1, 2, 3, 4], exp=True), 3.596115467)
+
+ # Equally abundant taxa, exp(H) = # taxa
+- self.assertEqual(shannon([5, 5, 5], exp=True), 3.0)
++ self.assertAlmostEqual(shannon([5, 5, 5], exp=True), 3.0)
+
+ def test_simpson(self):
+ self.assertAlmostEqual(simpson(np.array([1, 0, 2, 5, 2])), 0.66)
=====================================
debian/patches/series
=====================================
@@ -9,3 +9,4 @@ numpy-1.24.patch
python3.12-xfail-tests.patch
cython3.patch
docs-no-version-switch
+fix-test_shannon.patch
View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/compare/fbdb51493fae90ed010fcfc6e5057d41267ec59e...dacd70c8cf55b11327fa24900ed1d8654fbdb05d
--
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/med-team/python-skbio/-/compare/fbdb51493fae90ed010fcfc6e5057d41267ec59e...dacd70c8cf55b11327fa24900ed1d8654fbdb05d
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/debian-med-commit/attachments/20240710/986d1ba0/attachment-0001.htm>
More information about the debian-med-commit
mailing list