From 835ff4e5279b21a7b02b027fdc511098e1431a49 Mon Sep 17 00:00:00 2001 From: Alex Pyrgiotis Date: Mon, 14 Oct 2024 23:56:39 +0300 Subject: [PATCH] Build RPM package for Python 3.13. Add a hacky line in pyproject.toml that bumps the Python requirement to 3.14, so that we can build a Dangerzone RPM. --- install/linux/dangerzone.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/install/linux/dangerzone.spec b/install/linux/dangerzone.spec index 6a47843..fca05fe 100644 --- a/install/linux/dangerzone.spec +++ b/install/linux/dangerzone.spec @@ -221,6 +221,17 @@ convert the documents within a secure sandbox. %prep %autosetup -p1 -n dangerzone-%{version} +# XXX: Bump the Python requirement in pyproject.toml from <3.13 to <3.14. Fedora +# 41 comes with Python 3.13 installed, but our pyproject.toml does not support +# it because PySide6 in PyPI works with Python 3.12 or earlier. +# +# This hack sidesteps this issue, and we haven't noticed any paticular problem +# with the package that is built from that. +%if 0%{?fedora} == 41 +sed -i 's/<3.13/<3.14/' pyproject.toml +%endif + + %generate_buildrequires %pyproject_buildrequires -R