[Git][debian-gis-team/pygac][master] Add patch to not use deprecated distutils module.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Tue Feb 21 06:20:09 GMT 2023



Bas Couwenberg pushed to branch master at Debian GIS Project / pygac


Commits:
ea8a6e41 by Bas Couwenberg at 2023-02-21T07:19:54+01:00
Add patch to not use deprecated distutils module.

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/no-distutils.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -3,6 +3,7 @@ pygac (1.7.1-3) UNRELEASED; urgency=medium
   * Team upload.
   * Enable Salsa CI.
   * Bump Standards-Version to 4.6.2, no changes.
+  * Add patch to not use deprecated distutils module.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sun, 08 Jan 2023 15:19:20 +0100
 


=====================================
debian/control
=====================================
@@ -14,6 +14,7 @@ Build-Depends: debhelper-compat (= 12),
                python3-geotiepoints,
                python3-h5py,
                python3-numpy,
+               python3-packaging,
                python3-pyorbital,
                python3-pytest,
                python3-scipy,
@@ -28,6 +29,7 @@ Package: python3-pygac
 Architecture: any
 Depends: python3-geotiepoints,
          python3-h5py,
+         python3-packaging,
          python3-pyorbital,
          python3-scipy,
          ${python3:Depends},


=====================================
debian/patches/no-distutils.patch
=====================================
@@ -0,0 +1,33 @@
+Description: Don't use deprecated distutils module.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: https://github.com/pytroll/pygac/pull/122
+
+--- a/pygac/reader.py
++++ b/pygac/reader.py
+@@ -43,7 +43,7 @@ from pyorbital.orbital import Orbital
+ from pyorbital import astronomy
+ from pygac.calibration import Calibrator, calibrate_solar, calibrate_thermal
+ from pygac import gac_io
+-from distutils.version import LooseVersion
++from packaging.version import Version
+ 
+ LOG = logging.getLogger(__name__)
+ 
+@@ -770,7 +770,7 @@ class Reader(six.with_metaclass(ABCMeta)
+             self.lons, self.lats, 0)
+         # Sometimes (pyorbital <= 1.6.1) the get_observer_look_not_tle returns nodata instead of 90.
+         # Problem solved with https://github.com/pytroll/pyorbital/pull/77
+-        if LooseVersion(pyorbital.__version__) <= LooseVersion('1.6.1'):
++        if Version(pyorbital.__version__) <= Version('1.6.1'):
+             sat_elev[:, mid_column] = 90
+         return sat_azi, sat_elev
+ 
+--- a/requirements.txt
++++ b/requirements.txt
+@@ -2,5 +2,6 @@ numpy>=1.6.1
+ h5py>=2.0.1
+ scipy>=0.8.0
+ python-geotiepoints>=1.1.8
++packaging>=14.0
+ 
+ 


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 0001-Fix-config.patch
 0002-Install-the-tests-sub-package.patch
 0003-Compatibility-with-numpy-v1.24.patch
+no-distutils.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/pygac/-/commit/ea8a6e4103887549c2001cbaa9a4815e6ae12c67

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pygac/-/commit/ea8a6e4103887549c2001cbaa9a4815e6ae12c67
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/20230221/6fcd0f81/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list