[Python-modules-commits] [python-hidapi] 02/10: Convert to pybuild

Tristan Seligmann mithrandi at moszumanska.debian.org
Mon Dec 11 10:48:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

mithrandi pushed a commit to annotated tag debian/0.7.99.post21-1
in repository python-hidapi.

commit 56ff361bda7cc85c3964095f5fecd7db6444f566
Author: Marek Marczykowski-Górecki <marmarek at invisiblethingslab.com>
Date:   Tue Oct 31 01:30:37 2017 +0100

    Convert to pybuild
    
    And also reformat Build-Depends.
    
    Signed-off-by: Marek Marczykowski-Górecki <marmarek at invisiblethingslab.com>
---
 debian/compat  |  2 +-
 debian/control | 10 +++++++++-
 debian/rules   |  8 +++++++-
 3 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/debian/compat b/debian/compat
index 7f8f011..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-7
+9
diff --git a/debian/control b/debian/control
index 4f41574..3c79ae5 100644
--- a/debian/control
+++ b/debian/control
@@ -4,12 +4,20 @@ Uploaders: Tristan Seligmann <mithrandi at debian.org>
 Section: python
 Priority: optional
 Homepage: https://github.com/trezor/cython-hidapi
-Build-Depends: python-all-dev, debhelper (>=7), dh-python, cython, libhidapi-dev, libusb-1.0-0-dev, libudev-dev
+Build-Depends:
+ python-all-dev,
+ debhelper (>=9),
+ dh-python,
+ cython,
+ libhidapi-dev,
+ libusb-1.0-0-dev,
+ libudev-dev,
 Standards-Version: 3.9.6
 
 Package: python-hid
 Architecture: any
 Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
+Provides: ${python:Provides}
 Description: cython interface to hidapi
  This has been tested with:
  .
diff --git a/debian/rules b/debian/rules
index c455c93..60a2f5c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,7 +3,13 @@
 # This file was automatically generated by stdeb 0.6.0+git at
 # Fri, 26 Sep 2014 11:34:03 +0200
 
+export PYBUILD_NAME=hid
+
+override_dh_clean:
+	dh_clean
+	rm -f hid.c hidraw.c
+
 %:
-	dh $@ --with python2 --buildsystem=python_distutils
+	dh $@ --with python2 --buildsystem=pybuild
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-hidapi.git



More information about the Python-modules-commits mailing list