[Pkg-raspi-maintainers] Bug#936644: gpiozero: Python2 removal in sid/bullseye

peter green plugwash at p10link.net
Fri Aug 30 21:29:20 BST 2019


> Your package either build-depends, depends on Python2, or uses Python2
> in the autopkg tests.  Please stop using Python2
I was looking at removing python2 support from pigpio and that brought gpiozero to my attention. I found that I had typod the recommends/suggests in the python3-gpiozero package in my previous NMU.

The attached debdiff, removes the python-gpiozero package and related stuff and fixes the typos such that python3-gpiozero correctly recommends/suggests (depending on architecture) python3-pigpio.

I may or may not upload said debdiff as a NMU later.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-raspi-maintainers/attachments/20190830/536c46c9/attachment.html>
-------------- next part --------------
diff -Nru gpiozero-1.4.1/debian/changelog gpiozero-1.4.1/debian/changelog
--- gpiozero-1.4.1/debian/changelog	2019-01-24 14:45:24.000000000 +0000
+++ gpiozero-1.4.1/debian/changelog	2019-08-30 19:40:05.000000000 +0000
@@ -1,3 +1,14 @@
+gpiozero (1.4.1-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix error in python3-gpiozero reccomends/suggests, change 
+    python-pigpio to python3-pigpio.
+  * Drop python-gpiozero package (Closes: 936644).
+  * Drop rules logic to remove "pinout" utility from python-gpiozero package.
+  * Drop python2 related build-dependencies.
+
+ -- Peter Michael Green <plugwash at debian.org>  Fri, 30 Aug 2019 19:40:05 +0000
+
 gpiozero (1.4.1-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru gpiozero-1.4.1/debian/control gpiozero-1.4.1/debian/control
--- gpiozero-1.4.1/debian/control	2019-01-24 14:05:11.000000000 +0000
+++ gpiozero-1.4.1/debian/control	2019-08-30 19:40:05.000000000 +0000
@@ -7,10 +7,6 @@
 Build-Depends:
  debhelper (>= 11~),
  dh-python,
- python-all (>= 2.6.6-3),
- python-mock,
- python-pytest,
- python-setuptools (>= 0.6b3),
  python3-all,
  python3-mock,
  python3-pytest,
@@ -20,25 +16,6 @@
 Vcs-Git: https://salsa.debian.org/raspi-team/gpiozero.git
 Vcs-Browser: https://salsa.debian.org/raspi-team/gpiozero
 
-Package: python-gpiozero
-Architecture: any
-Depends:
- python-rpi.gpio [armel armhf arm64],
- ${misc:Depends},
- ${python:Depends},
-Recommends:
- python-pigpio [!armel !armhf !arm64]
-Suggests:
- python-pigpio [armel armhf arm64]
-Description: simple interface to everyday GPIO components used with Raspberry Pi (Python 2)
- gpiozero is an object-oriented wrapper around using various elelctronic
- components with the GPIO interface on the Raspberry Pi. It allows
- interacting with components like LEDs and buttons by defining them as
- object instances which provide callback hooks to react to changes, e.g.
- a button being pressed.
- .
- This package contains the Python 2 module.
-
 Package: python3-gpiozero
 Architecture: any
 Depends:
@@ -46,9 +23,9 @@
  ${misc:Depends},
  ${python3:Depends},
 Recommends:
- python-pigpio [!armel !armhf !arm64]
+ python3-pigpio [!armel !armhf !arm64]
 Suggests:
- python-pigpio [armel armhf arm64]
+ python3-pigpio [armel armhf arm64]
 Description: simple interface to everyday GPIO components used with Raspberry Pi (Python 3)
  gpiozero is an object-oriented wrapper around using various elelctronic
  components with the GPIO interface on the Raspberry Pi. It allows
diff -Nru gpiozero-1.4.1/debian/rules gpiozero-1.4.1/debian/rules
--- gpiozero-1.4.1/debian/rules	2019-01-24 14:45:24.000000000 +0000
+++ gpiozero-1.4.1/debian/rules	2019-08-30 19:40:05.000000000 +0000
@@ -6,8 +6,4 @@
 export PYBUILD_DISABLE=test
 
 %:
-	dh $@ --with python2,python3 --buildsystem=pybuild
-
-override_dh_auto_install:
-	dh_auto_install
-	rm -rf debian/python-gpiozero/usr/bin/
+	dh $@ --with python3 --buildsystem=pybuild


More information about the Pkg-raspi-maintainers mailing list