Accepting request 1006539 from devel:languages:python:mailman
OBS-URL: https://build.opensuse.org/request/show/1006539 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-mailman?expand=0&rev=20
This commit is contained in:
commit
837f15f7b3
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 27 12:31:25 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Rewrite support-sqlalchemy-1-4.patch
|
||||||
|
* to be indeed backward-compatible
|
||||||
|
* to reflect newer mailman-support-sqlalchemy-1-4.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 31 08:52:38 UTC 2022 - Stefan Schubert <schubi@suse.com>
|
Wed Aug 31 08:52:38 UTC 2022 - Stefan Schubert <schubi@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
Index: mailman-3.3.4/setup.py
|
Index: mailman-3.3.5/setup.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- mailman-3.3.4.orig/setup.py
|
--- mailman-3.3.5.orig/setup.py
|
||||||
+++ mailman-3.3.4/setup.py
|
+++ mailman-3.3.5/setup.py
|
||||||
@@ -127,7 +127,7 @@ case second 'm'. Any other spelling is
|
@@ -127,7 +127,7 @@ case second 'm'. Any other spelling is
|
||||||
'python-dateutil>=2.0',
|
'python-dateutil>=2.0',
|
||||||
'passlib',
|
'passlib',
|
||||||
@ -11,10 +11,10 @@ Index: mailman-3.3.4/setup.py
|
|||||||
'zope.component',
|
'zope.component',
|
||||||
'zope.configuration',
|
'zope.configuration',
|
||||||
'zope.event',
|
'zope.event',
|
||||||
Index: mailman-3.3.4/src/mailman/database/tests/test_factory.py
|
Index: mailman-3.3.5/src/mailman/database/tests/test_factory.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- mailman-3.3.4.orig/src/mailman/database/tests/test_factory.py
|
--- mailman-3.3.5.orig/src/mailman/database/tests/test_factory.py
|
||||||
+++ mailman-3.3.4/src/mailman/database/tests/test_factory.py
|
+++ mailman-3.3.5/src/mailman/database/tests/test_factory.py
|
||||||
@@ -76,10 +76,11 @@ class TestSchemaManager(unittest.TestCas
|
@@ -76,10 +76,11 @@ class TestSchemaManager(unittest.TestCas
|
||||||
# In case of MySQL, you cannot create/drop indexes on primary keys
|
# In case of MySQL, you cannot create/drop indexes on primary keys
|
||||||
# manually as it is handled automatically by MySQL.
|
# manually as it is handled automatically by MySQL.
|
||||||
@ -41,19 +41,23 @@ Index: mailman-3.3.4/src/mailman/database/tests/test_factory.py
|
|||||||
config.db.commit()
|
config.db.commit()
|
||||||
|
|
||||||
def test_current_database(self):
|
def test_current_database(self):
|
||||||
Index: mailman-3.3.4/src/mailman/model/listmanager.py
|
Index: mailman-3.3.5/src/mailman/model/listmanager.py
|
||||||
===================================================================
|
===================================================================
|
||||||
--- mailman-3.3.4.orig/src/mailman/model/listmanager.py
|
--- mailman-3.3.5.orig/src/mailman/model/listmanager.py
|
||||||
+++ mailman-3.3.4/src/mailman/model/listmanager.py
|
+++ mailman-3.3.5/src/mailman/model/listmanager.py
|
||||||
@@ -31,6 +31,7 @@ from mailman.model.mime import ContentFi
|
@@ -31,6 +31,11 @@ from mailman.model.mime import ContentFi
|
||||||
from mailman.utilities.datetime import now
|
from mailman.utilities.datetime import now
|
||||||
from mailman.utilities.queries import QuerySequence
|
from mailman.utilities.queries import QuerySequence
|
||||||
from public import public
|
from public import public
|
||||||
+from sqlalchemy.engine import Row
|
+try:
|
||||||
|
+ from sqlalchemy.engine import Row
|
||||||
|
+except ImportError:
|
||||||
|
+ from sqlalchemy.engine import RowProxy as Row
|
||||||
|
+
|
||||||
from zope.event import notify
|
from zope.event import notify
|
||||||
from zope.interface import implementer
|
from zope.interface import implementer
|
||||||
|
|
||||||
@@ -120,7 +121,7 @@ class ListManager:
|
@@ -120,7 +125,7 @@ class ListManager:
|
||||||
"""See `IListManager`."""
|
"""See `IListManager`."""
|
||||||
result_set = store.query(MailingList)
|
result_set = store.query(MailingList)
|
||||||
for list_id in result_set.values(MailingList._list_id):
|
for list_id in result_set.values(MailingList._list_id):
|
||||||
@ -62,30 +66,3 @@ Index: mailman-3.3.4/src/mailman/model/listmanager.py
|
|||||||
yield list_id[0]
|
yield list_id[0]
|
||||||
|
|
||||||
@property
|
@property
|
||||||
Index: mailman-3.3.4/src/mailman/commands/tests/test_cli_delmembers.py
|
|
||||||
===================================================================
|
|
||||||
--- mailman-3.3.4.orig/src/mailman/commands/tests/test_cli_delmembers.py
|
|
||||||
+++ mailman-3.3.4/src/mailman/commands/tests/test_cli_delmembers.py
|
|
||||||
@@ -129,7 +129,9 @@ class TestCLIDelMembers(unittest.TestCas
|
|
||||||
subscribe(self._mlist, 'Bart')
|
|
||||||
result = self._command.invoke(delmembers, (
|
|
||||||
'-a', '-l', 'ant.example.com'))
|
|
||||||
- self.assertEqual(result.output, '')
|
|
||||||
+ # Do not check empty output until cache_ok warning is fixed:
|
|
||||||
+ # https://gitlab.com/mailman/mailman/-/issues/845
|
|
||||||
+ #self.assertEqual(result.output, '')
|
|
||||||
members = list(self._mlist.members.members)
|
|
||||||
self.assertEqual(len(members), 0)
|
|
||||||
|
|
||||||
@@ -143,7 +145,9 @@ class TestCLIDelMembers(unittest.TestCas
|
|
||||||
print('Bart Person <bperson@example.com>', file=infp)
|
|
||||||
result = self._command.invoke(delmembers, (
|
|
||||||
'--fromall', '-f', infp.name))
|
|
||||||
- self.assertEqual(result.output, '')
|
|
||||||
+ # Do not check empty output until cache_ok warning is fixed:
|
|
||||||
+ # https://gitlab.com/mailman/mailman/-/issues/845
|
|
||||||
+ #self.assertEqual(result.output, '')
|
|
||||||
members = list(self._mlist.members.members)
|
|
||||||
self.assertEqual(len(members), 1)
|
|
||||||
self.assertEqual(str(members[0].address),
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user