[Git][debian-gis-team/python-cartopy][master] Use execute_{before,after} instead of override in rules file.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Sun Aug 13 10:17:16 BST 2023
Bas Couwenberg pushed to branch master at Debian GIS Project / python-cartopy
Commits:
77764025 by Bas Couwenberg at 2023-08-13T11:13:47+02:00
Use execute_{before,after} instead of override in rules file.
- - - - -
3 changed files:
- debian/changelog
- debian/clean
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -2,6 +2,7 @@ python-cartopy (0.22.0+dfsg-2) UNRELEASED; urgency=medium
* Team upload.
* Remove generated files in clean target.
+ * Use execute_{before,after} instead of override in rules file.
-- Bas Couwenberg <sebastic at debian.org> Fri, 11 Aug 2023 16:25:40 +0200
=====================================
debian/clean
=====================================
@@ -2,3 +2,4 @@ lib/*-info/
lib/cartopy/_crs.c
lib/cartopy/geodesic/_geodesic.c
lib/cartopy/trace.cpp
+lib/cartopy/_version.py
=====================================
debian/rules
=====================================
@@ -25,14 +25,6 @@ export PYBUILD_TEST_ARGS = --pyargs -v -m "not network and not natural_earth" ca
%:
dh $@ --with python3,numpy3 --buildsystem=pybuild
-override_dh_clean:
- dh_clean $(CURDIR)/lib/cartopy/_version.py
-
-override_dh_auto_clean:
- dh_auto_clean || true
- $(RM) -r .pybuild
- $(RM) -r __pycache__
-
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
ifneq (,$(filter $(DEB_BUILD_ARCH),mips64el s390x ppc64))
@@ -42,9 +34,10 @@ else
endif
endif
-override_dh_auto_install:
+execute_before_dh_auto_install:
mkdir -p debian/python-cartopy-data/usr/share/cartopy/data
- dh_auto_install
+
+execute_after_dh_auto_install:
$(RM) -r debian/python3-cartopy/usr/lib/python3*/dist-packages/cartopy/data
$(RM) -r debian/python3-cartopy/usr/lib/python3*/dist-packages/cartopy/tests/mpl/baseline_images
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/-/commit/7776402567d2997a95f07258348664403ea2f1d0
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/python-cartopy/-/commit/7776402567d2997a95f07258348664403ea2f1d0
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/20230813/4cbc347c/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list