Debian Codegraph @

debian/patches/defuse-python-version-check.patch

raw symbols SCIP
1 Description: defuse upper Python version check.
2 This change allows building pyqi against Python 3.14 and further.
3 Apparently, no other changes are needed at least for this version bump.
4 .
5 This patch addresses the Debian-specific need to track a single Python
6 version and may not be welcome upstream.
7 Author: Étienne Mollier <[email protected]>
8 Bug-Debian: https://bugs.debian.org/1143363
9 Forwarded: not-needed
10 Last-Update: 2026-08-02
11 ---
12 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
13 --- pyqi.orig/setup.py
14 +++ pyqi/setup.py
15 @@ -45,9 +45,9 @@
16 classifiers = [s.strip() for s in classes.split('\n') if s]
17
18 # Verify Python version
19 -ver = '.'.join(map(str, [sys.version_info.major, sys.version_info.minor]))
20 -if ver not in ['3.9', '3.10', '3.11', '3.12', '3.13']:
21 - sys.stderr.write("Only Python 3.9 to 3.13 are supported.")
22 +if sys.version_info.major < 3 \
23 + or (sys.version_info.major == 3 and sys.version_info.minor < 9 ):
24 + sys.stderr.write("Only Python 3.9 and above are supported.")
25 sys.exit(1)
26
27 long_description = """pyqi (canonically pronounced pie chee) is a Python framework designed to support wrapping general commands in multiple types of interfaces, including at the command line, HTML, and API levels."""