Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pypng/files/, dev-python/pypng/
Date: Mon, 04 Oct 2021 20:54:42
Message-Id: 1633380762.07ee6824b5dc64522c59d3ec8bb244f969995aa0.mgorny@gentoo
1 commit: 07ee6824b5dc64522c59d3ec8bb244f969995aa0
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 4 20:52:42 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 4 20:52:42 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07ee6824
7
8 dev-python/pypng: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pypng/Manifest | 1 -
13 dev-python/pypng/files/pypng-0.0.20-py39.patch | 34 --------------------------
14 dev-python/pypng/pypng-0.0.20.ebuild | 25 -------------------
15 3 files changed, 60 deletions(-)
16
17 diff --git a/dev-python/pypng/Manifest b/dev-python/pypng/Manifest
18 index 9987a295acf..bf24b244d0e 100644
19 --- a/dev-python/pypng/Manifest
20 +++ b/dev-python/pypng/Manifest
21 @@ -1,2 +1 @@
22 -DIST pypng-0.0.20.tar.gz 649538 BLAKE2B 9a15923c7f4d06deb982dc0b70d7502d3a5189f06cd6cdd0b35e81fcba6ea6b8ef50a6ab1ea03d8ac69a5e4d712eb23d7e18a3f1641c5a51f6f4d287d2fb5e43 SHA512 4f84e9b9cc68c0ad7e4558f0f46c54b0f091561f1a3679ac0679d8a1f1ab9a06493d71bf9df4db5deb6bedbdfa53bb1775ee51204133309eba962077102fdcdd
23 DIST pypng-0.0.21.tar.gz 111899 BLAKE2B b4b8f17b76918f415c02edc09a597af643615f46839fb4464f3116e4cefb0a251227f344ff2c1c51efb87933faf647bfa6a7c4d89bc91c8389a3dc71479e878d SHA512 b8f5f9be05aafe59aeb69462b7ccc9e5c4df8eb157731d888773f0ef223dc1c45db83daa51347b45dc3c59be5141c3fc4e031004ac28927b786d7e254ffff4fa
24
25 diff --git a/dev-python/pypng/files/pypng-0.0.20-py39.patch b/dev-python/pypng/files/pypng-0.0.20-py39.patch
26 deleted file mode 100644
27 index e4c738ee313..00000000000
28 --- a/dev-python/pypng/files/pypng-0.0.20-py39.patch
29 +++ /dev/null
30 @@ -1,34 +0,0 @@
31 -From fe9c973c5e92f24746dfa1be8796c14a2befec4f Mon Sep 17 00:00:00 2001
32 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
33 -Date: Wed, 15 Jul 2020 07:54:53 +0200
34 -Subject: [PATCH] test_png: Use array.tobytes to fix py3.9 compatibility
35 -
36 -The deprecated array.tostring() method has been removed in Python 3.9.
37 -Use .tobytes() instead.
38 ----
39 - code/test_png.py | 4 ++--
40 - 1 file changed, 2 insertions(+), 2 deletions(-)
41 -
42 -diff --git a/code/test_png.py b/code/test_png.py
43 -index c858d18..447c314 100644
44 ---- a/code/test_png.py
45 -+++ b/code/test_png.py
46 -@@ -448,13 +448,13 @@ class Test(unittest.TestCase):
47 - def test_interlaced_array(self):
48 - """Reading an interlaced PNG yields each row as an array."""
49 - r = png.Reader(bytes=pngsuite.basi0g08)
50 -- list(r.read()[2])[0].tostring
51 -+ list(r.read()[2])[0].tobytes
52 -
53 - def test_trns_array(self):
54 - """A type 2 PNG with tRNS chunk yields each row
55 - as an array (using asDirect)."""
56 - r = png.Reader(bytes=pngsuite.tbrn2c08)
57 -- list(r.asDirect()[2])[0].tostring
58 -+ list(r.asDirect()[2])[0].tobytes
59 -
60 - def test_flat(self):
61 - """Test read_flat."""
62 ---
63 -2.27.0
64 -
65
66 diff --git a/dev-python/pypng/pypng-0.0.20.ebuild b/dev-python/pypng/pypng-0.0.20.ebuild
67 deleted file mode 100644
68 index 040f2abb119..00000000000
69 --- a/dev-python/pypng/pypng-0.0.20.ebuild
70 +++ /dev/null
71 @@ -1,25 +0,0 @@
72 -# Copyright 1999-2021 Gentoo Authors
73 -# Distributed under the terms of the GNU General Public License v2
74 -
75 -EAPI=7
76 -
77 -DISTUTILS_USE_SETUPTOOLS=no
78 -PYTHON_COMPAT=( python3_{7..10} )
79 -
80 -inherit distutils-r1
81 -
82 -DESCRIPTION="Pure Python PNG image encoder/decoder"
83 -HOMEPAGE="https://github.com/drj11/pypng https://pypi.org/project/pypng/"
84 -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
85 -
86 -LICENSE="MIT"
87 -SLOT="0"
88 -KEYWORDS="amd64 arm arm64 x86"
89 -
90 -PATCHES=(
91 - "${FILESDIR}"/${P}-py39.patch
92 -)
93 -
94 -python_test() {
95 - "${EPYTHON}" code/test_png.py -v || die "Tests fail with ${EPYTHON}"
96 -}