[med-svn] [Git][med-team/q2templates][master] 3 commits: Fix pandas 2.0 issue

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Feb 16 16:40:44 GMT 2024



Andreas Tille pushed to branch master at Debian Med / q2templates


Commits:
95fc09ef by Andreas Tille at 2024-02-16T17:33:01+01:00
Fix pandas 2.0 issue

- - - - -
3cd97d64 by Andreas Tille at 2024-02-16T17:38:51+01:00
Replace SafeConfigParser which is deprecated in Python3.12

- - - - -
50052fd5 by Andreas Tille at 2024-02-16T17:39:57+01:00
Upload to unstable

- - - - -


4 changed files:

- debian/changelog
- + debian/patches/pandas2.0.patch
- + debian/patches/python3.12.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,9 +1,11 @@
-q2templates (2023.9.0+ds-2) UNRELEASED; urgency=medium
+q2templates (2023.9.0+ds-2) unstable; urgency=medium
 
   * Team upload.
-  * 
+  * Fix for pandas 2.0 (thanks a lot for the hint to s3v)
+    Closes: #1044068
+  * Replace SafeConfigParser which is deprecated in Python3.12
 
- -- Andreas Tille <tille at debian.org>  Sun, 04 Feb 2024 17:53:03 +0100
+ -- Andreas Tille <tille at debian.org>  Fri, 16 Feb 2024 17:39:14 +0100
 
 q2templates (2023.9.0+ds-1) unstable; urgency=medium
 


=====================================
debian/patches/pandas2.0.patch
=====================================
@@ -0,0 +1,19 @@
+Description: Fix for pandas 2.0
+             Support for negative integer for :attr:`pd.options.display.max_colwidth`
+             is deprecated in favor of using ``None``
+Bug-Debian: https://bugs.debian.org/1044068
+Author: Andreas Tille <tille at debian.org>
+        s3v <c0llapsed at yahoo.it>
+Last-Update: Fri, 16 Feb 2024 17:30:31 +0100
+
+--- a/q2templates/util.py
++++ b/q2templates/util.py
+@@ -43,7 +43,7 @@ def df_to_html(df, border="0", classes=(
+     .. [2] https://github.com/pandas-dev/pandas/issues/1852
+ 
+     """
+-    with pd.option_context('display.max_colwidth', -1):
++    with pd.option_context('display.max_colwidth', None):
+         return df.to_html(border=border, classes=classes, **kwargs)
+ 
+ 


=====================================
debian/patches/python3.12.patch
=====================================
@@ -0,0 +1,19 @@
+Description: SafeConfigParser is deprecated in Python3.12
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Fri, 16 Feb 2024 17:30:31 +0100
+
+
+--- a/versioneer.py
++++ b/versioneer.py
+@@ -340,9 +340,9 @@ def get_config_from_root(root):
+     # configparser.NoOptionError (if it lacks "VCS="). See the docstring at
+     # the top of versioneer.py for instructions on writing your setup.cfg .
+     setup_cfg = os.path.join(root, "setup.cfg")
+-    parser = configparser.SafeConfigParser()
++    parser = configparser.ConfigParser()
+     with open(setup_cfg, "r") as f:
+-        parser.readfp(f)
++        parser.read_file(f)
+     VCS = parser.get("versioneer", "VCS")  # mandatory
+ 
+     def get(parser, name):


=====================================
debian/patches/series
=====================================
@@ -1 +1,3 @@
 jquery_remove_version.patch
+pandas2.0.patch
+python3.12.patch



View it on GitLab: https://salsa.debian.org/med-team/q2templates/-/compare/26924baa49ae2e710c386348054574c06aa5ad1c...50052fd5a5ecccab516a93b8cf78e8adf88e36f6

-- 
View it on GitLab: https://salsa.debian.org/med-team/q2templates/-/compare/26924baa49ae2e710c386348054574c06aa5ad1c...50052fd5a5ecccab516a93b8cf78e8adf88e36f6
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/20240216/853de295/attachment-0001.htm>


More information about the debian-med-commit mailing list