dev-python/pretty-yaml: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-09-12 09:38:41 +02:00
parent 0d7179257c
commit d7bb3b71aa
3 changed files with 0 additions and 65 deletions

View File

@@ -1,2 +1 @@
DIST pyaml-20.4.0.tar.gz 21176 BLAKE2B 0aac0250d610d7b2ef042e251142de4520e7db96073d46bde0dcb37ad43d9c278cbdfc7ab247b4d41c7c30e893306aa47b25a584a2aa4c157d66203b8e140895 SHA512 432fd215e034beafc07270a6aa8b726d5a16ef8946a95c1db9a34b4f492bbe2089dffbb1ce856d3e8153ec18ac943973a23e3aa9283d53ee0b2e7ba5dcd3d317
DIST pyaml-21.8.3.tar.gz 20269 BLAKE2B 8b829ce374efe13007bb924393a8cde26914cc443999906b7bb4db610b614964170a80b8dd381eeaa9137026c60d98140b3b0d601a6af816c32d1ce9708e33be SHA512 69b1181511f7d3ac1263b710fa49b18a162e096e28414d83300bc2e9038222363cef995a0d3248387560e7066973736f9cee06b67042ee957427b4790c269653

View File

@@ -1,28 +0,0 @@
From 707e14bd714e91dc53295393e2c8eea257aced5a Mon Sep 17 00:00:00 2001
From: Louis Sautier <sautier.louis@gmail.com>
Date: Sun, 8 Aug 2021 13:44:52 +0200
Subject: [PATCH] Fix tests for Python 3.10: abstract base classes have moved
As mentioned in the documentation:
"Deprecated since version 3.3, will be removed in version 3.10: Moved
Collections Abstract Base Classes to the collections.abc module. For
backwards compatibility, they continue to be visible in this module through
Python 3.9."
---
pyaml/tests/dump.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/pyaml/tests/dump.py b/pyaml/tests/dump.py
index 882a8e8..e1a93ba 100644
--- a/pyaml/tests/dump.py
+++ b/pyaml/tests/dump.py
@@ -2,7 +2,8 @@
from __future__ import unicode_literals, print_function
import itertools as it, operator as op, functools as ft
-from collections import Mapping, OrderedDict, namedtuple
+from collections import OrderedDict, namedtuple
+from collections.abc import Mapping
import os, sys, io, yaml, unittest
if sys.version_info.major > 2: unicode = str

View File

@@ -1,36 +0,0 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{8..10} )
inherit distutils-r1
MY_P=pyaml-${PV}
DESCRIPTION="PyYAML-based module to produce pretty and readable YAML-serialized data"
HOMEPAGE="https://github.com/mk-fg/pretty-yaml"
SRC_URI="mirror://pypi/${PN:0:1}/${MY_P%-*}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="WTFPL-2"
SLOT="0"
KEYWORDS="amd64 arm ~arm64 x86"
IUSE="test"
RESTRICT="!test? ( test )"
RDEPEND="dev-python/pyyaml[${PYTHON_USEDEP}]"
BDEPEND="
test? (
${RDEPEND}
dev-python/unidecode[${PYTHON_USEDEP}]
)"
PATCHES=(
# https://github.com/mk-fg/pretty-yaml/pull/38
"${FILESDIR}/${P}-fix-py3.10.patch"
)
python_test() {
"${EPYTHON}" pyaml/tests/dump.py -v ||
die "tests failed under ${EPYTHON}"
}