File python-3.11.patch of Package TW-xkeyboard-config-smarlayout (Revision 8153f35641f245b4e64cf3d96b06dcbd)
Currently displaying revision 8153f35641f245b4e64cf3d96b06dcbd , Show latest
76
1
diff -u -r -p xkeyboard-config-2.42.orig/meson.build xkeyboard-config-2.42/meson.build
2
--- xkeyboard-config-2.42.orig/meson.build 2024-12-09 14:33:33.685493000 +0100
3
+++ xkeyboard-config-2.42/meson.build 2024-12-09 14:35:09.281509000 +0100
4
5
6
# pytest suite
7
pymod = import('python')
8
-python = pymod.find_installation('python3',
9
+python = pymod.find_installation('python3.11',
10
modules: ['pytest'],
11
required: false)
12
pytest = find_program('pytest-3', 'pytest', required: false)
13
14
pytest_args = ['--verbose', '--log-level=DEBUG']
15
# use pytest xdist if available, it really speeds up the tests cases
16
optional_python_modules = ['xdist']
17
- if pymod.find_installation('python3', modules: optional_python_modules, required: false).found()
18
+ if pymod.find_installation('python3.11', modules: optional_python_modules, required: false).found()
19
pytest_args += ['-n', 'auto']
20
endif
21
22
diff -u -r -p xkeyboard-config-2.42.orig/rules/compat/map-variants.py xkeyboard-config-2.42/rules/compat/map-variants.py
23
--- xkeyboard-config-2.42.orig/rules/compat/map-variants.py 2024-12-09 14:33:37.968787000 +0100
24
+++ xkeyboard-config-2.42/rules/compat/map-variants.py 2024-12-09 14:35:19.598496000 +0100
25
26
-#!/usr/bin/env python3
27
+#!/usr/bin/env python3.11
28
29
import argparse
30
import re
31
diff -u -r -p xkeyboard-config-2.42.orig/rules/generate-options-symbols.py xkeyboard-config-2.42/rules/generate-options-symbols.py
32
--- xkeyboard-config-2.42.orig/rules/generate-options-symbols.py 2024-12-09 14:33:38.057788000 +0100
33
+++ xkeyboard-config-2.42/rules/generate-options-symbols.py 2024-12-09 14:35:24.650708000 +0100
34
35
-#!/usr/bin/env python3
36
+#!/usr/bin/env python3.11
37
#
38
# This file is formatted with python black
39
#
40
diff -u -r -p xkeyboard-config-2.42.orig/rules/merge.py xkeyboard-config-2.42/rules/merge.py
41
--- xkeyboard-config-2.42.orig/rules/merge.py 2024-12-09 14:33:38.086824000 +0100
42
+++ xkeyboard-config-2.42/rules/merge.py 2024-12-09 14:35:28.163506000 +0100
43
44
-#!/usr/bin/env python3
45
+#!/usr/bin/env python3.11
46
47
import argparse
48
import sys
49
diff -u -r -p xkeyboard-config-2.42.orig/scripts/symbols-tree.py xkeyboard-config-2.42/scripts/symbols-tree.py
50
--- xkeyboard-config-2.42.orig/scripts/symbols-tree.py 2024-12-09 14:33:38.372760000 +0100
51
+++ xkeyboard-config-2.42/scripts/symbols-tree.py 2024-12-09 14:35:31.811319000 +0100
52
53
-#!/usr/bin/env python3
54
+#!/usr/bin/env python3.11
55
#
56
# Builds a tree view of a symbols file (showing all includes)
57
#
58
diff -u -r -p xkeyboard-config-2.42.orig/tests/test_rules_xml.py xkeyboard-config-2.42/tests/test_rules_xml.py
59
--- xkeyboard-config-2.42.orig/tests/test_rules_xml.py 2024-12-09 14:33:45.854374000 +0100
60
+++ xkeyboard-config-2.42/tests/test_rules_xml.py 2024-12-09 14:35:35.266642000 +0100
61
62
-#!/usr/bin/env python3
63
+#!/usr/bin/env python3.11
64
#
65
# Call with pytest. Requires XKB_CONFIG_ROOT to be set
66
67
diff -u -r -p xkeyboard-config-2.42.orig/tests/test_xkb_symbols.py xkeyboard-config-2.42/tests/test_xkb_symbols.py
68
--- xkeyboard-config-2.42.orig/tests/test_xkb_symbols.py 2024-12-09 14:33:45.884365000 +0100
69
+++ xkeyboard-config-2.42/tests/test_xkb_symbols.py 2024-12-09 14:35:39.039457000 +0100
70
71
-#!/usr/bin/env python3
72
+#!/usr/bin/env python3.11
73
#
74
# Call with pytest. Requires XKB_CONFIG_ROOT to be set
75
76