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