automatic version update by autodist [release 8.0.0-1mamba;Thu Feb 08 2024]
This commit is contained in:
parent
d0e5a2c11e
commit
bf98c6ff15
@ -1,5 +1,6 @@
|
||||
%define pkgname %(echo %name | cut -d- -f2- | tr - _)
|
||||
Name: python-pytest
|
||||
Version: 7.4.4
|
||||
Version: 8.0.0
|
||||
Release: 1mamba
|
||||
Summary: The pytest framework makes it easy to write small tests, yet scales to support complex functional testing for applications and libraries
|
||||
Group: System/Libraries
|
||||
@ -14,7 +15,6 @@ BuildRequires: libpython311-devel
|
||||
BuildRequires: python3.11dist(iniconfig)
|
||||
BuildRequires: python3.11dist(packaging)
|
||||
BuildRequires: python3.11dist(pluggy)
|
||||
BuildRequires: python3.11dist(setuptools)
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: python3-devel >= 3.11.5-3mamba
|
||||
|
||||
@ -29,37 +29,38 @@ BuildRequires: python3-devel >= 3.11.5-3mamba
|
||||
%setup -q -n pytest-%{version}
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags}" %{__python} setup.py build
|
||||
CFLAGS="%{optflags}" %{__python} -m build --no-isolation --wheel
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%{__python} setup.py install \
|
||||
-O1 --skip-build \
|
||||
--root="%{buildroot}" \
|
||||
--install-headers=%{python_inc} \
|
||||
--install-lib=%{python_sitearch} \
|
||||
--record=%{name}.filelist
|
||||
|
||||
sed -i "\,\.egg-info/,d;s,.*/man/.*,&.gz," %{name}.filelist
|
||||
%{__python} -m installer --destdir=%{buildroot} dist/*.whl
|
||||
|
||||
%if "%{?with_pyver}" != "3"
|
||||
# Rename any conflicting file outside of python site packages tree
|
||||
for f in %{_bindir}/{pytest,py.test}; do
|
||||
for f in %{_bindir}/{py.test,pytest}; do
|
||||
mv %{buildroot}${f}{,-%{?pyappend}}
|
||||
done
|
||||
sed -i "\,%{_bindir}/pytest,d" %{name}.filelist
|
||||
sed -i "\,%{_bindir}/py.test,d" %{name}.filelist
|
||||
%endif
|
||||
|
||||
%files %{?pyappend} -f %{name}.filelist
|
||||
%files %{?pyappend}
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/py.test*
|
||||
%{_bindir}/pytest*
|
||||
%dir %{python_sitearch}/pytest-%{version}-py*.egg-info
|
||||
%{python_sitearch}/pytest-%{version}-py*.egg-info/*
|
||||
%dir %{python_sitelib}/%{pkgname}-%{version}.dist-info
|
||||
%{python_sitelib}/%{pkgname}-%{version}.dist-info/*
|
||||
%dir %{python_sitelib}/%{pkgname}
|
||||
%{python_sitelib}/%{pkgname}/*
|
||||
%dir %{python_sitelib}/_%{pkgname}
|
||||
%{python_sitelib}/_%{pkgname}/*
|
||||
%{python_sitelib}/__pycache__/py.cpython*.pyc
|
||||
%{python_sitelib}/__pycache__/py.cpython*.pyc
|
||||
%{python_sitelib}/py.py
|
||||
%doc AUTHORS LICENSE
|
||||
|
||||
%changelog
|
||||
* Thu Feb 08 2024 Automatic Build System <autodist@openmamba.org> 8.0.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Sun Dec 31 2023 Automatic Build System <autodist@mambasoft.it> 7.4.4-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user