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.
This commit is contained in:
Alex Pyrgiotis 2024-10-14 23:56:39 +03:00
parent 4b32827ee3
commit 835ff4e527
No known key found for this signature in database
GPG key ID: B6C15EBA0357C9AA

View file

@ -221,6 +221,17 @@ convert the documents within a secure sandbox.
%prep %prep
%autosetup -p1 -n dangerzone-%{version} %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 %generate_buildrequires
%pyproject_buildrequires -R %pyproject_buildrequires -R