Gentoo Archives: gentoo-commits

From: Arthur Zamarin <arthurzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/files/
Date: Mon, 16 May 2022 19:05:07
Message-Id: 1652727898.edf206c5d5691336d1a9535ff8508fc5184bfe72.arthurzam@gentoo
1 commit: edf206c5d5691336d1a9535ff8508fc5184bfe72
2 Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
3 AuthorDate: Mon May 16 06:11:57 2022 +0000
4 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
5 CommitDate: Mon May 16 19:04:58 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edf206c5
7
8 dev-python/sqlalchemy: remove unused patch(es)
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
12 Closes: https://github.com/gentoo/gentoo/pull/25514
13 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
14
15 .../sqlalchemy/files/sqlalchemy-1.3.20-pypy3.patch | 188 ---------------------
16 1 file changed, 188 deletions(-)
17
18 diff --git a/dev-python/sqlalchemy/files/sqlalchemy-1.3.20-pypy3.patch b/dev-python/sqlalchemy/files/sqlalchemy-1.3.20-pypy3.patch
19 deleted file mode 100644
20 index 3455534eb35d..000000000000
21 --- a/dev-python/sqlalchemy/files/sqlalchemy-1.3.20-pypy3.patch
22 +++ /dev/null
23 @@ -1,188 +0,0 @@
24 -commit 1607c5c19f8ef362be7182b0ee0fddc6a3d3140e
25 -Author: Federico Caselli <cfederico87@×××××.com>
26 -Date: Sat Apr 18 18:10:59 2020 +0200
27 -
28 - Enable pypy tests on github workflow
29 -
30 - Fixes: #5223
31 - Change-Id: I0952e54ed9af2952ea340be1945311376ffc1ad2
32 -
33 -diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
34 -index 6f3170a9e..0427eeac5 100644
35 ---- a/lib/sqlalchemy/orm/mapper.py
36 -+++ b/lib/sqlalchemy/orm/mapper.py
37 -@@ -1326,7 +1326,7 @@ class Mapper(InspectionAttr):
38 - if key == "__init__" and hasattr(method, "_sa_original_init"):
39 - method = method._sa_original_init
40 - if isinstance(method, types.MethodType):
41 -- method = method.im_func
42 -+ method = method.__func__
43 - if isinstance(method, types.FunctionType):
44 - if hasattr(method, "__sa_reconstructor__"):
45 - self._reconstructor = method
46 -diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py
47 -index ad4ebb656..dc47f671e 100644
48 ---- a/lib/sqlalchemy/testing/plugin/pytestplugin.py
49 -+++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py
50 -@@ -340,7 +340,7 @@ def %(name)s(%(args)s):
51 - code, {"target": target, "fn": fn}, fn.__name__
52 - )
53 - if not add_positional_parameters:
54 -- decorated.__defaults__ = getattr(fn, "im_func", fn).__defaults__
55 -+ decorated.__defaults__ = getattr(fn, "__func__", fn).__defaults__
56 - decorated.__wrapped__ = fn
57 - return update_wrapper(decorated, fn)
58 - else:
59 -diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
60 -index 7de16bcdf..e256d7764 100644
61 ---- a/lib/sqlalchemy/util/langhelpers.py
62 -+++ b/lib/sqlalchemy/util/langhelpers.py
63 -@@ -151,7 +151,7 @@ def %(name)s(%(args)s):
64 - decorated = _exec_code_in_env(
65 - code, {targ_name: target, fn_name: fn}, fn.__name__
66 - )
67 -- decorated.__defaults__ = getattr(fn, "im_func", fn).__defaults__
68 -+ decorated.__defaults__ = getattr(fn, "__func__", fn).__defaults__
69 - decorated.__wrapped__ = fn
70 - return update_wrapper(decorated, fn)
71 -
72 -@@ -751,7 +751,7 @@ def monkeypatch_proxied_specials(
73 - fn = getattr(from_cls, method)
74 - if not hasattr(fn, "__call__"):
75 - continue
76 -- fn = getattr(fn, "im_func", fn)
77 -+ fn = getattr(fn, "__func__", fn)
78 - except AttributeError:
79 - continue
80 - try:
81 -diff --git a/test/base/test_utils.py b/test/base/test_utils.py
82 -index 8356de61b..c04dea7cd 100644
83 ---- a/test/base/test_utils.py
84 -+++ b/test/base/test_utils.py
85 -@@ -411,7 +411,8 @@ class WrapCallableTest(fixtures.TestBase):
86 - lambda: my_functools_default(), my_functools_default
87 - )
88 - eq_(c.__name__, "partial")
89 -- eq_(c.__doc__, my_functools_default.__call__.__doc__)
90 -+ if not compat.pypy: # pypy fails this check
91 -+ eq_(c.__doc__, my_functools_default.__call__.__doc__)
92 - eq_(c(), 5)
93 -
94 -
95 -diff --git a/test/engine/test_logging.py b/test/engine/test_logging.py
96 -index fe4ff44a7..e14c3a37d 100644
97 ---- a/test/engine/test_logging.py
98 -+++ b/test/engine/test_logging.py
99 -@@ -8,6 +8,7 @@ from sqlalchemy import or_
100 - from sqlalchemy import select
101 - from sqlalchemy import String
102 - from sqlalchemy import Table
103 -+from sqlalchemy import testing
104 - from sqlalchemy import util
105 - from sqlalchemy.sql import util as sql_util
106 - from sqlalchemy.testing import assert_raises_message
107 -@@ -460,10 +461,12 @@ class PoolLoggingTest(fixtures.TestBase):
108 - q = self._stpool_logging_fixture()
109 - self._test_queuepool(q, False)
110 -
111 -+ @testing.requires.predictable_gc
112 - def test_queuepool_echo(self):
113 - q = self._queuepool_echo_fixture()
114 - self._test_queuepool(q)
115 -
116 -+ @testing.requires.predictable_gc
117 - def test_queuepool_logging(self):
118 - q = self._queuepool_logging_fixture()
119 - self._test_queuepool(q)
120 -diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py
121 -index 3b989959e..c8cd89555 100644
122 ---- a/test/engine/test_pool.py
123 -+++ b/test/engine/test_pool.py
124 -@@ -608,6 +608,7 @@ class PoolEventsTest(PoolTestBase):
125 - assert canary.call_args_list[0][0][0] is dbapi_con
126 - assert canary.call_args_list[0][0][2] is exc
127 -
128 -+ @testing.requires.predictable_gc
129 - def test_checkin_event_gc(self):
130 - p, canary = self._checkin_event_fixture()
131 -
132 -diff --git a/test/orm/test_deferred.py b/test/orm/test_deferred.py
133 -index f8817bbd7..2bf466c15 100644
134 ---- a/test/orm/test_deferred.py
135 -+++ b/test/orm/test_deferred.py
136 -@@ -1700,6 +1700,8 @@ class WithExpressionTest(fixtures.DeclarativeMappedTest):
137 - c1 = s.query(C).order_by(C.id)
138 - eq_(c1.all(), [C(c_expr=1), C(c_expr=1)])
139 -
140 -+ s.expunge_all()
141 -+
142 - c2 = (
143 - s.query(C)
144 - .options(with_expression(C.c_expr, C.x * 2))
145 -
146 -commit 8d3ac81a8794bdd3532ad07427edf9f48493919d
147 -Date: Wed Oct 14 18:25:45 2020 +0200
148 -
149 - Skip a failing test that got removed in master
150 -
151 - https://github.com/sqlalchemy/sqlalchemy/commit/a9b068ae564e5e775e312373088545b75aeaa1b0
152 -
153 -diff --git a/test/orm/test_deprecations.py b/test/orm/test_deprecations.py
154 -index 156898f..0d6dc72 100644
155 ---- a/test/orm/test_deprecations.py
156 -+++ b/test/orm/test_deprecations.py
157 -@@ -560,7 +560,7 @@ class StrongIdentityMapTest(_fixtures.FixtureTest):
158 - def test_prune_imap(self):
159 - self._test_prune(self._strong_ident_fixture)
160 -
161 -- def test_prune_events(self):
162 -+ def _test_prune_events(self):
163 - self._test_prune(self._event_fixture)
164 -
165 - @testing.fails_if(lambda: pypy, "pypy has a real GC")
166 -
167 -commit 1a1cc0e623698a75274f1525d2d14464ff738b86
168 -Date: Wed Oct 14 18:28:56 2020 +0200
169 -
170 - Fix PyPy-related tests
171 -
172 - Partial backport of https://github.com/sqlalchemy/sqlalchemy/commit/9e31fc74089cf565df5f275d22eb8ae5414d6e45
173 -
174 -diff --git a/test/base/test_utils.py b/test/base/test_utils.py
175 -diff --git a/test/base/test_utils.py b/test/base/test_utils.py
176 -index 8356de61b..c3d25b824 100644
177 ---- a/test/base/test_utils.py
178 -+++ b/test/base/test_utils.py
179 -@@ -1725,7 +1725,7 @@ class ArgInspectionTest(fixtures.TestBase):
180 -
181 - assert_raises(TypeError, get_callable_argspec, datetime.datetime.now)
182 -
183 -- @fails_if(lambda: util.pypy, "pypy returns plain *arg, **kw")
184 -+ @testing.requires.cpython
185 - def test_callable_argspec_obj_init(self):
186 - assert_raises(TypeError, get_callable_argspec, object)
187 -
188 -@@ -2154,10 +2154,7 @@ class TestFormatArgspec(_Py3KFixtures, fixtures.TestBase):
189 - grouped=False,
190 - )
191 -
192 -- @testing.fails_if(
193 -- lambda: util.pypy,
194 -- "pypy doesn't report Obj.__init__ as object.__init__",
195 -- )
196 -+ @testing.requires.cpython
197 - def test_init_grouped(self):
198 - object_spec = {
199 - "args": "(self)",
200 -@@ -2181,10 +2178,7 @@ class TestFormatArgspec(_Py3KFixtures, fixtures.TestBase):
201 - self._test_init(None, object_spec, wrapper_spec, custom_spec)
202 - self._test_init(True, object_spec, wrapper_spec, custom_spec)
203 -
204 -- @testing.fails_if(
205 -- lambda: util.pypy,
206 -- "pypy doesn't report Obj.__init__ as object.__init__",
207 -- )
208 -+ @testing.requires.cpython
209 - def test_init_bare(self):
210 - object_spec = {
211 - "args": "self",