[med-svn] [Git][med-team/python-questplus][master] 4 commits: Add patch to fix FTBFS with numpy (Closes: #1027202)

Nilesh Patra (@nilesh) gitlab at salsa.debian.org
Mon Jan 9 09:26:54 GMT 2023



Nilesh Patra pushed to branch master at Debian Med / python-questplus


Commits:
88150492 by Nilesh Patra at 2023-01-09T14:36:43+05:30
Add patch to fix FTBFS with numpy (Closes: #1027202)

- - - - -
a837d3fa by Nilesh Patra at 2023-01-09T14:36:51+05:30
Bump Standards-Version to 4.6.2 (no changes needed)

- - - - -
658bd9c6 by Nilesh Patra at 2023-01-09T14:49:32+05:30
Run autopkgtests for all supported version

- - - - -
45b6b78f by Nilesh Patra at 2023-01-09T14:49:32+05:30
Upload to unstable

- - - - -


5 changed files:

- debian/changelog
- debian/control
- + debian/patches/numpy-1.24.patch
- + debian/patches/series
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+python-questplus (2019.4-6) unstable; urgency=medium
+
+  * Team Upload.
+  * Add patch to fix FTBFS with numpy (Closes: #1027202)
+  * Bump Standards-Version to 4.6.2 (no changes needed)
+  * Run autopkgtests for all supported versions
+
+ -- Nilesh Patra <nilesh at debian.org>  Mon, 09 Jan 2023 14:36:54 +0530
+
 python-questplus (2019.4-5) unstable; urgency=medium
 
   * Fix watch file


=====================================
debian/control
=====================================
@@ -13,7 +13,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-scipy <!nocheck>,
                python3-xarray <!nocheck>,
                python3-pytest <!nocheck>
-Standards-Version: 4.6.1
+Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/med-team/python-questplus
 Vcs-Git: https://salsa.debian.org/med-team/python-questplus.git
 Homepage: https://github.com/hoechenberger/questplus


=====================================
debian/patches/numpy-1.24.patch
=====================================
@@ -0,0 +1,17 @@
+--- a/questplus/qp.py
++++ b/questplus/qp.py
+@@ -168,12 +168,14 @@
+ 
+             prior_grid = np.meshgrid(*grid_dims,
+                                      sparse=True, indexing='ij')
++            prior_grid = np.asanyarray(prior_grid, dtype='object')
+             prior = np.prod(prior_grid)
+         else:
+             # A "proper" prior was specified (i.e., prior probabilities for
+             # all parameters.)
+             prior_grid = np.meshgrid(*list(prior_orig.values()),
+                                      sparse=True, indexing='ij')
++            prior_grid = np.asanyarray(prior_grid, dtype='object')
+             prior = np.prod(prior_grid)
+ 
+         # Normalize.


=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+numpy-1.24.patch


=====================================
debian/tests/run-unit-test
=====================================
@@ -2,7 +2,7 @@
 
 set -e
 
-for py in $(py3versions -r 2> /dev/null)
+for py in $(py3versions -s 2> /dev/null)
 do
     pushd questplus/tests
     echo "Testing with $py in $(pwd):"



View it on GitLab: https://salsa.debian.org/med-team/python-questplus/-/compare/e10f80a662567e3ee1af892b590ed03478e4ae06...45b6b78fb7192f95cc755619a9c99ffbf51bf09e

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-questplus/-/compare/e10f80a662567e3ee1af892b590ed03478e4ae06...45b6b78fb7192f95cc755619a9c99ffbf51bf09e
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/20230109/03bdf448/attachment-0001.htm>


More information about the debian-med-commit mailing list