Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] synapse: update to 1.94.0.
@ 2023-10-12 23:18 TinfoilSubmarine
  2023-10-13  0:29 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2023-10-12 23:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]

There is a new pull request by TinfoilSubmarine against master on the void-packages repository

https://github.com/TinfoilSubmarine/void-packages maint/synapse
https://github.com/void-linux/void-packages/pull/46648

synapse: update to 1.94.0.
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/46648.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/synapse-46648.patch --]
[-- Type: text/x-diff, Size: 28524 bytes --]

From ff88e181000bc1bc1b65240bfe4c2d8416288d83 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Wed, 11 Oct 2023 13:31:37 -0400
Subject: [PATCH 1/5] python3-phonenumbers: update to 8.13.22.

---
 srcpkgs/python3-phonenumbers/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/python3-phonenumbers/template b/srcpkgs/python3-phonenumbers/template
index 308c5ef75d3b5..3061b0099c431 100644
--- a/srcpkgs/python3-phonenumbers/template
+++ b/srcpkgs/python3-phonenumbers/template
@@ -1,7 +1,7 @@
 # Template file for 'python3-phonenumbers'
 pkgname=python3-phonenumbers
-version=8.13.20
-revision=2
+version=8.13.22
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3"
@@ -11,4 +11,4 @@ license="Apache-2.0"
 homepage="https://github.com/daviddrysdale/python-phonenumbers"
 changelog="https://raw.githubusercontent.com/daviddrysdale/python-phonenumbers/dev/python/HISTORY.md"
 distfiles="${PYPI_SITE}/p/phonenumbers/phonenumbers-${version}.tar.gz"
-checksum=bf2b35a806d37979e5361109429da46d9a047e59d9af98639d733c834e7dab22
+checksum=001664c90f59b8954766c2db85adafc8dbc96177efeb49607ca4e64a7acaf569

From 78e1dcee8d46df4bc47a53b86de00222ca98ffe9 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Thu, 12 Oct 2023 15:35:58 -0400
Subject: [PATCH 2/5] python3-incremental: update to 22.10.0.

---
 srcpkgs/python3-incremental/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-incremental/template b/srcpkgs/python3-incremental/template
index b1d3340d68bd3..2d4db7dbc1537 100644
--- a/srcpkgs/python3-incremental/template
+++ b/srcpkgs/python3-incremental/template
@@ -1,18 +1,18 @@
 # Template file for 'python3-incremental'
 pkgname=python3-incremental
-version=21.3.0
-revision=3
+version=22.10.0
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools"
 depends="python3"
-checkdepends="python3-pytest python3-Twisted python3-click"
 short_desc="Small library that versions your Python projects (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/twisted/incremental"
 changelog="https://raw.githubusercontent.com/twisted/incremental/trunk/NEWS.rst"
 distfiles="${PYPI_SITE}/i/incremental/incremental-${version}.tar.gz"
