CI: Add Python 3.13 on EPEL 9 and 10
This commit is contained in:
parent
4aaa4be87e
commit
8a209c9005
3
plan.fmf
3
plan.fmf
@ -106,6 +106,9 @@ discover:
|
||||
- name: isort_c9s
|
||||
path: /tests
|
||||
test: NAME="CentOS Stream" VERSION_ID=9 ./mocktest.sh python-isort
|
||||
- name: isort_c10s
|
||||
path: /tests
|
||||
test: NAME="CentOS Stream" VERSION_ID=10 ./mocktest.sh python-isort
|
||||
prepare:
|
||||
- name: Install dependencies
|
||||
how: install
|
||||
|
||||
@ -37,6 +37,15 @@ Summary: %{summary}
|
||||
%package -n python%{python3_pkgversion}-%{modname}
|
||||
Summary: %{summary}
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{modname}
|
||||
%{summary}.
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} == 9 || 0%{?rhel} == 10
|
||||
%global python3_pkgversion 3.13
|
||||
%package -n python%{python3_pkgversion}-%{modname}
|
||||
Summary: %{summary}
|
||||
|
||||
%description -n python%{python3_pkgversion}-%{modname}
|
||||
%{summary}.
|
||||
|
||||
@ -55,6 +64,10 @@ Summary: %{summary}
|
||||
%pyproject_buildrequires
|
||||
%global python3_pkgversion 3.12
|
||||
%pyproject_buildrequires
|
||||
%endif
|
||||
%if 0%{?rhel} == 9 || 0%{?rhel} == 10
|
||||
%global python3_pkgversion 3.13
|
||||
%pyproject_buildrequires
|
||||
%global python3_pkgversion 3
|
||||
%endif
|
||||
|
||||
@ -67,6 +80,10 @@ Summary: %{summary}
|
||||
%pyproject_wheel
|
||||
%global python3_pkgversion 3.12
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
%if 0%{?rhel} == 9 || 0%{?rhel} == 10
|
||||
%global python3_pkgversion 3.13
|
||||
%pyproject_wheel
|
||||
%global python3_pkgversion 3
|
||||
%endif
|
||||
|
||||
@ -79,6 +96,11 @@ Summary: %{summary}
|
||||
%global python3_pkgversion 3.12
|
||||
%pyproject_install
|
||||
%pyproject_save_files -l isort
|
||||
%endif
|
||||
%if 0%{?rhel} == 9 || 0%{?rhel} == 10
|
||||
%global python3_pkgversion 3.13
|
||||
%pyproject_install
|
||||
%pyproject_save_files -l isort
|
||||
%global python3_pkgversion 3
|
||||
%endif
|
||||
# we keep this one last so /usr/bin/isort is installed with python3 shebang
|
||||
@ -107,6 +129,13 @@ diff %{pyproject_files} <(grep -F python3.11/site-packages %{pyproject_files})
|
||||
test -d %{buildroot}%{_usr}/lib/python3.12/site-packages/%{modname}/
|
||||
test -d %{buildroot}%{_usr}/lib/python3.12/site-packages/%{modname}-%{version}.dist-info/
|
||||
diff %{pyproject_files} <(grep -F python3.12/site-packages %{pyproject_files})
|
||||
%endif
|
||||
|
||||
%if 0%{?rhel} == 9 || 0%{?rhel} == 10
|
||||
%global python3_pkgversion 3.13
|
||||
test -d %{buildroot}%{_usr}/lib/python3.13/site-packages/%{modname}/
|
||||
test -d %{buildroot}%{_usr}/lib/python3.13/site-packages/%{modname}-%{version}.dist-info/
|
||||
diff %{pyproject_files} <(grep -F python3.13/site-packages %{pyproject_files})
|
||||
%global python3_pkgversion 3
|
||||
%endif
|
||||
|
||||
@ -121,5 +150,10 @@ diff %{pyproject_files} <(grep -F python3.12/site-packages %{pyproject_files})
|
||||
%global python3_pkgversion 3.12
|
||||
%files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files}
|
||||
%doc README.rst *.md
|
||||
%endif
|
||||
%if 0%{?rhel} == 9 || 0%{?rhel} == 10
|
||||
%global python3_pkgversion 3.13
|
||||
%files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files}
|
||||
%doc README.rst *.md
|
||||
%global python3_pkgversion 3
|
||||
%endif
|
||||
|
||||
Loading…
Reference in New Issue
Block a user