Control: tag -1 + patch

Patch attached, which also adds missing dependencies on python-scipy
and python3-scipy (for the clean target, waah?) and patches setup.py to
cope with unicode in Python 3.

(Please, please build packages in a clean chroot before uploading, you
would have caught all these things immediately.)

-- 
Jonathan Wiltshire                                      j...@debian.org
Debian Developer                         http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC  74C3 5394 479D D352 4C51

diff -Nru iapws-1.0.5/debian/control iapws-1.0.5/debian/control
--- iapws-1.0.5/debian/control	2014-10-10 09:28:42.000000000 +0100
+++ iapws-1.0.5/debian/control	2014-10-12 21:40:28.000000000 +0100
@@ -2,7 +2,7 @@
 Section: python
 Priority: extra
 Maintainer: Alastair McKinstry <mckins...@debian.org>
-Build-Depends: debhelper (>= 9), python-all, python3-all
+Build-Depends: debhelper (>= 9), python-all, python3-all, python-setuptools, python3-setuptools, python-scipy, python3-scipy
 Standards-Version: 3.9.6
 X-Python-Version: >= 2.6
 X-Python3-Version: >= 3.2
diff -Nru iapws-1.0.5/debian/patches/series iapws-1.0.5/debian/patches/series
--- iapws-1.0.5/debian/patches/series	2014-10-10 09:28:42.000000000 +0100
+++ iapws-1.0.5/debian/patches/series	2014-10-12 21:56:15.000000000 +0100
@@ -1 +1,2 @@
 python3.patch
+setup-utf8.patch
diff -Nru iapws-1.0.5/debian/patches/setup-utf8.patch iapws-1.0.5/debian/patches/setup-utf8.patch
--- iapws-1.0.5/debian/patches/setup-utf8.patch	1970-01-01 01:00:00.000000000 +0100
+++ iapws-1.0.5/debian/patches/setup-utf8.patch	2014-10-12 21:57:42.000000000 +0100
@@ -0,0 +1,19 @@
+--- iapws-1.0.5.orig/setup.py
++++ iapws-1.0.5/setup.py
+@@ -2,9 +2,13 @@
+ 
+ from iapws import __version__
+ 
+-    
+-with open('README.rst') as file:
+-    long_description = file.read()
++import sys
++if sys.version_info[0] < 3:
++    with open('README.rst') as file:
++        long_description = file.read()
++else:
++    with open('README.rst', encoding='utf8') as file:
++        long_description = file.read()
+ 
+ setup(
+     name='iapws',

Attachment: signature.asc
Description: Digital signature

Reply via email to