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/pretty-yaml/files/, dev-python/pretty-yaml/
Date: Sun, 12 Sep 2021 07:39:43
Message-Id: 1631432374.d7bb3b71aa143159008af5f5f55aa2e84e4606ee.mgorny@gentoo
1 commit: d7bb3b71aa143159008af5f5f55aa2e84e4606ee
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 12 07:38:41 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 12 07:39:34 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7bb3b71
7
8 dev-python/pretty-yaml: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pretty-yaml/Manifest | 1 -
13 .../files/pretty-yaml-20.4.0-fix-py3.10.patch | 28 -----------------
14 dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild | 36 ----------------------
15 3 files changed, 65 deletions(-)
16
17 diff --git a/dev-python/pretty-yaml/Manifest b/dev-python/pretty-yaml/Manifest
18 index 8b03cf8cce4..bf4fe7454e9 100644
19 --- a/dev-python/pretty-yaml/Manifest
20 +++ b/dev-python/pretty-yaml/Manifest
21 @@ -1,2 +1 @@
22 -DIST pyaml-20.4.0.tar.gz 21176 BLAKE2B 0aac0250d610d7b2ef042e251142de4520e7db96073d46bde0dcb37ad43d9c278cbdfc7ab247b4d41c7c30e893306aa47b25a584a2aa4c157d66203b8e140895 SHA512 432fd215e034beafc07270a6aa8b726d5a16ef8946a95c1db9a34b4f492bbe2089dffbb1ce856d3e8153ec18ac943973a23e3aa9283d53ee0b2e7ba5dcd3d317
23 DIST pyaml-21.8.3.tar.gz 20269 BLAKE2B 8b829ce374efe13007bb924393a8cde26914cc443999906b7bb4db610b614964170a80b8dd381eeaa9137026c60d98140b3b0d601a6af816c32d1ce9708e33be SHA512 69b1181511f7d3ac1263b710fa49b18a162e096e28414d83300bc2e9038222363cef995a0d3248387560e7066973736f9cee06b67042ee957427b4790c269653
24
25 diff --git a/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch b/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch
26 deleted file mode 100644
27 index c2cd44152d1..00000000000
28 --- a/dev-python/pretty-yaml/files/pretty-yaml-20.4.0-fix-py3.10.patch
29 +++ /dev/null
30 @@ -1,28 +0,0 @@
31 -From 707e14bd714e91dc53295393e2c8eea257aced5a Mon Sep 17 00:00:00 2001
32 -From: Louis Sautier <sautier.louis@×××××.com>
33 -Date: Sun, 8 Aug 2021 13:44:52 +0200
34 -Subject: [PATCH] Fix tests for Python 3.10: abstract base classes have moved
35 -
36 -As mentioned in the documentation:
37 -"Deprecated since version 3.3, will be removed in version 3.10: Moved
38 -Collections Abstract Base Classes to the collections.abc module. For
39 -backwards compatibility, they continue to be visible in this module through
40 -Python 3.9."
41 ----
42 - pyaml/tests/dump.py | 3 ++-
43 - 1 file changed, 2 insertions(+), 1 deletion(-)
44 -
45 -diff --git a/pyaml/tests/dump.py b/pyaml/tests/dump.py
46 -index 882a8e8..e1a93ba 100644
47 ---- a/pyaml/tests/dump.py
48 -+++ b/pyaml/tests/dump.py
49 -@@ -2,7 +2,8 @@
50 - from __future__ import unicode_literals, print_function
51 -
52 - import itertools as it, operator as op, functools as ft
53 --from collections import Mapping, OrderedDict, namedtuple
54 -+from collections import OrderedDict, namedtuple
55 -+from collections.abc import Mapping
56 - import os, sys, io, yaml, unittest
57 -
58 - if sys.version_info.major > 2: unicode = str
59
60 diff --git a/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild b/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild
61 deleted file mode 100644
62 index f592bf0fbda..00000000000
63 --- a/dev-python/pretty-yaml/pretty-yaml-20.4.0.ebuild
64 +++ /dev/null
65 @@ -1,36 +0,0 @@
66 -# Copyright 1999-2021 Gentoo Authors
67 -# Distributed under the terms of the GNU General Public License v2
68 -
69 -EAPI=7
70 -PYTHON_COMPAT=( python3_{8..10} )
71 -
72 -inherit distutils-r1
73 -
74 -MY_P=pyaml-${PV}
75 -DESCRIPTION="PyYAML-based module to produce pretty and readable YAML-serialized data"
76 -HOMEPAGE="https://github.com/mk-fg/pretty-yaml"
77 -SRC_URI="mirror://pypi/${PN:0:1}/${MY_P%-*}/${MY_P}.tar.gz"
78 -S="${WORKDIR}/${MY_P}"
79 -
80 -LICENSE="WTFPL-2"
81 -SLOT="0"
82 -KEYWORDS="amd64 arm ~arm64 x86"
83 -IUSE="test"
84 -RESTRICT="!test? ( test )"
85 -
86 -RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]"
87 -BDEPEND="
88 - test? (
89 - ${RDEPEND}
90 - dev-python/unidecode[${PYTHON_USEDEP}]
91 - )"
92 -
93 -PATCHES=(
94 - # https://github.com/mk-fg/pretty-yaml/pull/38
95 - "${FILESDIR}/${P}-fix-py3.10.patch"
96 -)
97 -
98 -python_test() {
99 - "${EPYTHON}" pyaml/tests/dump.py -v ||
100 - die "tests failed under ${EPYTHON}"
101 -}