[med-svn] [Git][med-team/python-cobra][master] 5 commits: routine-update: Packaging update

Andreas Tille (@tille) gitlab at salsa.debian.org
Thu Dec 29 12:04:48 GMT 2022



Andreas Tille pushed to branch master at Debian Med / python-cobra


Commits:
fef4f912 by Andreas Tille at 2022-12-29T12:33:19+01:00
routine-update: Packaging update

- - - - -
ac6a8879 by Andreas Tille at 2022-12-29T12:33:19+01:00
routine-update: Standards-Version: 4.6.2

- - - - -
486f22eb by Andreas Tille at 2022-12-29T12:40:17+01:00
Fix AttributeError: module 'numpy' has no attribute 'float'

- - - - -
efa3c12f by Andreas Tille at 2022-12-29T12:59:07+01:00
Also replace np.bool

- - - - -
d00deec6 by Andreas Tille at 2022-12-29T13:04:11+01:00
Upload to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/numpy_1.24.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,18 @@
+python-cobra (0.26.0-3) unstable; urgency=medium
+
+  * Team upload.
+  * Standards-Version: 4.6.2 (routine-update)
+  * Fix AttributeError: module 'numpy' has no attribute 'float'
+    Closes: #1027252
+
+ -- Andreas Tille <tille at debian.org>  Thu, 29 Dec 2022 13:03:36 +0100
+
+python-cobra (0.26.0-2) UNRELEASED; urgency=medium
+
+  * Team upload.
+
+ -- Andreas Tille <tille at debian.org>  Thu, 29 Dec 2022 12:33:19 +0100
+
 python-cobra (0.26.0-1) unstable; urgency=medium
 
   [ Étienne Mollier ]


=====================================
debian/control
=====================================
@@ -34,7 +34,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-httpx <!nocheck>,
                python3-pydantic <!nocheck>,
                python3-rich <!nocheck>
-Standards-Version: 4.6.1
+Standards-Version: 4.6.2
 Vcs-Browser: https://salsa.debian.org/med-team/python-cobra
 Vcs-Git: https://salsa.debian.org/med-team/python-cobra.git
 Homepage: https://opencobra.github.io/cobrapy/


=====================================
debian/patches/numpy_1.24.patch
=====================================
@@ -0,0 +1,36 @@
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Thu, 29 Dec 2022 11:21:48 +0100
+Bug-Debian: https://bugs.debian.org/1027252
+Description: Fix AttributeError: module 'numpy' has no attribute 'float'
+ with numpy/1.24.1
+
+--- a/src/cobra/io/dict.py
++++ b/src/cobra/io/dict.py
+@@ -68,13 +68,13 @@ _OPTIONAL_MODEL_ATTRIBUTES = {
+ 
+ 
+ def _fix_type(
+-    value: Union[str, np.float, np.bool, Set, Dict]
++    value: Union[str, float, bool, Set, Dict]
+ ) -> Union[str, float, bool, List, OrderedDict]:
+     """Convert possible types to correct Python types.
+ 
+     Parameters
+     ----------
+-    value : str, np.float, np.bool, set, dict
++    value : str, float, bool, set, dict
+         The value to fix type for.
+ 
+     Returns
+@@ -86,9 +86,9 @@ def _fix_type(
+     # Because numpy floats can not be pickled to json
+     if isinstance(value, str):
+         return str(value)
+-    if isinstance(value, np.float):
++    if isinstance(value, float):
+         return float(value)
+-    if isinstance(value, np.bool):
++    if isinstance(value, bool):
+         return bool(value)
+     if isinstance(value, set):
+         return list(value)


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ mathjax.patch
 xfail_test_show_versions.patch
 ignore_tests.patch
 do-not-seek-for-name.patch
+numpy_1.24.patch



View it on GitLab: https://salsa.debian.org/med-team/python-cobra/-/compare/f31dfc44a0e962b91f262c57118fde5ac4f551be...d00deec69bf0b8ae094585b37ea6947632e812ce

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-cobra/-/compare/f31dfc44a0e962b91f262c57118fde5ac4f551be...d00deec69bf0b8ae094585b37ea6947632e812ce
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/20221229/a7482383/attachment-0001.htm>


More information about the debian-med-commit mailing list