[Python-modules-commits] [python-hidapi] 08/10: New upstream release.

Tristan Seligmann mithrandi at moszumanska.debian.org
Mon Dec 11 10:48:25 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 67a10fb974031326ad2937cacd0d8727979d394a
Author: Tristan Seligmann <mithrandi at mithrandi.net>
Date:   Mon Dec 11 10:24:02 2017 +0200

    New upstream release.
---
 debian/changelog             |  6 ++++++
 debian/control               | 13 +++++++------
 debian/copyright             |  1 -
 debian/patches/libhidapi-dev | 39 ---------------------------------------
 debian/patches/series        |  1 -
 debian/rules                 |  1 +
 6 files changed, 14 insertions(+), 47 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9a1a01a..972d10a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+python-hidapi (0.7.99.post21-1) unstable; urgency=medium
+
+  * New upstream release.
+
+ -- Tristan Seligmann <mithrandi at debian.org>  Mon, 11 Dec 2017 10:18:08 +0200
+
 python-hidapi (0.7.99.6-3) unstable; urgency=low
 
   * Include python3 package
diff --git a/debian/control b/debian/control
index d1767f3..0cab5c3 100644
--- a/debian/control
+++ b/debian/control
@@ -5,16 +5,18 @@ Section: python
 Priority: optional
 Homepage: https://github.com/trezor/cython-hidapi
 Build-Depends:
- python-all-dev,
- debhelper (>=9),
- dh-python,
  cython,
  cython3,
+ debhelper (>=9),
+ dh-python,
  libhidapi-dev,
- libusb-1.0-0-dev,
  libudev-dev,
+ libusb-1.0-0-dev,
+ python-all-dev,
+ python-setuptools,
  python3-all,
- python3-all-dev
+ python3-all-dev,
+ python3-setuptools,
 Standards-Version: 3.9.6
 
 Package: python3-hid
@@ -52,4 +54,3 @@ Description: cython interface to hidapi
  OS X.  HIDAPI can be either built as a shared library (.so or .dll) or
  can be embedded directly into a target application by adding a single source
  file (per platform) and a single header.
-
diff --git a/debian/copyright b/debian/copyright
index 26f5d5a..4752868 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -18,4 +18,3 @@ License: GPL-3+
  On Debian systems, the full text of the GNU General Public
  License version 3 can be found in the file
  `/usr/share/common-licenses/GPL-3'.
-
diff --git a/debian/patches/libhidapi-dev b/debian/patches/libhidapi-dev
deleted file mode 100644
index 26b2fb0..0000000
--- a/debian/patches/libhidapi-dev
+++ /dev/null
@@ -1,39 +0,0 @@
-From: Richard Ulrich <richi at paraeasy.ch>
-Date: Mon, 11 Dec 2017 10:01:02 +0200
-Subject: libhidapi-dev
-
----
- setup.py | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/setup.py b/setup.py
-index d2087e0..25c2cad 100644
---- a/setup.py
-+++ b/setup.py
-@@ -6,21 +6,21 @@ import os
- import sys
- 
- hidapi_topdir = os.path.join(os.getcwd(), 'hidapi')
--hidapi_include = os.path.join(hidapi_topdir, 'hidapi')
-+hidapi_include = '/usr/include/hidapi'
- def hidapi_src(platform):
-     return os.path.join(hidapi_topdir, platform, 'hid.c')
- 
- if sys.platform.startswith('linux'):
-     modules = [
-         Extension('hid',
--                  sources = ['hid.pyx', 'chid.pxd', hidapi_src('libusb')],
-+                  sources = ['hid.pyx', 'chid.pxd'],
-                   include_dirs = [hidapi_include, '/usr/include/libusb-1.0'],
--                  libraries = ['usb-1.0', 'udev', 'rt'],
-+                  libraries = ['usb-1.0', 'udev', 'rt', 'hidapi-libusb'],
-         ),
-         Extension('hidraw',
--                  sources = ['hidraw.pyx', hidapi_src('linux')],
-+                  sources = ['hidraw.pyx'],
-                   include_dirs = [hidapi_include],
--                  libraries = ['udev', 'rt'],
-+                  libraries = ['udev', 'rt', 'hidapi-hidraw'],
-         )
-     ]
- 
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 849f5e9..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-libhidapi-dev
diff --git a/debian/rules b/debian/rules
index 769eabb..451865e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,6 +4,7 @@
 # Fri, 26 Sep 2014 11:34:03 +0200
 
 export PYBUILD_NAME=hid
+export PYBUILD_BUILD_ARGS=--with-system-hidapi
 
 override_dh_clean:
 	dh_clean

-- 
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