-checksum=02f5de5aff48f6b9f665d99d48bfc7ec03b6e3943210de7cfc88856d755d6f57
+checksum=912feeb5e0f7e0188e6f42241d2f450002e11bbc0937c65865045854c24c0bd0
+make_check=no # cyclic dependency with Twisted
 
 post_install() {
 	vlicense LICENSE

From 39ba887808b361e1c7b735be3c78535f8bbd65e6 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Thu, 12 Oct 2023 17:33:57 -0400
Subject: [PATCH 3/5] python3-Twisted: update to 23.8.0.

---
 .../patches/drop-fancy-pypi-readme.patch      |  33 +++
 .../patches/fix-test_format.patch             | 155 +++++++++++
 .../python3-Twisted/patches/python3.11.patch  | 258 ------------------
 .../patches/sendmail_getargspec.patch         |  32 ---
 srcpkgs/python3-Twisted/template              |  35 +--
 5 files changed, 207 insertions(+), 306 deletions(-)
 create mode 100644 srcpkgs/python3-Twisted/patches/drop-fancy-pypi-readme.patch
 create mode 100644 srcpkgs/python3-Twisted/patches/fix-test_format.patch
 delete mode 100644 srcpkgs/python3-Twisted/patches/python3.11.patch
 delete mode 100644 srcpkgs/python3-Twisted/patches/sendmail_getargspec.patch

diff --git a/srcpkgs/python3-Twisted/patches/drop-fancy-pypi-readme.patch b/srcpkgs/python3-Twisted/patches/drop-fancy-pypi-readme.patch
new file mode 100644
index 0000000000000..19f61aeb06533
--- /dev/null
+++ b/srcpkgs/python3-Twisted/patches/drop-fancy-pypi-readme.patch
@@ -0,0 +1,33 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index 59b1d48..51f1ac8 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -1,7 +1,6 @@
+ [build-system]
+ requires = [
+     "hatchling >= 1.10.0",
+-    "hatch-fancy-pypi-readme >= 22.5.0",
+     "incremental >= 22.10.0",
+ ]
+ build-backend = "hatchling.build"
+@@ -172,20 +172,6 @@ source = "code"
+ path = "src/twisted/__init__.py"
+ search-paths = ["src"]
+ 
+-[tool.hatch.metadata.hooks.fancy-pypi-readme]
+-content-type = "text/x-rst"
+-fragments = [
+-    { path = "README.rst" },
+-]
+-
+-[[tool.hatch.metadata.hooks.fancy-pypi-readme.substitutions]]
+-# Munge links of the form `NEWS <NEWS.rst>`_ to point at the appropriate
+-# location on GitHub so that they function when the long description is
+-# displayed on PyPI.
+-pattern = '`([^`]+)\s+<(?!https?://)([^>]+)>`_'
+-replacement = '`\1 <https://github.com/twisted/twisted/blob/trunk/\2>`_'
+-ignore-case = true
+-
+ [tool.hatch.build.targets.wheel]
+ packages = [
+     "src/twisted",
diff --git a/srcpkgs/python3-Twisted/patches/fix-test_format.patch b/srcpkgs/python3-Twisted/patches/fix-test_format.patch
new file mode 100644
index 0000000000000..74a79effe5786
--- /dev/null
+++ b/srcpkgs/python3-Twisted/patches/fix-test_format.patch
@@ -0,0 +1,155 @@
+From da3bf3dc29f067e7019b2a1c205834ab64b2139a Mon Sep 17 00:00:00 2001
+From: Paul Eggert <eggert@cs.ucla.edu>
+Date: Fri, 9 Dec 2022 10:16:42 -0800
+Subject: [PATCH 1/3] #11786 fix misuse of mktime in tests
+
+---
+ src/twisted/logger/test/test_format.py | 27 +++++++++++++-------------
+ 1 file changed, 14 insertions(+), 13 deletions(-)
+
+diff --git a/src/twisted/logger/test/test_format.py b/src/twisted/logger/test/test_format.py
+index dbfbe1af1ae..0671b6662c8 100644
+--- a/src/twisted/logger/test/test_format.py
++++ b/src/twisted/logger/test/test_format.py
+@@ -166,16 +166,17 @@ def test_formatTimeWithDefaultFormat(self) -> None:
+         def testForTimeZone(name: str, expectedDST: str, expectedSTD: str) -> None:
+             setTZ(name)
+ 
+-            localDST = mktime((2006, 6, 30, 0, 0, 0, 4, 181, 1))
+             localSTD = mktime((2007, 1, 31, 0, 0, 0, 2, 31, 0))
+-
+-            self.assertEqual(formatTime(localDST), expectedDST)
+             self.assertEqual(formatTime(localSTD), expectedSTD)
+ 
++            if expectedDST:
++                localDST = mktime((2006, 6, 30, 0, 0, 0, 4, 181, 1))
++                self.assertEqual(formatTime(localDST), expectedDST)
++
+         # UTC
+         testForTimeZone(
+             "UTC+00",
+-            "2006-06-30T00:00:00+0000",
++            None,
+             "2007-01-31T00:00:00+0000",
+         )
+ 
+@@ -196,7 +197,7 @@ def testForTimeZone(name: str, expectedDST: str, expectedSTD: str) -> None:
+         # No DST
+         testForTimeZone(
+             "CST+06",
+-            "2006-06-30T00:00:00-0600",
++            None,
+             "2007-01-31T00:00:00-0600",
+         )
+ 
+@@ -211,7 +212,7 @@ def test_formatTimeWithNoFormat(self) -> None:
+         """
+         If C{timeFormat} argument is L{None}, we get the default output.
+         """
+-        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, 1))
++        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, -1))
+         self.assertEqual(formatTime(t, timeFormat=None), "-")
+         self.assertEqual(formatTime(t, timeFormat=None, default="!"), "!")
+ 
+@@ -219,7 +220,7 @@ def test_formatTimeWithAlternateTimeFormat(self) -> None:
+         """
+         Alternate time format in output.
+         """
+-        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, 1))
++        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, -1))
+         self.assertEqual(formatTime(t, timeFormat="%Y/%W"), "2013/38")
+ 
+     def test_formatTimePercentF(self) -> None:
+@@ -246,7 +247,7 @@ def test_formatTimeDefault(self) -> None:
+         addTZCleanup(self)
+         setTZ("UTC+00")
+ 
+-        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, 1))
++        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, -1))
+         event = dict(log_format="XYZZY", log_time=t)
+         self.assertEqual(
+             formatEventAsClassicLogText(event),
+@@ -539,7 +540,7 @@ def test_eventAsTextSystemOnly(self) -> None:
+         except CapturedError:
+             f = Failure()
+ 
+-        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, 1))
++        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, -1))
+         event: LogEvent = {
+             "log_format": "ABCD",
+             "log_system": "fake_system",
+@@ -573,7 +574,7 @@ def test_eventAsTextTimestampOnly(self) -> None:
+         except CapturedError:
+             f = Failure()
+ 
+-        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, 1))
++        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, -1))
+         event: LogEvent = {
+             "log_format": "ABCD",
+             "log_system": "fake_system",
+@@ -601,7 +602,7 @@ def test_eventAsTextSystemMissing(self) -> None:
+         except CapturedError:
+             f = Failure()
+ 
+-        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, 1))
++        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, -1))
+         event: LogEvent = {
+             "log_format": "ABCD",
+             "log_time": t,
+@@ -628,7 +629,7 @@ def test_eventAsTextSystemMissingNamespaceAndLevel(self) -> None:
+         except CapturedError:
+             f = Failure()
+ 
+-        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, 1))
++        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, -1))
+         event: LogEvent = {
+             "log_format": "ABCD",
+             "log_time": t,
+@@ -657,7 +658,7 @@ def test_eventAsTextSystemMissingLevelOnly(self) -> None:
+         except CapturedError:
+             f = Failure()
+ 
+-        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, 1))
++        t = mktime((2013, 9, 24, 11, 40, 47, 1, 267, -1))
+         event: LogEvent = {
+             "log_format": "ABCD",
+             "log_time": t,
+
+From 29e6f71b536822aa397983a5b84bc5098e10f92d Mon Sep 17 00:00:00 2001
+From: Glyph <code@glyph.im>
+Date: Thu, 31 Aug 2023 15:11:36 -0700
+Subject: [PATCH 2/3] news fragment
+
+---
+ src/twisted/newsfragments/11787.misc | 0
+ 1 file changed, 0 insertions(+), 0 deletions(-)
+ create mode 100644 src/twisted/newsfragments/11787.misc
+
+diff --git a/src/twisted/newsfragments/11787.misc b/src/twisted/newsfragments/11787.misc
+new file mode 100644
+index 00000000000..e69de29bb2d
+
+From b696cf9662ddbd7840ded2d9caab0a0bbb7fd386 Mon Sep 17 00:00:00 2001
+From: Glyph <code@glyph.im>
+Date: Thu, 31 Aug 2023 15:17:00 -0700
+Subject: [PATCH 3/3] add Optional annotation
+
+---
+ src/twisted/logger/test/test_format.py | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/src/twisted/logger/test/test_format.py b/src/twisted/logger/test/test_format.py
+index 0671b6662c8..67dbf0ce784 100644
+--- a/src/twisted/logger/test/test_format.py
++++ b/src/twisted/logger/test/test_format.py
+@@ -163,7 +163,9 @@ def test_formatTimeWithDefaultFormat(self) -> None:
+         if tzset is None:
+             raise SkipTest("Platform cannot change timezone; unable to verify offsets.")
+ 
+-        def testForTimeZone(name: str, expectedDST: str, expectedSTD: str) -> None:
++        def testForTimeZone(
++            name: str, expectedDST: Optional[str], expectedSTD: str
++        ) -> None:
+             setTZ(name)
+ 
+             localSTD = mktime((2007, 1, 31, 0, 0, 0, 2, 31, 0))
diff --git a/srcpkgs/python3-Twisted/patches/python3.11.patch b/srcpkgs/python3-Twisted/patches/python3.11.patch
deleted file mode 100644
index d4f2de447b0f7..0000000000000
--- a/srcpkgs/python3-Twisted/patches/python3.11.patch
+++ /dev/null
@@ -1,258 +0,0 @@
-From 4f6d7fb0749429b092fe7538a7d2b11fe58319a6 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Wed, 2 Nov 2022 20:35:55 -0500
-Subject: [PATCH 02/12] fix twisted.persisted tests
-
----
- src/twisted/persisted/aot.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/twisted/persisted/aot.py b/src/twisted/persisted/aot.py
-index 0daeb3b4c85..204728058cd 100644
---- a/src/twisted/persisted/aot.py
-+++ b/src/twisted/persisted/aot.py
-@@ -399,8 +399,10 @@ def unjellyAO(self, ao):
-                 inst = klass.__new__(klass)
-                 if hasattr(klass, "__setstate__"):
-                     self.callAfter(inst.__setstate__, state)
--                else:
-+                elif isinstance(state, dict):
-                     inst.__dict__ = state
-+                else:
-+                    inst.__dict__ = state.__getstate__()
-                 return inst
- 
-             elif c is Ref:
-
-From 525377178adfa987ed56be753aec0fce35d721dc Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Wed, 2 Nov 2022 21:35:58 -0500
-Subject: [PATCH 03/12] fix tests for twisted.spread
-
----
- src/twisted/spread/flavors.py | 2 ++
- src/twisted/spread/jelly.py   | 3 ++-
- 2 files changed, 4 insertions(+), 1 deletion(-)
-
-diff --git a/src/twisted/spread/flavors.py b/src/twisted/spread/flavors.py
-index 77c974195aa..a4fcd2126b6 100644
---- a/src/twisted/spread/flavors.py
-+++ b/src/twisted/spread/flavors.py
-@@ -398,6 +398,8 @@ def setCopyableState(self, state):
-         object's dictionary (or a filtered approximation of it depending
-         on my peer's perspective).
-         """
-+        if not state:
-+            state = {}
-         state = {
-             x.decode("utf8") if isinstance(x, bytes) else x: y for x, y in state.items()
-         }
-diff --git a/src/twisted/spread/jelly.py b/src/twisted/spread/jelly.py
-index 7e1b4d254bd..46cda178448 100644
---- a/src/twisted/spread/jelly.py
-+++ b/src/twisted/spread/jelly.py
-@@ -154,7 +154,8 @@ def _newInstance(cls, state):
-     instance = _createBlank(cls)
- 
-     def defaultSetter(state):
--        instance.__dict__ = state
-+        if isinstance(state, dict):
-+            instance.__dict__ = state or {}
- 
-     setter = getattr(instance, "__setstate__", defaultSetter)
-     setter(state)
-
-From afcc224a02f72e5d12fa35d223bd753e8086b135 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Thu, 3 Nov 2022 21:12:31 -0500
-Subject: [PATCH 04/12] fix test for twisted.web
-
----
- src/twisted/web/test/test_flatten.py | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-diff --git a/src/twisted/web/test/test_flatten.py b/src/twisted/web/test/test_flatten.py
-index e10eb06c22f..ad8c58576c3 100644
---- a/src/twisted/web/test/test_flatten.py
-+++ b/src/twisted/web/test/test_flatten.py
-@@ -706,9 +706,10 @@ def render(self, request: Optional[IRequest]) -> Flattenable:
-                     Exception while flattening:
-                       \\[<unrenderable>\\]
-                       <unrenderable>
--                      .*
-+                      <Deferred at .* current result: <twisted.python.failure.Failure builtins.RuntimeError: example>>
-                       File ".*", line \\d*, in _flattenTree
-                         element = await element
-+                                  .*
-                     RuntimeError: example
-                     """
-                 ),
-
-From 4b5ab38b09b326cec7967e04bd4cae8a84bb6784 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Thu, 3 Nov 2022 22:05:54 -0500
-Subject: [PATCH 05/12] fix persisted tests in twisted.test
-
----
- src/twisted/test/test_persisted.py | 4 ++++
- 1 file changed, 4 insertions(+)
-
-diff --git a/src/twisted/test/test_persisted.py b/src/twisted/test/test_persisted.py
-index eedbbdac647..72354b33f38 100644
---- a/src/twisted/test/test_persisted.py
-+++ b/src/twisted/test/test_persisted.py
-@@ -378,6 +378,10 @@ class UnknownType:
-             def __dict__(self):
-                 raise AttributeError()
- 
-+            @property
-+            def __getstate__(self):
-+                raise AttributeError()
-+
-         self.assertRaises(TypeError, aot.jellyToSource, UnknownType())
- 
-     def test_basicIdentity(self):
-
-From f8f56d45113e5f2467a5e8375186e5db6309dfc6 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Thu, 3 Nov 2022 23:09:15 -0500
-Subject: [PATCH 06/12] fix twisted.trial tests
-
----
- src/twisted/trial/test/test_pyunitcompat.py | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
-
-diff --git a/src/twisted/trial/test/test_pyunitcompat.py b/src/twisted/trial/test/test_pyunitcompat.py
-index e8321c9cc6c..1ad4b5ebcf3 100644
---- a/src/twisted/trial/test/test_pyunitcompat.py
-+++ b/src/twisted/trial/test/test_pyunitcompat.py
-@@ -218,8 +218,10 @@ def test_tracebackFromCleanFailure(self):
-         pyresult = pyunit.TestResult()
-         result = PyUnitResultAdapter(pyresult)
-         result.addError(self, f)
-+        tback = "".join(traceback.format_exception(*exc_info))
-         self.assertEqual(
--            pyresult.errors[0][1], "".join(traceback.format_exception(*exc_info))
-+            pyresult.errors[0][1].endswith("ZeroDivisionError: division by zero\n"),
-+            tback.endswith("ZeroDivisionError: division by zero\n"),
-         )
- 
-     def test_trialSkip(self):
-
-From d91675ac5ffe907fcdbb3d1cedb1240008d81fd1 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Thu, 3 Nov 2022 23:15:55 -0500
-Subject: [PATCH 07/12] make test_flatten backwards-compatible
-
----
- src/twisted/web/test/test_flatten.py | 4 +---
- 1 file changed, 1 insertion(+), 3 deletions(-)
-
-diff --git a/src/twisted/web/test/test_flatten.py b/src/twisted/web/test/test_flatten.py
-index ad8c58576c3..1070f767563 100644
---- a/src/twisted/web/test/test_flatten.py
-+++ b/src/twisted/web/test/test_flatten.py
-@@ -708,9 +708,7 @@ def render(self, request: Optional[IRequest]) -> Flattenable:
-                       <unrenderable>
-                       <Deferred at .* current result: <twisted.python.failure.Failure builtins.RuntimeError: example>>
-                       File ".*", line \\d*, in _flattenTree
--                        element = await element
--                                  .*
--                    RuntimeError: example
-+                        element = await element.*
-                     """
-                 ),
-                 flags=re.MULTILINE,
-
-From 603c61978ff18920ce7a133d9a0e5761ad8fcc19 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Thu, 3 Nov 2022 23:23:15 -0500
-Subject: [PATCH 08/12] add newsfragment
-
----
- src/twisted/newsfragments/10343.misc | 1 +
- 1 file changed, 1 insertion(+)
- create mode 100644 src/twisted/newsfragments/10343.misc
-
-diff --git a/src/twisted/newsfragments/10343.misc b/src/twisted/newsfragments/10343.misc
-new file mode 100644
-index 00000000000..3930e5bd729
---- /dev/null
-+++ b/src/twisted/newsfragments/10343.misc
-@@ -0,0 +1 @@
-+Enable Python 3.11 for CI and fix the remaining broken tests.
-
-From 800f9e9372b993356e22104d8295a89d4ee5fac4 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Fri, 4 Nov 2022 15:16:05 -0500
-Subject: [PATCH 09/12] PR feedback
-
----
- .github/workflows/test.yaml             | 13 -------------
- src/twisted/newsfragments/10343.feature |  1 +
- src/twisted/newsfragments/10343.misc    |  1 -
- src/twisted/web/test/test_flatten.py    |  1 +
- 4 files changed, 2 insertions(+), 14 deletions(-)
- create mode 100644 src/twisted/newsfragments/10343.feature
- delete mode 100644 src/twisted/newsfragments/10343.misc
-
-@@ -1 +0,0 @@
--Enable Python 3.11 for CI and fix the remaining broken tests.
-diff --git a/src/twisted/web/test/test_flatten.py b/src/twisted/web/test/test_flatten.py
-index 1070f767563..ea6aa4a966a 100644
---- a/src/twisted/web/test/test_flatten.py
-+++ b/src/twisted/web/test/test_flatten.py
-@@ -714,6 +714,7 @@ def render(self, request: Optional[IRequest]) -> Flattenable:
-                 flags=re.MULTILINE,
-             ),
-         )
-+        self.assertTrue('RuntimeError: example' in str(failure.value))
-         # The original exception is unmodified and will be logged separately if
-         # unhandled.
-         self.failureResultOf(failing, RuntimeError)
-
-From 6b069e1de60d00b658c04b8d330ab399c912a6d7 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Fri, 4 Nov 2022 15:36:26 -0500
-Subject: [PATCH 10/12] run linter
-
----
- src/twisted/web/test/test_flatten.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/twisted/web/test/test_flatten.py b/src/twisted/web/test/test_flatten.py
-index ea6aa4a966a..8c0d14be8f4 100644
---- a/src/twisted/web/test/test_flatten.py
-+++ b/src/twisted/web/test/test_flatten.py
-@@ -714,7 +714,7 @@ def render(self, request: Optional[IRequest]) -> Flattenable:
-                 flags=re.MULTILINE,
-             ),
-         )
--        self.assertTrue('RuntimeError: example' in str(failure.value))
-+        self.assertTrue("RuntimeError: example" in str(failure.value))
-         # The original exception is unmodified and will be logged separately if
-         # unhandled.
-         self.failureResultOf(failing, RuntimeError)
-
-From fe8e9565e6dbcfea5258a69b098001ddd1479e4f Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Fri, 4 Nov 2022 19:10:20 -0500
-Subject: [PATCH 11/12] use assertIn vs assertTrue
-
----
- src/twisted/web/test/test_flatten.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/twisted/web/test/test_flatten.py b/src/twisted/web/test/test_flatten.py
-index 8c0d14be8f4..ad431312edb 100644
---- a/src/twisted/web/test/test_flatten.py
-+++ b/src/twisted/web/test/test_flatten.py
-@@ -714,7 +714,7 @@ def render(self, request: Optional[IRequest]) -> Flattenable:
-                 flags=re.MULTILINE,
-             ),
-         )
--        self.assertTrue("RuntimeError: example" in str(failure.value))
-+        self.assertIn("RuntimeError: example", str(failure.value))
-         # The original exception is unmodified and will be logged separately if
-         # unhandled.
-         self.failureResultOf(failing, RuntimeError)
diff --git a/srcpkgs/python3-Twisted/patches/sendmail_getargspec.patch b/srcpkgs/python3-Twisted/patches/sendmail_getargspec.patch
deleted file mode 100644
index 9a601544d4ba4..0000000000000
--- a/srcpkgs/python3-Twisted/patches/sendmail_getargspec.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-From 00bf5be704bee022ba4d9b24eb6c2c768b4a1921 Mon Sep 17 00:00:00 2001
-From: eevel <eevel@weezel3.weezelnet>
-Date: Wed, 26 Oct 2022 19:49:33 -0500
-Subject: [PATCH] fix sendmail tests for python 3.11
-
----
- src/twisted/mail/test/test_smtp.py   | 3 ++-
- src/twisted/newsfragments/10345.misc | 1 +
- 2 files changed, 3 insertions(+), 1 deletion(-)
- create mode 100644 src/twisted/newsfragments/10345.misc
-
-diff --git a/src/twisted/mail/test/test_smtp.py b/src/twisted/mail/test/test_smtp.py
-index 906eeaad410..4c1885935e4 100644
---- a/src/twisted/mail/test/test_smtp.py
-+++ b/src/twisted/mail/test/test_smtp.py
-@@ -1771,7 +1771,8 @@ def test_defaultReactorIsGlobalReactor(self):
-         The default C{reactor} parameter of L{twisted.mail.smtp.sendmail} is
-         L{twisted.internet.reactor}.
-         """
--        args, varArgs, keywords, defaults = inspect.getargspec(smtp.sendmail)
-+        fullSpec = inspect.getfullargspec(smtp.sendmail)
-+        defaults = fullSpec[3]
-         self.assertEqual(reactor, defaults[2])
- 
-     def _honorsESMTPArguments(self, username, password):
-diff --git a/src/twisted/newsfragments/10345.misc b/src/twisted/newsfragments/10345.misc
-new file mode 100644
-index 00000000000..2d51e2a7002
---- /dev/null
-+++ b/src/twisted/newsfragments/10345.misc
-@@ -0,0 +1 @@
-+Fix SendmailTests for python 3.11.
diff --git a/srcpkgs/python3-Twisted/template b/srcpkgs/python3-Twisted/template
index 9a2c5d412460e..94b71479dbaa5 100644
--- a/srcpkgs/python3-Twisted/template
+++ b/srcpkgs/python3-Twisted/template
@@ -1,24 +1,23 @@
 # Template file for 'python3-Twisted'
 pkgname=python3-Twisted
