Package: python-pyinotify
Version: 0.9.2-1
Severity: wishlist

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dear Maintainer,

Upstream pyinotify support Python 3.  This patch adds the necessary
packaging to add support for python3-pyinotify.

- -- System Information:
Debian Release: wheezy/sid
  APT prefers precise-updates
  APT policy: (500, 'precise-updates'), (500, 'precise-security'), (500, 
'precise'), (100, 'precise-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-24-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-pyinotify depends on:
ii  python     2.7.3-0ubuntu2
ii  python2.7  2.7.3-0ubuntu3

python-pyinotify recommends no packages.

Versions of packages python-pyinotify suggests:
pn  python-pyinotify-doc  <none>

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBCAAGBQJPqbc6AAoJEBJutWOnSwa/nmcP/RkfCe/O1R3GQ6S05HmFFgER
z0BijZ74GBCeojyI69Eh9mMPFmU4J+OFyf8rUGHqPlPEqltty68LoDRZw2qQHtjT
OdaSEhwbVWVYwaFYxBDXfGSxZySSzOl8FZSJ6lqeuHuQjNHQMfnGTf/1k6ScnVW6
3pn2QD4J/YeGZPZG0gkdyFTD4SsDFR8eq6ORENv2FdAQ1oqPsOTt6oyVCHD5A+7O
ueD1cmSyRNGG9BB2RfzyDx6mevYVPl6yF6rWvSOTN+be353R+v5f8ZxfdjtQZwRH
UzRFqYjQeP0dnc1ENn2TkUFF6BI028APE4i8FpqqkV4ahK4meATwzjgElqDwocCP
4POd3wcagm34QdhT/8v28vVqKIdzx77EKoubbgNjQ9uI2jtMKWyhYrVDHoeFH5aU
yWM7esfbQ+d/Ceidyva9b6cF31G3OIwC+l8v7CgGYENXxDBhb9CUHk79Re+MuqHd
EqNsgiQd73SnSU+vyDRu5p9ly+zNXvwCawcqDX3+8nI+OWZx9Eqbq4dnA4zVvA2k
aWrWQ/kcMKFUQLF1/x/YkgnfZmD6R+oIhFAw87VlAtUuR6m180Ys+HdI/996XLMe
FKwGs63qT62Boa3ayZHujCplJBRPoEggvKWRi4FygCmkF1/OCmGdR3U8DwewKXgY
6zz5dpL/X2BPOwa/sh6n
=yxcV
-----END PGP SIGNATURE-----
=== modified file 'debian/control'
--- debian/control	2012-03-19 20:15:33 +0000
+++ debian/control	2012-05-08 23:37:02 +0000
@@ -3,12 +3,13 @@
 Priority: optional
 Maintainer: Mikhail Gusarov <[email protected]>
 Uploaders: Debian Python Modules Team <[email protected]>
-Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~)
+Build-Depends: debhelper (>= 7.0.50~), python (>= 2.6.6-3~), python3
 Build-Depends-Indep: python-epydoc
 Standards-Version: 3.9.3
 Homepage: https://github.com/seb-m/pyinotify
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/pyinotify/trunk/
 Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pyinotify/trunk/
+X-Python3-Version: >= 3.2
 
 Package: python-pyinotify
 Architecture: all
@@ -21,11 +22,24 @@
  inotify is a Linux Kernel feature available since 2.6.13. inotify makes
  it possible for applications to easily be notified of filesystem changes.
 
+Package: python3-pyinotify
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}
+Provides: ${python3:Provides}
+Suggests: python-pyinotify-doc
+Description: simple Linux inotify Python bindings
+ pyinotify is a simple wrapper for the Linux inotify mechanism.
+ .
+ inotify is a Linux Kernel feature available since 2.6.13. inotify makes
+ it possible for applications to easily be notified of filesystem changes.
+ .
+ This is the Python 3 version of the package.
+
 Package: python-pyinotify-doc
 Architecture: all
 Section: doc
 Depends: ${misc:Depends}
-Recommends: python-pyinotify
+Recommends: python-pyinotify, python3-pyinotify
 Description: simple Linux inotify Python bindings -- documentation
  pyinotify is a simple wrapper for the Linux inotify mechanism.
  .

=== added file 'debian/python-pyinotify.install'
--- debian/python-pyinotify.install	1970-01-01 00:00:00 +0000
+++ debian/python-pyinotify.install	2012-05-08 23:41:06 +0000
@@ -0,0 +1,1 @@
+usr/lib/python2*

=== added file 'debian/python3-pyinotify.install'
--- debian/python3-pyinotify.install	1970-01-01 00:00:00 +0000
+++ debian/python3-pyinotify.install	2012-05-08 23:57:50 +0000
@@ -0,0 +1,1 @@
+usr/lib/python3

=== modified file 'debian/rules'
--- debian/rules	2011-08-27 22:26:37 +0000
+++ debian/rules	2012-05-08 23:57:50 +0000
@@ -1,16 +1,28 @@
 #!/usr/bin/make -f
 
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
+
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3
+
+build-python%:
+	python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+	dh_auto_build
+
+install-python%:
+	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+	dh_auto_install
+	[ ! -e docstrings ] || mv docstrings docstrings.orig
+	epydoc python2/pyinotify.py
 
 override_dh_auto_clean:
 	dh_auto_clean -- --all
-
+	rm -rf build
+	rm -rf *.egg-info
 	rm -rf html
 	[ ! -e docstrings.orig ] || mv docstrings.orig docstrings
-
-override_dh_auto_install:
-	dh_auto_install --destdir=$(CURDIR)/debian/python-pyinotify -- --install-layout=deb
-
-	[ ! -e docstrings ] || mv docstrings docstrings.orig
-	epydoc python2/pyinotify.py

Reply via email to