Codebase list pypng / f78e3f4
Drop python2 support; Closes: #937507 Sandro Tosi 4 years ago
5 changed file(s) with 8 addition(s) and 40 deletion(s). Raw diff Collapse all Expand all
0 pypng (0.0.20+ds-2) UNRELEASED; urgency=medium
1
2 * Team upload.
3 * Drop python2 support; Closes: #937507
4
5 -- Sandro Tosi <morph@debian.org> Mon, 03 Feb 2020 11:18:28 -0500
6
07 pypng (0.0.20+ds-1) unstable; urgency=medium
18
29 * New upstream release.
33 Maintainer: Sascha Steinbiss <satta@debian.org>
44 Build-Depends: debhelper (>= 12),
55 dh-python,
6 python-all,
7 python-setuptools,
86 python3-all,
97 python3-setuptools
108 Standards-Version: 4.4.0
119 Vcs-Git: https://salsa.debian.org/debian/pypng.git
1210 Vcs-Browser: https://salsa.debian.org/debian/pypng
1311 Homepage: https://github.com/drj11/pypng
14
15 Package: python-png
16 Architecture: all
17 Depends: ${python:Depends},
18 ${misc:Depends}
19 Description: Pure Python PNG Reader/Writer (Python 2)
20 The PyPNG module implements support for PNG images. It reads and writes PNG
21 files with all allowable bit depths (1/2/4/8/16/24/32/48/64 bits per pixel) and
22 colour combinations: greyscale (1/2/4/8/16 bit); RGB, RGBA, LA (greyscale with
23 alpha) with 8/16 bits per channel; colour mapped images (1/2/4/8 bit).
24 Adam7 interlacing is supported for reading and writing. A number of optional
25 chunks can be specified (when writing) and understood (when reading): tRNS,
26 bKGD, gAMA.
27 .
28 PyPNG is not a high level toolkit for image processing (like PIL) and does not
29 aim at being a replacement or competitor. Its strength lies in fine-grained
30 extensive support of PNG features. It can also read and write Netpbm PAM files,
31 with a focus on its use as an intermediate format for implementing custom PNG
32 processing.
33 .
34 This package contains the Python 2 version.
3512
3613 Package: python3-png
3714 Architecture: all
00 #!/usr/bin/make -f
1
2 buildvers := $(shell pyversions -sv)
3 build3vers := $(shell py3versions -sv)
41
52 export PYBUILD_NAME = png
63
74 %:
8 dh $@ --with python2,python3 --buildsystem=pybuild
5 dh $@ --with python3 --buildsystem=pybuild
0 Tests: test-example-py2
1 Depends: python-png
2
30 Tests: test-example-py3
41 Depends: python3-png
52
+0
-10
debian/tests/test-example-py2 less more
0 #!/usr/bin/env python2
1
2 import png
3 import os.path
4
5 png.from_array([[255, 0, 0, 255],
6 [0, 255, 255, 0]], 'L').save("small_smiley.png")
7
8 if not os.path.exists("small_smiley.png"):
9 raise("missing file")