[Git][debian-gis-team/python-cartopy][master] 2 commits: Use pybuild-plugin-pyproject instead of python3-setuptools.

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Thu Sep 22 20:12:47 BST 2022



Bas Couwenberg pushed to branch master at Debian GIS Project / python-cartopy


Commits:
07b76df6 by Bas Couwenberg at 2022-09-22T19:40:47+02:00
Use pybuild-plugin-pyproject instead of python3-setuptools.

- - - - -
0a64ee9c by Bas Couwenberg at 2022-09-22T19:59:13+02:00
Remove extra license files & strip RPATH.

- - - - -


4 changed files:

- debian/changelog
- debian/control
- debian/rules
- − debian/source/lintian-overrides


Changes:

=====================================
debian/changelog
=====================================
@@ -2,6 +2,7 @@ python-cartopy (0.21.0+dfsg-3) UNRELEASED; urgency=medium
 
   * Team upload.
   * Drop obsolete workaround for proj_api.h deprecation.
+  * Use pybuild-plugin-pyproject instead of python3-setuptools.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 12 Sep 2022 14:44:53 +0200
 


=====================================
debian/control
=====================================
@@ -5,12 +5,14 @@ Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>,
 Section: python
 Priority: optional
 Rules-Requires-Root: no
-Build-Depends: cython3,
+Build-Depends: chrpath,
+               cython3,
                debhelper-compat (= 12),
                dh-python,
                libgeos-dev,
                libproj-dev (>= 8.0.0),
                proj-bin (>= 8.0.0),
+               pybuild-plugin-pyproject,
                python3-all-dev,
                python3-fiona,
                python3-matplotlib,


=====================================
debian/rules
=====================================
@@ -49,15 +49,19 @@ override_dh_auto_install:
 	$(RM) -r debian/python3-cartopy/usr/lib/python3*/dist-packages/cartopy/tests/mpl/baseline_images
 	mv debian/python3-cartopy/usr/bin/cartopy_feature_download.py debian/python3-cartopy/usr/bin/cartopy_feature_download
 
-override_dh_install:
-	dh_install
-
 	# Remove documentation outside usr/share/doc
 	$(RM) debian/*/usr/share/cartopy/data/shapefiles/gshhs/README.TXT
 
+	# Remove extra license files
+	$(RM) debian/*/usr/lib/python*/dist-packages/*/COPYING
+	$(RM) debian/*/usr/lib/python*/dist-packages/*/COPYING.LESSER
+
 	# Don't include test output
 	$(RM) -r debian/*/usr/lib/python*/dist-packages/cartopy_test_output
 
+	# Strip RPATH
+	chrpath --delete debian/*/usr/lib/python*/dist-packages/*/*.so
+
 override_dh_python3:
 	dh_python3
 	dh_numpy3


=====================================
debian/source/lintian-overrides deleted
=====================================
@@ -1,3 +0,0 @@
-# Build uses setuptools.
-missing-prerequisite-for-pyproject-backend setuptools.build_meta *
-



View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/-/compare/3c1b27384b3470e6114201249780b961a3d8ae8d...0a64ee9cc0c459a266abec002b155271cb3cf291

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/-/compare/3c1b27384b3470e6114201249780b961a3d8ae8d...0a64ee9cc0c459a266abec002b155271cb3cf291
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/20220922/5fe039f2/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list