Drop python2 support; Closes: #937507
Sandro Tosi
4 years ago
|
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 |
|
0 | 7 |
pypng (0.0.20+ds-1) unstable; urgency=medium
|
1 | 8 |
|
2 | 9 |
* New upstream release.
|
3 | 3 |
Maintainer: Sascha Steinbiss <satta@debian.org>
|
4 | 4 |
Build-Depends: debhelper (>= 12),
|
5 | 5 |
dh-python,
|
6 | |
python-all,
|
7 | |
python-setuptools,
|
8 | 6 |
python3-all,
|
9 | 7 |
python3-setuptools
|
10 | 8 |
Standards-Version: 4.4.0
|
11 | 9 |
Vcs-Git: https://salsa.debian.org/debian/pypng.git
|
12 | 10 |
Vcs-Browser: https://salsa.debian.org/debian/pypng
|
13 | 11 |
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.
|
35 | 12 |
|
36 | 13 |
Package: python3-png
|
37 | 14 |
Architecture: all
|
0 | 0 |
#!/usr/bin/make -f
|
1 | |
|
2 | |
buildvers := $(shell pyversions -sv)
|
3 | |
build3vers := $(shell py3versions -sv)
|
4 | 1 |
|
5 | 2 |
export PYBUILD_NAME = png
|
6 | 3 |
|
7 | 4 |
%:
|
8 | |
dh $@ --with python2,python3 --buildsystem=pybuild
|
|
5 |
dh $@ --with python3 --buildsystem=pybuild
|
0 | |
Tests: test-example-py2
|
1 | |
Depends: python-png
|
2 | |
|
3 | 0 |
Tests: test-example-py3
|
4 | 1 |
Depends: python3-png
|
5 | 2 |
|
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")
|