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/doublex/, dev-python/doublex/files/
Date: Wed, 15 Mar 2023 05:33:14
Message-Id: 1678858387.1afd7c1a125472894fc0a87d06e969b022460cba.mgorny@gentoo
1 commit: 1afd7c1a125472894fc0a87d06e969b022460cba
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 15 05:09:43 2023 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 15 05:33:07 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1afd7c1a
7
8 dev-python/doublex: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/doublex/Manifest | 1 -
13 dev-python/doublex/doublex-1.9.5.1.ebuild | 59 ----------------------
14 dev-python/doublex/files/doublex-1.9.2-py310.patch | 33 ------------
15 .../doublex/files/doublex-1.9.5.1-py310.patch | 29 -----------
16 4 files changed, 122 deletions(-)
17
18 diff --git a/dev-python/doublex/Manifest b/dev-python/doublex/Manifest
19 index c9bb57a8e4a2..bd0b79d028c3 100644
20 --- a/dev-python/doublex/Manifest
21 +++ b/dev-python/doublex/Manifest
22 @@ -1,2 +1 @@
23 -DIST doublex-1.9.5.1.tar.gz 80508 BLAKE2B 3c3e233bbe4fcc3a122430bfb826ab9824d41472e80802f0e6d345da83cbe97bb33912a831bead550299942b0087063e86839f6bf3a29a08164b6e3bf641f437 SHA512 498e8a8076ed7d3585aae7a20edf54d4143e6875cd8e7af3b47f9f9cfc612a5217d7877092c2af7f1ac80c7aad7be89946671a836fc5817de06ec541c0cb1e06
24 DIST python-doublex-1.9.6.1.gh.tar.gz 81848 BLAKE2B 34aa108ba12f34f18f7a7b3d12fd2a539736d95097fd3ecf5344fdac551b16717d5348da1c6e2e10e19878b82de7e9195b9bd17d526156bc13e0ad2fd789b23e SHA512 c9779c5fcde43af653c2131894da44a878acf2cc81d53f6ab89a6fde071827a22aa97ec5a51561ad8861a98623d38c75f184be6234a6a5323c52e8e538c66710
25
26 diff --git a/dev-python/doublex/doublex-1.9.5.1.ebuild b/dev-python/doublex/doublex-1.9.5.1.ebuild
27 deleted file mode 100644
28 index 779ead13891f..000000000000
29 --- a/dev-python/doublex/doublex-1.9.5.1.ebuild
30 +++ /dev/null
31 @@ -1,59 +0,0 @@
32 -# Copyright 1999-2023 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=8
36 -
37 -PYTHON_COMPAT=( python3_{9..11} )
38 -DISTUTILS_USE_PEP517=setuptools
39 -
40 -inherit distutils-r1 vcs-snapshot
41 -
42 -DESCRIPTION="Python test doubles"
43 -HOMEPAGE="https://bitbucket.org/DavidVilla/python-doublex"
44 -SRC_URI="https://bitbucket.org/DavidVilla/python-${PN}/get/v${PV}.tar.gz -> ${P}.tar.gz"
45 -
46 -LICENSE="GPL-3"
47 -SLOT="0"
48 -KEYWORDS="amd64 arm64"
49 -IUSE="doc test"
50 -
51 -RDEPEND="
52 - dev-python/pyhamcrest[${PYTHON_USEDEP}]
53 - dev-python/six[${PYTHON_USEDEP}]
54 -"
55 -BDEPEND="
56 - doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
57 -"
58 -
59 -PATCHES=(
60 - # https://github.com/davidvilla/python-doublex/commit/425807d7276dcea0e0640384d65aeb15184c508c
61 - "${FILESDIR}/${P}-py310.patch"
62 -)
63 -
64 -distutils_enable_tests pytest
65 -
66 -python_prepare_all() {
67 - # Disable broken tests
68 - # https://bitbucket.org/DavidVilla/python-doublex/issues/5/support-for-python-36-37-38-tests-failing
69 - sed -i "s/test_*hamcrest_/_&/" doublex/test/report_tests.py || die
70 - # https://bitbucket.org/DavidVilla/python-doublex/issues/6/more-failing-tests-with-python-39
71 - sed -i -r "s/test_(proxyspy_get_stubbed_property|stub_property|custom_equality_comparable_objects)/_&/" \
72 - doublex/test/unit_tests.py || die
73 - distutils-r1_python_prepare_all
74 -}
75 -
76 -python_compile_all() {
77 - use doc && emake -C docs
78 -}
79 -
80 -python_install_all() {
81 - use doc && local HTML_DOCS=( docs/_build/html/. )
82 -
83 - distutils-r1_python_install_all
84 -
85 - rm "${ED}"/usr/README.rst || die "Couldn't remove spurious README.rst"
86 -}
87 -
88 -python_test() {
89 - epytest -o 'python_files=*_tests.py'
90 -}
91
92 diff --git a/dev-python/doublex/files/doublex-1.9.2-py310.patch b/dev-python/doublex/files/doublex-1.9.2-py310.patch
93 deleted file mode 100644
94 index 5d3a974a38a1..000000000000
95 --- a/dev-python/doublex/files/doublex-1.9.2-py310.patch
96 +++ /dev/null
97 @@ -1,33 +0,0 @@
98 -commit ec3ce987a95abd951840213b77d44624b2ca5e84
99 -Author: Louis Sautier <sautier.louis@×××××.com>
100 -Date: Sat Aug 7 01:56:31 2021 +0200
101 -
102 - Support Python 3.10 by using collections.abc
103 -
104 -diff --git a/doublex/internal.py b/doublex/internal.py
105 -index 91f5866..072774a 100644
106 ---- a/doublex/internal.py
107 -+++ b/doublex/internal.py
108 -@@ -20,7 +20,7 @@
109 -
110 -
111 - import threading
112 --import collections
113 -+import collections.abc
114 - import functools
115 - import six
116 -
117 -@@ -184,11 +184,11 @@ class Invocation(object):
118 - return Invocation(double, name, InvocationContext(*args, **kargs))
119 -
120 - def delegates(self, delegate):
121 -- if isinstance(delegate, collections.Callable):
122 -+ if isinstance(delegate, collections.abc.Callable):
123 - self.__delegate = delegate
124 - return
125 -
126 -- if isinstance(delegate, collections.Mapping):
127 -+ if isinstance(delegate, collections.abc.Mapping):
128 - self.__delegate = delegate.get
129 - return
130 -
131
132 diff --git a/dev-python/doublex/files/doublex-1.9.5.1-py310.patch b/dev-python/doublex/files/doublex-1.9.5.1-py310.patch
133 deleted file mode 100644
134 index e4aa9153115e..000000000000
135 --- a/dev-python/doublex/files/doublex-1.9.5.1-py310.patch
136 +++ /dev/null
137 @@ -1,29 +0,0 @@
138 -From b76a792b48109f1a10f460878fbe0fd78c41cd93 Mon Sep 17 00:00:00 2001
139 -From: Sebastian Pipping <sebastian@×××××××.org>
140 -Date: Sat, 11 Feb 2023 02:00:46 +0100
141 -Subject: [PATCH] Fix import to collections.abc.Callable for Python >=3.10
142 -
143 -Subset of this post-1.9.5.1 upstream commit:
144 -https://github.com/davidvilla/python-doublex/commit/425807d7276dcea0e0640384d65aeb15184c508c
145 ----
146 - doublex/internal.py | 4 ++--
147 - 1 file changed, 2 insertions(+), 2 deletions(-)
148 -
149 -diff --git a/doublex/internal.py b/doublex/internal.py
150 -index a85da9f..e5b25cb 100644
151 ---- a/doublex/internal.py
152 -+++ b/doublex/internal.py
153 -@@ -24,8 +24,8 @@ import threading
154 - import functools
155 - import six
156 -
157 --if sys.version_info < (3, 3):
158 -- from collection.abc import Callable as abc_Callable, Mapping as abc_Mapping
159 -+if sys.version_info > (3, 3):
160 -+ from collections.abc import Callable as abc_Callable, Mapping as abc_Mapping
161 - else:
162 - from collections import Callable as abc_Callable, Mapping as abc_Mapping
163 -
164 ---
165 -2.39.1
166 -