[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#943693: RFP: python-ws-discovery -- WS-Discovery implementation for Python



Package: wnpp
Severity: wishlist
Tags: patch

* Package name    : python-ws-discovery
  Version         : 1.1.2
  Upstream Author : Andrei Kopats <andrei.kopats@gmail.com>
* URL             : https://github.com/andreikop/python-ws-discovery
* License         : LGPL-3
  Programming Lang: Python
  Description     : WS-Discovery implementation for Python

WS-Discovery is a multicast-based device discovery protocol often used
with cameras. This module allows discovering other devices as well as
publishing oneself.

As of yet, there is no comparable functionality in the Debian archive.
The gsoap package provides some functionality to implement wsd as does
python-zeep, but neither is readily usable for the discovery purpose.
For these reasons, I think that adding python-ws-discovery would be
good.

I don't intend to maintain this package, but I am providing an initial
packaging together with this RFP anyway. It's a simple python module
with few oddities. The one thing that will need attention is its use of
the generic name /usr/bin/discover. I'm going to discuss that with
upstream. Note that the source vs binary package name mismatch is
intentional. Upstream really calls the source "python-ws-discovery", but
the importable module is "wsdiscovery", so the binary package should be
"python3-wsdiscovery". I recommend maintaining this package within the
DPMT (cced). Hope this helps.

Helmut
diff -ruN a/debian/TODO b/debian/TODO
--- a/debian/TODO	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/TODO	2019-10-25 10:25:48.000000000 +0200
@@ -0,0 +1,2 @@
+* Demote python3-click to recommends. Should be dh_python3 --recommneds=click, but doesn't work!?
+* Don't occupy generic name /usr/bin/discover.
diff -ruN a/debian/changelog b/debian/changelog
--- a/debian/changelog	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/changelog	2019-10-28 08:34:45.314112777 +0100
@@ -0,0 +1,5 @@
+python-ws-discovery (1.1.2-1) unstable; urgency=medium
+
+  * Initial release. (Closes: #-1)
+
+ -- Helmut Grohne <helmut.grohne@intenta.de>  Fri, 25 Oct 2019 10:25:48 +0200
diff -ruN a/debian/control b/debian/control
--- a/debian/control	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/control	2019-10-28 08:35:01.009977195 +0100
@@ -0,0 +1,27 @@
+Source: python-ws-discovery
+Build-Depends:
+ debhelper-compat (= 12),
+ dh-python,
+ python3,
+ python3-click,
+ python3-mock <!nocheck>,
+ python3-netifaces,
+ python3-pytest <!nocheck>,
+ python3-setuptools,
+Maintainer: TBD
+Section: python
+Priority: optional
+Standards-Version: 4.4.1
+Homepage: https://github.com/andreikop/python-ws-discovery
+Testsuite: autopkgtest-pkg-python
+
+Package: python3-wsdiscovery
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Recommends: ${python3:Recommends}
+Description: WS-Discovery implementation for Python - Python 3.X module
+ The module allows discovering WS-Discovery compatible devices as well as
+ publishing oneself as a discoverable device.
+ .
+ WS-Discovery is a multicast-based device discovery protocol defined by an
+ OASIS standard.
diff -ruN a/debian/copyright b/debian/copyright
--- a/debian/copyright	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/copyright	2019-10-25 10:25:48.000000000 +0200
@@ -0,0 +1,17 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: python-ws-discovery
+Source: https://github.com/andreikop/python-ws-discovery
+
+Files: *
+Copyright:
+ 2013-2018 Andrei Kopats <andrei.kopats@gmail.com>
+ 2016-2019 Petri Savolainen <petri@koodaamo.fi>
+License: LGPL-3
+
+Files: debian/*
+Copyright: 2019 Intenta GmbH
+License: LGPL-3
+
+License: LGPL-3
+ On Debian systems, the full text of the GNU Lesser General Public License
+ version 3 can be found in the file `/usr/share/common-licenses/LGPL-3'.
diff -ruN a/debian/rules b/debian/rules
--- a/debian/rules	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/rules	2019-10-25 10:25:48.000000000 +0200
@@ -0,0 +1,4 @@
+#!/usr/bin/make -f
+export PYBUILD_NAME=wsdiscovery
+%:
+	dh $@ --buildsystem=pybuild --with=python3
diff -ruN a/debian/source/format b/debian/source/format
--- a/debian/source/format	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/source/format	2019-10-25 10:25:48.000000000 +0200
@@ -0,0 +1 @@
+3.0 (quilt)
diff -ruN a/debian/watch b/debian/watch
--- a/debian/watch	1970-01-01 01:00:00.000000000 +0100
+++ b/debian/watch	2019-10-25 10:25:48.000000000 +0200
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/python-ws-discovery-$1\.tar\.gz/ \
+  https://github.com/andreikop/python-ws-discovery/tags .*/v?(\d\S+)\.tar\.gz

Reply to: