Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 9c74e17

Browse files
yan12125svntogit
authored andcommitted
buildbot: fix for Python 3.10
Related tickets/PRs: * python/cpython#20236 * https://twistedmatrix.com/trac/ticket/10273 git-svn-id: file:///srv/repos/svn-community/svn@1065036 9fca08f4-af9d-4005-b8df-a31f2cc04f65
1 parent 1ff31df commit 9c74e17

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

trunk/PKGBUILD

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ makedepends=(python-twisted python-jinja python-zope-interface python-sqlalchemy
2828
git yarn)
2929
source=("https://github.com/buildbot/buildbot/releases/download/v$pkgver/buildbot-v$pkgver.gitarchive.tar.gz"{,.asc}
3030
"git+https://github.com/buildbot/buildbot-contrib.git#commit=$_bb_contrib_commit"
31-
"buildbot-contrib-systemd-common.patch::https://github.com/buildbot/buildbot-contrib/pull/22.patch")
31+
"buildbot-contrib-systemd-common.patch::https://github.com/buildbot/buildbot-contrib/pull/22.patch"
32+
"python310.diff")
3233
sha256sums=('da729c7f4dc2e30f5a5d69e34dd629b0b3d97001b12d72aeb691bb2f0ef0efeb'
3334
'SKIP'
3435
'SKIP'
35-
'896eede4c33a8574d7c29ac4a28cebbe3d7e850931a86e945328f8ea358195a9')
36+
'896eede4c33a8574d7c29ac4a28cebbe3d7e850931a86e945328f8ea358195a9'
37+
'7ca79a209e5f77dff01bef526d92a0ac08cf65a6ab22f32d03575c97a5b49ebd')
3638
validpgpkeys=(
3739
'390EB159056ED56F66AB1092AECD456B4D2531FC' # Pierre Tardy <tardyp@gmail.com> (@tardyp on GitHub)
3840
'FD0004A26EADFE43A4C3F249C6F7AE200374452D' # Povilas Kanapickas <povilas@radix.lt> (@p12tic on GitHub)
@@ -57,6 +59,11 @@ prepare() {
5759
rm -v master/buildbot/scripts/windows_service.py
5860
rm -v worker/buildbot_worker/scripts/windows_service.py
5961

62+
# Fixes for Python 3.10 breakages:
63+
# https://github.com/python/cpython/pull/20236
64+
# https://twistedmatrix.com/trac/ticket/10273
65+
patch -Np1 -i ../python310.diff
66+
6067
cd "$srcdir"/buildbot-contrib
6168
patch -Np1 -i ../buildbot-contrib-systemd-common.patch
6269
}

trunk/python310.diff

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
diff --git a/master/buildbot/test/unit/www/test_ws.py b/master/buildbot/test/unit/www/test_ws.py
2+
index 43dfce5a7..21f4b3b5c 100644
3+
--- a/master/buildbot/test/unit/www/test_ws.py
4+
+++ b/master/buildbot/test/unit/www/test_ws.py
5+
@@ -92,7 +92,7 @@ class WsResource(TestReactorMixin, www.WwwTestMixin, unittest.TestCase):
6+
{
7+
"_id": 1,
8+
"code": 400,
9+
- "error": "Invalid method argument 'cmd_ping() got an unexpected keyword "
10+
+ "error": "Invalid method argument 'WsProtocol.cmd_ping() got an unexpected keyword "
11+
"argument 'foo''",
12+
},
13+
)
14+
@@ -106,7 +106,7 @@ class WsResource(TestReactorMixin, www.WwwTestMixin, unittest.TestCase):
15+
self.proto.sendMessage,
16+
{
17+
"id": None,
18+
- "message": "Invalid method argument 'graphql_cmd_connection_init() got an "
19+
+ "message": "Invalid method argument 'WsProtocol.graphql_cmd_connection_init() got an "
20+
"unexpected keyword argument 'foo''",
21+
"type": "error",
22+
},
23+
diff --git a/master/buildbot/test/__init__.py b/master/buildbot/test/__init__.py
24+
index 8c8f53823..0f176028a 100644
25+
--- a/master/buildbot/test/__init__.py
26+
+++ b/master/buildbot/test/__init__.py
27+
@@ -128,3 +128,6 @@ warnings.filterwarnings('ignore', ".*Not importing directory .*/sphinxcontrib: m
28+
# https://github.com/pypa/setuptools/issues/2086
29+
warnings.filterwarnings('ignore', ".*lib2to3 package is deprecated",
30+
category=PendingDeprecationWarning)
31+
+
32+
+warnings.filterwarnings('ignore', r".*currentThread\(\) is deprecated, use current_thread\(\) instead.*",
33+
+ category=DeprecationWarning)

0 commit comments

Comments
 (0)