[med-svn] [Git][med-team/heudiconv][master] 2 commits: tolerate pydicom importing the deprecated collections.abc.ByteString, which...

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Oct 23 18:04:50 BST 2026



Andreas Tille pushed to branch master at Debian Med / heudiconv


Commits:
c5402e99 by Andreas Tille at 2026-10-23T18:50:49+02:00
tolerate pydicom importing the deprecated collections.abc.ByteString, which raises a DeprecationWarning on Python 3.15 and now fails the warnings-as-errors test collection.  Closes: #1149373

- - - - -
d0314724 by Andreas Tille at 2026-10-23T18:51:01+02:00
Changes made by cme

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/ignore-pydicom-bytestring-warning
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+heudiconv (1.4.0-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * ignore-pydicom-bytestring-warning: new: tolerate pydicom importing the
+    deprecated collections.abc.ByteString, which raises a DeprecationWarning
+    on Python 3.15 and now fails the warnings-as-errors test collection.
+    Closes: #1149373
+
+ -- Andreas Tille <tille at debian.org>  Fri, 23 Oct 2026 14:00:00 +0200
+
 heudiconv (1.4.0-2) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -1,13 +1,13 @@
 Source: heudiconv
-Testsuite: autopkgtest-pkg-pybuild
 Standards-Version: 4.7.4
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 Uploaders:
  Michael Hanke <mih at debian.org>,
  Yaroslav Halchenko <debian at onerussian.com>,
 Section: science
+Testsuite: autopkgtest-pkg-pybuild
 Build-Depends:
- debhelper-compat (= 13),
+ debhelper-compat (= 14),
  dh-sequence-python3,
  dcm2niix,
  help2man,
@@ -32,8 +32,6 @@ Homepage: https://github.com/nipy/heudiconv
 Package: heudiconv
 Architecture: all
 Depends:
- ${python3:Depends},
- ${misc:Depends},
  dcm2niix,
  python3,
  python3-dcmstack,
@@ -41,13 +39,15 @@ Depends:
  python3-filelock,
  python3-inotify,
  python3-nibabel,
- python3-numpy,
  python3-nipype,
+ python3-numpy,
  python3-tinydb,
+ ${misc:Depends},
+ ${python3:Depends},
 Recommends:
- python3-pytest,
  python3-datalad,
  python3-etelemetry,
+ python3-pytest,
 Description: DICOM converter with support for structure heuristics
  This is a flexible dicom converter for organizing brain imaging data into
  structured directory layouts. It allows for flexible directory layouts and


=====================================
debian/patches/ignore-pydicom-bytestring-warning
=====================================
@@ -0,0 +1,23 @@
+Description: ignore pydicom deprecation of collections.abc.ByteString
+ pydicom still imports collections.abc.ByteString (deprecated) as of
+ the version packaged in Debian, and on Python >= 3.15 that import
+ raises a DeprecationWarning ('collections.abc.ByteString' is
+ deprecated and slated for removal in Python 3.17).  heudiconv enables
+ warnings-as-errors for its test suite, which turns this third-party
+ warning into test collection errors and fails the build.  Also see
+ <https://github.com/pydicom/pydicom/issues/2172>.
+Author: Andreas Tille <tille at debian.org>
+Forwarded: not-needed
+Last-Update: 2026-10-23
+Assisted-By: scaleway/deepseek-v4-flash-0731
+
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/tox.ini
++++ b/tox.ini
+@@ -48,3 +48,5 @@
+     ignore:.*datetime.datetime.utcnow\(\) is deprecated.*:DeprecationWarning:nipype
++    # <https://github.com/pydicom/pydicom/issues/2172>
++    ignore:.*collections\.abc\.ByteString.* is deprecated.*:DeprecationWarning
+ 
+ [coverage:run]


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 deb-no-demand-on-etelemetry
 no_versioningit.patch
 absolute-imports.patch
+ignore-pydicom-bytestring-warning



View it on GitLab: https://salsa.debian.org/med-team/heudiconv/-/compare/0f780d6122d9bdc5820a2ce35115735f6b834906...d031472485ef02aecee4130f9311ee5dbf31e2f0

-- 
View it on GitLab: https://salsa.debian.org/med-team/heudiconv/-/compare/0f780d6122d9bdc5820a2ce35115735f6b834906...d031472485ef02aecee4130f9311ee5dbf31e2f0
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261023/921d7d24/attachment-0001.htm>


More information about the debian-med-commit mailing list