Bug#887811: python-qrencode: Missing PIL dependencies due to use of Python 2.x substvars for Python 3 package

2018-02-18 Thread Hugo Lefeuvre
Hi Chris,

Thanks for noticing this ! It looks like I have copy-and-pasted
the Python 2 dependencies without updating the variables... :)

I'll upload a fixed package.

Cheers,
 Hugo

-- 
 Hugo Lefeuvre (hle)|www.owl.eu.com
4096/ 9C4F C8BF A4B0 8FC5 48EB 56B8 1962 765B B9A8 BACA


signature.asc
Description: PGP signature


Bug#887811: python-qrencode: Missing PIL dependencies due to use of Python 2.x substvars for Python 3 package

2018-01-19 Thread Chris Lamb
Package: python3-qrencode
Version: 1.2-2
Severity: serious
Tags: patch

Hi,

Looks like we are missing PIL dependencies due to use of Python 2.x
substvars for the Python 3 package:

$ apt install python3-qrencode

$ ipython
In [1]: import qrencode
---
ModuleNotFoundError   Traceback (most recent call last)
 in ()
> 1 import qrencode

/usr/lib/python3/dist-packages/qrencode/__init__.py in ()
  1 import sys
  2 from ._qrencode import encode as _encode
> 3 from PIL import Image
  4 
  5 if sys.version_info >= (3,):

ModuleNotFoundError: No module named 'PIL'


Patch attached.


Regards,

-- 
  ,''`.
 : :'  : Chris Lamb
 `. `'`  la...@debian.org / chris-lamb.co.uk
   `-
diff --git a/debian/control b/debian/control
index 17f84c3..16a948a 100644
--- a/debian/control
+++ b/debian/control
@@ -29,9 +29,9 @@ Description: Python bindings for the Qrencode QR Code 
generator library
 Package: python3-qrencode
 Architecture: any
 Depends: ${misc:Depends},
- ${python:Depends},
+ ${python3:Depends},
  ${shlibs:Depends},
-Provides: ${python:Provides},
+Provides: ${python3:Provides},
 Description: Python bindings for the Qrencode QR Code generator library
  This package contains modules that allow you to use the Qrencode QR
  Code generator library in Python programs.