|
|
197a1d |
%global __python3 /usr/bin/python3.11
|
|
|
197a1d |
%global python3_pkgversion 3.11
|
|
|
197a1d |
|
|
|
197a1d |
%global pypi_name pluggy
|
|
|
197a1d |
|
|
|
197a1d |
# Turn the tests off when bootstrapping Python, because pytest requires pluggy
|
|
|
197a1d |
%bcond_without tests
|
|
|
197a1d |
|
|
|
197a1d |
Name: python%{python3_pkgversion}-pluggy
|
|
|
197a1d |
Version: 1.0.0
|
|
|
197a1d |
Release: 2%{?dist}
|
|
|
197a1d |
Summary: The plugin manager stripped of pytest specific details
|
|
|
197a1d |
|
|
|
197a1d |
License: MIT
|
|
|
197a1d |
URL: https://github.com/pytest-dev/pluggy
|
|
|
197a1d |
Source0: %{pypi_source}
|
|
|
197a1d |
|
|
|
197a1d |
|
|
|
197a1d |
BuildArch: noarch
|
|
|
197a1d |
|
|
|
197a1d |
BuildRequires: python%{python3_pkgversion}-devel
|
|
|
197a1d |
BuildRequires: python%{python3_pkgversion}-rpm-macros
|
|
|
197a1d |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
|
197a1d |
%if %{with tests}
|
|
|
197a1d |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
|
197a1d |
%endif
|
|
|
197a1d |
|
|
|
197a1d |
%description
|
|
|
197a1d |
The plugin manager stripped of pytest specific details.
|
|
|
197a1d |
|
|
|
197a1d |
|
|
|
197a1d |
%prep
|
|
|
197a1d |
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
197a1d |
|
|
|
197a1d |
# remove setuptools_scm dependency since we don't have it in RHEL
|
|
|
197a1d |
sed -i '/setuptools-scm/d' pyproject.toml
|
|
|
197a1d |
sed -i '/setup_requires =/d' setup.cfg
|
|
|
197a1d |
sed -i '/setuptools-scm/d' setup.cfg
|
|
|
197a1d |
|
|
|
197a1d |
# since setuptools_scm is not available we need to sed out it's usage from setup.py and set the correct version
|
|
|
197a1d |
sed -i 's/use_scm_version={"write_to": "src\/pluggy\/_version.py"}/version="%{version}"/g' setup.py
|
|
|
197a1d |
|
|
|
197a1d |
|
|
|
197a1d |
%build
|
|
|
197a1d |
%py3_build
|
|
|
197a1d |
|
|
|
197a1d |
|
|
|
197a1d |
%install
|
|
|
197a1d |
%py3_install
|
|
|
197a1d |
|
|
|
197a1d |
%check
|
|
|
197a1d |
%if %{with tests}
|
|
|
197a1d |
# TODO investigate test_load_setuptools_instantiation failure
|
|
|
197a1d |
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest testing -k "not test_load_setuptools_instantiation"
|
|
|
197a1d |
%endif
|
|
|
197a1d |
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
197a1d |
test "$(%{python3} -c 'import pluggy; print(pluggy.__version__)')" == "%{version}"
|
|
|
197a1d |
|
|
|
197a1d |
|
|
|
197a1d |
%files
|
|
|
197a1d |
%{python3_sitelib}/%{pypi_name}/
|
|
|
197a1d |
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
|
|
|
197a1d |
%doc README.rst
|
|
|
197a1d |
%license LICENSE
|
|
|
197a1d |
|
|
|
197a1d |
|
|
|
197a1d |
%changelog
|
|
|
197a1d |
* Wed Feb 01 2023 Charalampos Stratakis <cstratak@redhat.com> - 1.0.0-2
|
|
|
197a1d |
- Enable tests
|
|
|
197a1d |
|
|
|
197a1d |
* Wed Oct 19 2022 Charalampos Stratakis <cstratak@redhat.com> - 1.0.0-1
|
|
|
197a1d |
- Initial package
|
|
|
197a1d |
- Fedora contributions by:
|
|
|
197a1d |
Alfredo Moralejo <amoralej@redhat.com>
|
|
|
197a1d |
Karsten Hopp <karsten@redhat.com>
|
|
|
197a1d |
Matthias Runge <mrunge@redhat.com>
|
|
|
197a1d |
Miro Hrončok <miro@hroncok.cz>
|
|
|
197a1d |
Patrik Kopkan <pkopkan@redhat.com>
|
|
|
197a1d |
Peter Robinson <pbrobinson@fedoraproject.org>
|
|
|
197a1d |
Thomas Moschny <thm@fedoraproject.org>
|
|
|
197a1d |
Tomáš Hrnčiar <thrnciar@redhat.com>
|
|
|
197a1d |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
|