[Git][debian-gis-team/pylibtiff][master] 3 commits: New 0004-numpy-2.3-compat.patch

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Wed Sep 10 07:45:18 BST 2025



Antonio Valentino pushed to branch master at Debian GIS Project / pylibtiff


Commits:
dcf7ba70 by Antonio Valentino at 2025-09-10T06:37:52+00:00
New 0004-numpy-2.3-compat.patch

- - - - -
6be80674 by Antonio Valentino at 2025-09-10T06:41:08+00:00
Add missing build dependency on python3-numpy-dev for command dh_numpy3.

Changes-By: lintian-brush
Fixes: lintian: missing-build-dependency-for-dh_-command
See-also: https://lintian.debian.org/tags/missing-build-dependency-for-dh_-command.html

- - - - -
47290de5 by Antonio Valentino at 2025-09-10T06:41:09+00:00
Set distribution to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/0004-numpy-2.3-compat.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,9 +1,16 @@
-pylibtiff (0.6.1-3) UNRELEASED; urgency=medium
+pylibtiff (0.6.1-3) unstable; urgency=medium
 
-  * Team upload.
+  [ Bas Couwenberg ]
   * Bump Standards-Version to 4.7.2, no changes.
 
- -- Bas Couwenberg <sebastic at debian.org>  Thu, 20 Mar 2025 06:18:05 +0100
+  [ Antonio Valentino ]
+  * debian/patches:
+    - New 0004-numpy-2.3-compat.patch (Closes: #1114710).
+  * debian/control:
+    - Add missing build dependency on python3-numpy-dev for
+      command dh_numpy3.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Wed, 10 Sep 2025 06:37:57 +0000
 
 pylibtiff (0.6.1-2) unstable; urgency=medium
 


=====================================
debian/control
=====================================
@@ -15,7 +15,8 @@ Build-Depends: debhelper-compat (= 13),
                python3-numpy,
                python3-pytest <!nocheck>,
                python3-setuptools,
-               python3-setuptools-scm
+               python3-setuptools-scm,
+               python3-numpy-dev
 Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/debian-gis-team/pylibtiff
 Vcs-Git: https://salsa.debian.org/debian-gis-team/pylibtiff.git


=====================================
debian/patches/0004-numpy-2.3-compat.patch
=====================================
@@ -0,0 +1,67 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Wed, 10 Sep 2025 06:35:50 +0000
+Subject: numpy-2.3-compat
+
+---
+ libtiff/lzw.py             | 4 ++--
+ libtiff/scripts/convert.py | 2 +-
+ libtiff/tiff_file.py       | 4 ++--
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/libtiff/lzw.py b/libtiff/lzw.py
+index 64f2561..e2e0459 100644
+--- a/libtiff/lzw.py
++++ b/libtiff/lzw.py
+@@ -39,7 +39,7 @@ def encode_bitarray(seq, max_bits=12):
+     decode_bitarray
+     """
+     if isinstance(seq, numpy.ndarray):
+-        seq = seq.tostring()
++        seq = seq.tobytes()
+     r = bitarray(0, endian='little')
+     write = r.fromword
+ 
+@@ -105,7 +105,7 @@ def encode_bittools(seq, max_bits=12):
+     """
+     if isinstance(seq, numpy.ndarray):
+         nbytes = seq.nbytes * 2
+-        seq = seq.tostring()
++        seq = seq.tobytes()
+     else:
+         nbytes = len(seq) * 2
+     r = numpy.zeros((nbytes,), dtype=numpy.ubyte)
+diff --git a/libtiff/scripts/convert.py b/libtiff/scripts/convert.py
+index 8ed37ff..574747d 100644
+--- a/libtiff/scripts/convert.py
++++ b/libtiff/scripts/convert.py
+@@ -51,7 +51,7 @@ def runner(parser, options, args):
+     for ifd in tiff.IFD:
+         s = ifd.get('ImageDescription')
+         if s is not None:
+-            description.append(s.value.tostring())
++            description.append(s.value.tobytes())
+     init_description = '\n'.join(description)
+     samples_list, names_list = tiff.get_samples()
+     while samples_list:
+diff --git a/libtiff/tiff_file.py b/libtiff/tiff_file.py
+index 347fb63..a38b597 100644
+--- a/libtiff/tiff_file.py
++++ b/libtiff/tiff_file.py
+@@ -247,7 +247,7 @@ class TIFFfile(TiffBase):
+             while self.data[offset + i]:
+                 i += 1
+             length = i
+-        string = self.get_values(offset, 'BYTE', length).tostring()
++        string = self.get_values(offset, 'BYTE', length).tobytes()
+         return string
+ 
+     def check_memory_usage(self, verbose=True):
+@@ -792,7 +792,7 @@ class IFD:
+                         'DocumentName', 'Model', 'Make', 'PageName',
+                         'DateTime', 'Artist', 'HostComputer']:
+             if value is not None:
+-                return value.view('|S{!s}'.format(str(value.nbytes // value.size))).tostring()
++                return value.view('|S{!s}'.format(str(value.nbytes // value.size))).tobytes()
+         if human:
+             if tag_name == 'Compression':
+                 value = {1: 'Uncompressed', 2: 'CCITT1D', 3: 'Group3Fax',


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 0001-Disable-bittools-extension.patch
 0002-Robust-definition-list-generation.patch
 0003-Compatibility-with-numpy2.patch
+0004-numpy-2.3-compat.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/pylibtiff/-/compare/55ee1a4144da5404654ebb4899e15aa2faa757f5...47290de53940aa1fcd8bcdc612611730219305fb

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pylibtiff/-/compare/55ee1a4144da5404654ebb4899e15aa2faa757f5...47290de53940aa1fcd8bcdc612611730219305fb
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/pkg-grass-devel/attachments/20250910/b381b82f/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list