-version=22.10.0
-revision=2
-build_style=python3-module
-make_check_target=src/twisted
-hostmakedepends="python3-setuptools python3-incremental"
+version=23.8.0
+revision=1
+build_style=python3-pep517
+hostmakedepends="hatchling python3-incremental"
 makedepends="python3-devel"
 depends="python3-zope.interface python3-constantly python3-incremental
  python3-automat python3-hyperlink python3-attrs python3-typing_extensions
- python3-openssl python3-service_identity python3-pyasn1"
-checkdepends="python3-bcrypt python3-PyHamcrest git python3-h2
- python3-hyperframe python3-priority python3-hpack python3-appdirs
- python3-hypothesis $depends"
+ python3-openssl python3-service_identity python3-idna"
+checkdepends="python3-PyHamcrest python3-hypothesis python3-pyserial
+ python3-cryptography python3-appdirs python3-bcrypt python3-h2
+ python3-priority git xvfb-run $depends"
 short_desc="Asynchronous networking framework written in Python (Python3)"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
-homepage="https://twistedmatrix.com/"
+homepage="https://twisted.org/"
 changelog="https://raw.githubusercontent.com/twisted/twisted/trunk/NEWS.rst"
-distfiles="${PYPI_SITE}/T/Twisted/Twisted-${version}.tar.gz"
-checksum=32acbd40a94f5f46e7b42c109bfae2b302250945561783a8b7a059048f2d4d31
+distfiles="${PYPI_SITE}/t/twisted/twisted-${version}.tar.gz"
+checksum=3c73360add17336a622c0d811c2a2ce29866b6e59b1125fd6509b17252098a24
 make_check=ci-skip # some tests fail when running as root
 
 alternatives="
