diff -Nru pyx-0.12.1/debian/changelog pyx-0.12.1/debian/changelog --- pyx-0.12.1/debian/changelog 2017-08-29 11:45:28.000000000 +0000 +++ pyx-0.12.1/debian/changelog 2018-01-08 08:06:26.000000000 +0000 @@ -1,3 +1,11 @@ +pyx (0.12.1-9) unstable; urgency=medium + + * Switch autopkgtest tests to use python-pil. + * Fix examples for PIL. + * Update Standards-Version to 4.1.3 (no changes required). + + -- Stuart Prescott Mon, 08 Jan 2018 19:06:26 +1100 + pyx (0.12.1-8) unstable; urgency=medium * Add a build-dependency on latexmk for use with sphinx 1.6 (Closes: #872243) diff -Nru pyx-0.12.1/debian/control pyx-0.12.1/debian/control --- pyx-0.12.1/debian/control 2017-08-29 11:45:28.000000000 +0000 +++ pyx-0.12.1/debian/control 2018-01-08 08:06:26.000000000 +0000 @@ -1,6 +1,6 @@ Source: pyx Maintainer: Stuart Prescott -Standards-Version: 4.1.0 +Standards-Version: 4.1.3 Section: python Priority: optional Build-Depends: diff -Nru pyx-0.12.1/debian/patches/pil-examples.patch pyx-0.12.1/debian/patches/pil-examples.patch --- pyx-0.12.1/debian/patches/pil-examples.patch 1970-01-01 00:00:00.000000000 +0000 +++ pyx-0.12.1/debian/patches/pil-examples.patch 2018-01-08 08:06:26.000000000 +0000 @@ -0,0 +1,24 @@ +Description: Change image handling examples to use PIL + python-imaging is deprecated, update to use PIL instead. +Author: Stuart Prescott +Forwarded: not-needed (pyx3 is newer upstream version with these changes) +--- a/examples/bitmap/jpeg.txt ++++ b/examples/bitmap/jpeg.txt +@@ -17,7 +17,7 @@ + the data and write it to the file. The straightforward solution would be to + replace the creation of the `bitmap.jpegimage` instance by: + +- import Image ++ from PIL import Image + i = Image.open("jpeg.jpg") + + While this works perfectly, it will result in a totally uncompressed +--- a/examples/bitmap/pil.py ++++ b/examples/bitmap/pil.py +@@ -1,5 +1,5 @@ + from pyx import * +-import Image ++from PIL import Image + + im = Image.new("RGB", (3, 1)) + im.putpixel((0, 0), (255, 0, 0)) diff -Nru pyx-0.12.1/debian/patches/series pyx-0.12.1/debian/patches/series --- pyx-0.12.1/debian/patches/series 2017-08-29 11:45:28.000000000 +0000 +++ pyx-0.12.1/debian/patches/series 2018-01-08 08:06:26.000000000 +0000 @@ -7,3 +7,4 @@ reproducible-timestamps.patch reproducible-image-name.patch pil-tostring.patch +pil-examples.patch diff -Nru pyx-0.12.1/debian/tests/control pyx-0.12.1/debian/tests/control --- pyx-0.12.1/debian/tests/control 2017-08-29 11:45:28.000000000 +0000 +++ pyx-0.12.1/debian/tests/control 2018-01-08 08:06:26.000000000 +0000 @@ -3,6 +3,6 @@ findutils, ghostscript, imagemagick, - python-imaging, + python-pil, texlive-fonts-recommended, texlive-latex-base