* [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/files/
@ 2022-03-27 17:02 Arthur Zamarin
0 siblings, 0 replies; 3+ messages in thread
From: Arthur Zamarin @ 2022-03-27 17:02 UTC (permalink / raw
To: gentoo-commits
commit: eff09989574aca6983e6321e85b09099f68b8d61
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Sun Mar 27 11:41:04 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Mar 27 17:02:04 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eff09989
dev-python/sqlalchemy: remove unused patch
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/24773
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
.../files/sqlalchemy-1.4.27-drop-greenlet.patch | 49 ----------------------
1 file changed, 49 deletions(-)
diff --git a/dev-python/sqlalchemy/files/sqlalchemy-1.4.27-drop-greenlet.patch b/dev-python/sqlalchemy/files/sqlalchemy-1.4.27-drop-greenlet.patch
deleted file mode 100644
index 07184b843c9e..000000000000
--- a/dev-python/sqlalchemy/files/sqlalchemy-1.4.27-drop-greenlet.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-Not available on all arches we support and is only needed for
-a few consumers.
-
-https://bugs.gentoo.org/828482
-
-From: Sam James <sam@gentoo.org>
-Date: Wed, 8 Dec 2021 00:31:01 +0000
-Subject: [PATCH] Drop greenlet dependency
-
---- a/setup.cfg
-+++ b/setup.cfg
-@@ -36,11 +36,8 @@ package_dir =
- =lib
- install_requires =
- importlib-metadata;python_version<"3.8"
-- greenlet != 0.4.17;python_version>='3' and (platform_machine=='aarch64' or (platform_machine=='ppc64le' or (platform_machine=='x86_64' or (platform_machine=='amd64' or (platform_machine=='AMD64' or (platform_machine=='win32' or platform_machine=='WIN32'))))))
-
- [options.extras_require]
--asyncio =
-- greenlet!=0.4.17;python_version>="3"
- mypy =
- mypy >= 0.910;python_version>="3"
- sqlalchemy2-stubs
-diff --git a/setup.cfg b/setup.cfg
-index b7f69e9..91993f7 100644
---- a/setup.cfg
-+++ b/setup.cfg
-@@ -57,7 +57,6 @@ oracle =
- postgresql = psycopg2>=2.7
- postgresql_pg8000 = pg8000>=1.16.6
- postgresql_asyncpg =
-- %(asyncio)s
- asyncpg;python_version>="3"
- postgresql_psycopg2binary = psycopg2-binary
- postgresql_psycopg2cffi = psycopg2cffi
-@@ -65,13 +64,10 @@ pymysql =
- pymysql;python_version>="3"
- pymysql<1;python_version<"3"
- aiomysql =
-- %(asyncio)s
- aiomysql;python_version>="3"
- asyncmy =
-- %(asyncio)s
- asyncmy>=0.2.3;python_version>="3"
- aiosqlite =
-- %(asyncio)s
- aiosqlite;python_version>="3"
- typing_extensions!=3.10.0.1
- sqlcipher =
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/files/
@ 2022-05-16 19:05 Arthur Zamarin
0 siblings, 0 replies; 3+ messages in thread
From: Arthur Zamarin @ 2022-05-16 19:05 UTC (permalink / raw
To: gentoo-commits
commit: edf206c5d5691336d1a9535ff8508fc5184bfe72
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Mon May 16 06:11:57 2022 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Mon May 16 19:04:58 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edf206c5
dev-python/sqlalchemy: remove unused patch(es)
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/25514
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
.../sqlalchemy/files/sqlalchemy-1.3.20-pypy3.patch | 188 ---------------------
1 file changed, 188 deletions(-)
diff --git a/dev-python/sqlalchemy/files/sqlalchemy-1.3.20-pypy3.patch b/dev-python/sqlalchemy/files/sqlalchemy-1.3.20-pypy3.patch
deleted file mode 100644
index 3455534eb35d..000000000000
--- a/dev-python/sqlalchemy/files/sqlalchemy-1.3.20-pypy3.patch
+++ /dev/null
@@ -1,188 +0,0 @@
-commit 1607c5c19f8ef362be7182b0ee0fddc6a3d3140e
-Author: Federico Caselli <cfederico87@gmail.com>
-Date: Sat Apr 18 18:10:59 2020 +0200
-
- Enable pypy tests on github workflow
-
- Fixes: #5223
- Change-Id: I0952e54ed9af2952ea340be1945311376ffc1ad2
-
-diff --git a/lib/sqlalchemy/orm/mapper.py b/lib/sqlalchemy/orm/mapper.py
-index 6f3170a9e..0427eeac5 100644
---- a/lib/sqlalchemy/orm/mapper.py
-+++ b/lib/sqlalchemy/orm/mapper.py
-@@ -1326,7 +1326,7 @@ class Mapper(InspectionAttr):
- if key == "__init__" and hasattr(method, "_sa_original_init"):
- method = method._sa_original_init
- if isinstance(method, types.MethodType):
-- method = method.im_func
-+ method = method.__func__
- if isinstance(method, types.FunctionType):
- if hasattr(method, "__sa_reconstructor__"):
- self._reconstructor = method
-diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py
-index ad4ebb656..dc47f671e 100644
---- a/lib/sqlalchemy/testing/plugin/pytestplugin.py
-+++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py
-@@ -340,7 +340,7 @@ def %(name)s(%(args)s):
- code, {"target": target, "fn": fn}, fn.__name__
- )
- if not add_positional_parameters:
-- decorated.__defaults__ = getattr(fn, "im_func", fn).__defaults__
-+ decorated.__defaults__ = getattr(fn, "__func__", fn).__defaults__
- decorated.__wrapped__ = fn
- return update_wrapper(decorated, fn)
- else:
-diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
-index 7de16bcdf..e256d7764 100644
---- a/lib/sqlalchemy/util/langhelpers.py
-+++ b/lib/sqlalchemy/util/langhelpers.py
-@@ -151,7 +151,7 @@ def %(name)s(%(args)s):
- decorated = _exec_code_in_env(
- code, {targ_name: target, fn_name: fn}, fn.__name__
- )
-- decorated.__defaults__ = getattr(fn, "im_func", fn).__defaults__
-+ decorated.__defaults__ = getattr(fn, "__func__", fn).__defaults__
- decorated.__wrapped__ = fn
- return update_wrapper(decorated, fn)
-
-@@ -751,7 +751,7 @@ def monkeypatch_proxied_specials(
- fn = getattr(from_cls, method)
- if not hasattr(fn, "__call__"):
- continue
-- fn = getattr(fn, "im_func", fn)
-+ fn = getattr(fn, "__func__", fn)
- except AttributeError:
- continue
- try:
-diff --git a/test/base/test_utils.py b/test/base/test_utils.py
-index 8356de61b..c04dea7cd 100644
---- a/test/base/test_utils.py
-+++ b/test/base/test_utils.py
-@@ -411,7 +411,8 @@ class WrapCallableTest(fixtures.TestBase):
- lambda: my_functools_default(), my_functools_default
- )
- eq_(c.__name__, "partial")
-- eq_(c.__doc__, my_functools_default.__call__.__doc__)
-+ if not compat.pypy: # pypy fails this check
-+ eq_(c.__doc__, my_functools_default.__call__.__doc__)
- eq_(c(), 5)
-
-
-diff --git a/test/engine/test_logging.py b/test/engine/test_logging.py
-index fe4ff44a7..e14c3a37d 100644
---- a/test/engine/test_logging.py
-+++ b/test/engine/test_logging.py
-@@ -8,6 +8,7 @@ from sqlalchemy import or_
- from sqlalchemy import select
- from sqlalchemy import String
- from sqlalchemy import Table
-+from sqlalchemy import testing
- from sqlalchemy import util
- from sqlalchemy.sql import util as sql_util
- from sqlalchemy.testing import assert_raises_message
-@@ -460,10 +461,12 @@ class PoolLoggingTest(fixtures.TestBase):
- q = self._stpool_logging_fixture()
- self._test_queuepool(q, False)
-
-+ @testing.requires.predictable_gc
- def test_queuepool_echo(self):
- q = self._queuepool_echo_fixture()
- self._test_queuepool(q)
-
-+ @testing.requires.predictable_gc
- def test_queuepool_logging(self):
- q = self._queuepool_logging_fixture()
- self._test_queuepool(q)
-diff --git a/test/engine/test_pool.py b/test/engine/test_pool.py
-index 3b989959e..c8cd89555 100644
---- a/test/engine/test_pool.py
-+++ b/test/engine/test_pool.py
-@@ -608,6 +608,7 @@ class PoolEventsTest(PoolTestBase):
- assert canary.call_args_list[0][0][0] is dbapi_con
- assert canary.call_args_list[0][0][2] is exc
-
-+ @testing.requires.predictable_gc
- def test_checkin_event_gc(self):
- p, canary = self._checkin_event_fixture()
-
-diff --git a/test/orm/test_deferred.py b/test/orm/test_deferred.py
-index f8817bbd7..2bf466c15 100644
---- a/test/orm/test_deferred.py
-+++ b/test/orm/test_deferred.py
-@@ -1700,6 +1700,8 @@ class WithExpressionTest(fixtures.DeclarativeMappedTest):
- c1 = s.query(C).order_by(C.id)
- eq_(c1.all(), [C(c_expr=1), C(c_expr=1)])
-
-+ s.expunge_all()
-+
- c2 = (
- s.query(C)
- .options(with_expression(C.c_expr, C.x * 2))
-
-commit 8d3ac81a8794bdd3532ad07427edf9f48493919d
-Date: Wed Oct 14 18:25:45 2020 +0200
-
- Skip a failing test that got removed in master
-
- https://github.com/sqlalchemy/sqlalchemy/commit/a9b068ae564e5e775e312373088545b75aeaa1b0
-
-diff --git a/test/orm/test_deprecations.py b/test/orm/test_deprecations.py
-index 156898f..0d6dc72 100644
---- a/test/orm/test_deprecations.py
-+++ b/test/orm/test_deprecations.py
-@@ -560,7 +560,7 @@ class StrongIdentityMapTest(_fixtures.FixtureTest):
- def test_prune_imap(self):
- self._test_prune(self._strong_ident_fixture)
-
-- def test_prune_events(self):
-+ def _test_prune_events(self):
- self._test_prune(self._event_fixture)
-
- @testing.fails_if(lambda: pypy, "pypy has a real GC")
-
-commit 1a1cc0e623698a75274f1525d2d14464ff738b86
-Date: Wed Oct 14 18:28:56 2020 +0200
-
- Fix PyPy-related tests
-
- Partial backport of https://github.com/sqlalchemy/sqlalchemy/commit/9e31fc74089cf565df5f275d22eb8ae5414d6e45
-
-diff --git a/test/base/test_utils.py b/test/base/test_utils.py
-diff --git a/test/base/test_utils.py b/test/base/test_utils.py
-index 8356de61b..c3d25b824 100644
---- a/test/base/test_utils.py
-+++ b/test/base/test_utils.py
-@@ -1725,7 +1725,7 @@ class ArgInspectionTest(fixtures.TestBase):
-
- assert_raises(TypeError, get_callable_argspec, datetime.datetime.now)
-
-- @fails_if(lambda: util.pypy, "pypy returns plain *arg, **kw")
-+ @testing.requires.cpython
- def test_callable_argspec_obj_init(self):
- assert_raises(TypeError, get_callable_argspec, object)
-
-@@ -2154,10 +2154,7 @@ class TestFormatArgspec(_Py3KFixtures, fixtures.TestBase):
- grouped=False,
- )
-
-- @testing.fails_if(
-- lambda: util.pypy,
-- "pypy doesn't report Obj.__init__ as object.__init__",
-- )
-+ @testing.requires.cpython
- def test_init_grouped(self):
- object_spec = {
- "args": "(self)",
-@@ -2181,10 +2178,7 @@ class TestFormatArgspec(_Py3KFixtures, fixtures.TestBase):
- self._test_init(None, object_spec, wrapper_spec, custom_spec)
- self._test_init(True, object_spec, wrapper_spec, custom_spec)
-
-- @testing.fails_if(
-- lambda: util.pypy,
-- "pypy doesn't report Obj.__init__ as object.__init__",
-- )
-+ @testing.requires.cpython
- def test_init_bare(self):
- object_spec = {
- "args": "self",
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/files/
@ 2024-08-28 7:56 Andrew Ammerlaan
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2024-08-28 7:56 UTC (permalink / raw
To: gentoo-commits
commit: 39423f46e51202d836f186c627c6671748467dd7
Author: Michael Mair-Keimberger <mmk <AT> levelnine <DOT> at>
AuthorDate: Wed Aug 28 07:20:01 2024 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Aug 28 07:55:42 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39423f46
dev-python/sqlalchemy: remove unused patch(es)
Signed-off-by: Michael Mair-Keimberger <mmk <AT> levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/38313
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-python/sqlalchemy/files/sqlalchemy-2.0.30-py313.patch | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/dev-python/sqlalchemy/files/sqlalchemy-2.0.30-py313.patch b/dev-python/sqlalchemy/files/sqlalchemy-2.0.30-py313.patch
deleted file mode 100644
index 6c519d2a205e..000000000000
--- a/dev-python/sqlalchemy/files/sqlalchemy-2.0.30-py313.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py
-index c97fa7d..9a02e7d 100644
---- a/lib/sqlalchemy/util/langhelpers.py
-+++ b/lib/sqlalchemy/util/langhelpers.py
-@@ -1657,6 +1657,8 @@
- items: List[symbol]
- cls._items = items = []
- for k, v in dict_.items():
-+ if re.match(r"^__.*__$", k):
-+ continue
- if isinstance(v, int):
- sym = symbol(k, canonical=v)
- elif not k.startswith("_"):
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-28 7:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-16 19:05 [gentoo-commits] repo/gentoo:master commit in: dev-python/sqlalchemy/files/ Arthur Zamarin
-- strict thread matches above, loose matches on Subject: below --
2024-08-28 7:56 Andrew Ammerlaan
2022-03-27 17:02 Arthur Zamarin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox