CI: Run a couple of Python 3.11 builds (RHEL 9 specific)
Related: rhbz#2208971
This commit is contained in:
parent
6a97abbde7
commit
e8933acb12
@ -9,7 +9,7 @@ License: MIT
|
|||||||
URL: https://github.com/timothycrosley/%{modname}
|
URL: https://github.com/timothycrosley/%{modname}
|
||||||
Source0: %{url}/archive/%{version}-2/%{modname}-%{version}-2.tar.gz
|
Source0: %{url}/archive/%{version}-2/%{modname}-%{version}-2.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: pyproject-rpm-macros
|
BuildRequires: pyproject-rpm-macros
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -17,10 +17,13 @@ This package contains executables.
|
|||||||
Building this tests that executables are not listed when +auto is not used
|
Building this tests that executables are not listed when +auto is not used
|
||||||
with %%pyproject_save_files.
|
with %%pyproject_save_files.
|
||||||
|
|
||||||
%package -n python3-%{modname}
|
This package also uses %%{python3_pkgversion} in name and has a very limited
|
||||||
|
set of dependencies -- allows to set a different value for it in the CI.
|
||||||
|
|
||||||
|
%package -n python%{python3_pkgversion}-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
|
|
||||||
%description -n python3-%{modname}
|
%description -n python%{python3_pkgversion}-%{modname}
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
@ -50,7 +53,7 @@ test -d %{buildroot}%{python3_sitelib}/%{modname}-%{version}.dist-info/
|
|||||||
grep -F %{_bindir}/%{modname} %{pyproject_files} && exit 1 || true
|
grep -F %{_bindir}/%{modname} %{pyproject_files} && exit 1 || true
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-%{modname} -f %{pyproject_files}
|
%files -n python%{python3_pkgversion}-%{modname} -f %{pyproject_files}
|
||||||
%doc README.rst *.md
|
%doc README.rst *.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{_bindir}/%{modname}
|
%{_bindir}/%{modname}
|
||||||
|
@ -8,11 +8,11 @@ URL: https://github.com/lepture/mistune
|
|||||||
Source0: %{url}/archive/v%{version}.tar.gz
|
Source0: %{url}/archive/v%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
BuildRequires: pyproject-rpm-macros
|
BuildRequires: pyproject-rpm-macros
|
||||||
|
|
||||||
# optional dependency, listed explicitly to have the extension module:
|
# optional dependency, listed explicitly to have the extension module:
|
||||||
BuildRequires: python3-Cython
|
BuildRequires: python%{python3_pkgversion}-Cython
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains an extension module. Does not contain pyproject.toml.
|
This package contains an extension module. Does not contain pyproject.toml.
|
||||||
@ -22,11 +22,13 @@ Building this tests:
|
|||||||
- default build backend without pyproject.toml
|
- default build backend without pyproject.toml
|
||||||
Check %%pyproject_check_import basic functionality.
|
Check %%pyproject_check_import basic functionality.
|
||||||
|
|
||||||
|
This package also uses %%{python3_pkgversion} in name and has a very limited
|
||||||
|
set of dependencies -- allows to set a different value for it in the CI.
|
||||||
|
|
||||||
%package -n python3-mistune
|
%package -n python%{python3_pkgversion}-mistune
|
||||||
Summary: %summary
|
Summary: %summary
|
||||||
|
|
||||||
%description -n python3-mistune
|
%description -n python%{python3_pkgversion}-mistune
|
||||||
%{summary}
|
%{summary}
|
||||||
|
|
||||||
|
|
||||||
@ -57,6 +59,6 @@ test -f %{buildroot}%{python3_sitearch}/mistune.py
|
|||||||
test -f %{buildroot}%{python3_sitearch}/mistune.cpython-*.so
|
test -f %{buildroot}%{python3_sitearch}/mistune.cpython-*.so
|
||||||
|
|
||||||
|
|
||||||
%files -n python3-mistune -f %{pyproject_files}
|
%files -n python%{python3_pkgversion}-mistune -f %{pyproject_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
@ -101,6 +101,12 @@
|
|||||||
- config-settings-test:
|
- config-settings-test:
|
||||||
dir: .
|
dir: .
|
||||||
run: ./mocktest.sh config-settings-test
|
run: ./mocktest.sh config-settings-test
|
||||||
|
- isort_311:
|
||||||
|
dir: .
|
||||||
|
run: ./mocktest.sh python-isort --define 'python3_pkgversion 3.11'
|
||||||
|
- mistune_311:
|
||||||
|
dir: .
|
||||||
|
run: ./mocktest.sh python-mistune --define 'python3_pkgversion 3.11'
|
||||||
required_packages:
|
required_packages:
|
||||||
- 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm'
|
- 'https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm'
|
||||||
- 'https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm'
|
- 'https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm'
|
||||||
|
Loading…
Reference in New Issue
Block a user