[med-svn] [Git][med-team/augur][master] 2 commits: Replace parse_time_string() by parse_datetime_string_with_reso() to gain pandas 2.0 compatitibility

Andreas Tille (@tille) gitlab at salsa.debian.org
Thu Feb 15 18:16:05 GMT 2024



Andreas Tille pushed to branch master at Debian Med / augur


Commits:
faeb3b70 by Andreas Tille at 2024-02-15T19:07:24+01:00
Replace parse_time_string() by parse_datetime_string_with_reso() to gain pandas 2.0 compatitibility

- - - - -
e67f76c1 by Andreas Tille at 2024-02-15T19:11:50+01:00
Upload to unstable

- - - - -


3 changed files:

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


Changes:

=====================================
debian/changelog
=====================================
@@ -1,8 +1,12 @@
-augur (24.1.0-1) UNRELEASED; urgency=medium
+augur (24.1.0-1) unstable; urgency=medium
 
   * New upstream version
+  * s/parse_time_string()/parse_datetime_string_with_reso()/ to gain
+    pandas 2.0 compatitibility (Thanks for the hint to
+    s3v <c0llapsed at yahoo.it>)
+    Closes: #1044079
 
- -- Andreas Tille <tille at debian.org>  Thu, 08 Feb 2024 06:13:50 +0100
+ -- Andreas Tille <tille at debian.org>  Thu, 15 Feb 2024 19:07:50 +0100
 
 augur (24.0.0-1) unstable; urgency=medium
 


=====================================
debian/patches/pandas2.0.patch
=====================================
@@ -0,0 +1,17 @@
+Description: Replace parse_time_string() by parse_datetime_string_with_reso()
+    to gain pandas 2.0 compatitibility (Thanks for the hint to s3v <c0llapsed at yahoo.it>)
+Bug-Debian: https://bugs.debian.org/1044079
+Author: Andreas Tille <tille at debian.org>
+Last-Update: Thu, 15 Feb 2024 19:04:46 +0100
+
+--- a/augur/parse.py
++++ b/augur/parse.py
+@@ -30,7 +30,7 @@ def fix_dates(d, dayfirst=True):
+     '''
+     try:
+         from pandas.core.tools.datetimes import parsing
+-        results = parsing.parse_time_string(d, dayfirst=dayfirst)
++        results = parsing.parse_datetime_string_with_reso(d, dayfirst=dayfirst)
+         if len(results) == 2:
+             dto, res = results
+         else:


=====================================
debian/patches/series
=====================================
@@ -1 +1,2 @@
 missing-imports.patch
+pandas2.0.patch



View it on GitLab: https://salsa.debian.org/med-team/augur/-/compare/571e2557b03c6d13cab25800f49cd211aff21570...e67f76c12aa14389ef95a1c3a47d136489a42f4f

-- 
View it on GitLab: https://salsa.debian.org/med-team/augur/-/compare/571e2557b03c6d13cab25800f49cd211aff21570...e67f76c12aa14389ef95a1c3a47d136489a42f4f
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/20240215/4cc52f89/attachment-0001.htm>


More information about the debian-med-commit mailing list