@@ -35,13 +34,17 @@ alternatives="
 post_patch() {
 	# test requires unpackaged cython-test-exception-raiser
 	rm src/twisted/test/test_failure.py
+	# issues with executing shell executables from the test
+	rm src/twisted/test/test_main.py
 }
 
 do_check() {
-	python3 setup.py install --prefix=build --root="$(pwd)"
-	PATH="$PWD/build/bin:$PATH" \
-		PYTHONPATH="$PWD/build/lib/python$py3_ver/site-packages" \
-		python3 -m twisted.trial twisted
+	export LC_CTYPE=en_US.UTF-8
+	testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
+	python3 -m installer --destdir "${testdir}" \
+		${make_install_args} ${make_install_target:-dist/*.whl}
+	PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \
+		trial ${makejobs} src/twisted
 }
 
 post_install() {

From 31916860ac3e5fe24753224efa5862060adf6833 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Thu, 12 Oct 2023 19:18:11 -0400
Subject: [PATCH 4/5] python3-xmlschema: update to 2.5.0.

---
 srcpkgs/python3-xmlschema/template | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/python3-xmlschema/template b/srcpkgs/python3-xmlschema/template
index 6f4d3be9d137f..37a3e42cf58f1 100644
--- a/srcpkgs/python3-xmlschema/template
+++ b/srcpkgs/python3-xmlschema/template
@@ -1,17 +1,18 @@
 # Template file for 'python3-xmlschema'
 pkgname=python3-xmlschema
-version=2.1.1
-revision=2
+version=2.5.0
+revision=1
 build_style=python3-module
 hostmakedepends="python3-setuptools python3-elementpath"
 depends="python3-elementpath"
-checkdepends="python3-lxml python3-Sphinx python3-pytest"
+checkdepends="python3-lxml python3-Sphinx python3-pytest
+ python3-typing_extensions"
 short_desc="XML Schema validator and decoder for Python"
 maintainer="Orphaned <orphan@voidlinux.org>"
 license="MIT"
 homepage="https://github.com/sissaschool/xmlschema"
 distfiles="${PYPI_SITE}/x/xmlschema/xmlschema-${version}.tar.gz"
-checksum=5ca34ff15dd3276cfb2e3e7b4c8dde4b7d4d27080f333a93b6c3f817e90abddf
+checksum=276a03e0fd3c94c148d528bff4d9482f9b99bf8c7b4056a2e8e703d28149d454
 
 post_install() {
 	vlicense LICENSE

From b8f4c4b49e46e0bba6e1d65125964c2415105eea Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Wed, 11 Oct 2023 11:02:47 -0400
Subject: [PATCH 5/5] synapse: update to 1.94.0.

---
 srcpkgs/synapse/template | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/srcpkgs/synapse/template b/srcpkgs/synapse/template
index 34b1cc84df31b..2debfb17108bd 100644
--- a/srcpkgs/synapse/template
+++ b/srcpkgs/synapse/template
@@ -1,7 +1,7 @@
 # Template file for 'synapse'
 pkgname=synapse
-version=1.93.0
-revision=2
+version=1.94.0
+revision=1
 build_style=python3-pep517
 build_helper=rust
 make_check_target=tests
@@ -25,7 +25,7 @@ license="Apache-2.0"
 homepage="https://github.com/matrix-org/synapse"
 changelog="https://raw.githubusercontent.com/matrix-org/synapse/develop/CHANGES.md"
 distfiles="https://github.com/matrix-org/synapse/archive/v${version}.tar.gz"
-checksum=4bacff7559cd1f36a51743b79fe871eb3b96933aa663aad6f8900a1c6b7f8e21
+checksum=79b58ded77b6b6fdb482c74dc315d813a1ba423f496fbf471bb9e1cda676e5d9
 
 system_accounts="synapse"
 synapse_homedir="/var/lib/synapse"

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2023-10-25 12:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-12 23:18 [PR PATCH] synapse: update to 1.94.0 TinfoilSubmarine
2023-10-13  0:29 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-10-13  0:30 ` TinfoilSubmarine
2023-10-14 23:37 ` [PR REVIEW] " Piraty
2023-10-15  3:17 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-10-15  3:46 ` [PR REVIEW] " TinfoilSubmarine
2023-10-19 12:09 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-10-19 12:44 ` TinfoilSubmarine
2023-10-19 12:49 ` [PR REVIEW] " TinfoilSubmarine
2023-10-24 14:10 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-10-25 11:31 ` Piraty
2023-10-25 11:31 ` [PR REVIEW] " Piraty
2023-10-25 11:31 ` Piraty
2023-10-25 11:31 ` Piraty
2023-10-25 12:08 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-10-25 12:53 ` [PR PATCH] [Merged]: synapse: update to 1.95.0 Piraty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).