From 0c723cee3b43d0136bf4bbe1538f512c538b8396 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Thu, 2 Feb 2023 20:14:15 +0000 Subject: [PATCH] Auto sync2gitlab import of python3.11-pluggy-1.0.0-2.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - python3.11-pluggy.spec | 82 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 python3.11-pluggy.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..09e7359 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/pluggy-1.0.0.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/python3.11-pluggy.spec b/python3.11-pluggy.spec new file mode 100644 index 0000000..b5d930d --- /dev/null +++ b/python3.11-pluggy.spec @@ -0,0 +1,82 @@ +%global __python3 /usr/bin/python3.11 +%global python3_pkgversion 3.11 + +%global pypi_name pluggy + +# Turn the tests off when bootstrapping Python, because pytest requires pluggy +%bcond_without tests + +Name: python%{python3_pkgversion}-pluggy +Version: 1.0.0 +Release: 2%{?dist} +Summary: The plugin manager stripped of pytest specific details + +License: MIT +URL: https://github.com/pytest-dev/pluggy +Source0: %{pypi_source} + + +BuildArch: noarch + +BuildRequires: python%{python3_pkgversion}-devel +BuildRequires: python%{python3_pkgversion}-rpm-macros +BuildRequires: python%{python3_pkgversion}-setuptools +%if %{with tests} +BuildRequires: python%{python3_pkgversion}-pytest +%endif + +%description +The plugin manager stripped of pytest specific details. + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +# remove setuptools_scm dependency since we don't have it in RHEL +sed -i '/setuptools-scm/d' pyproject.toml +sed -i '/setup_requires =/d' setup.cfg +sed -i '/setuptools-scm/d' setup.cfg + +# since setuptools_scm is not available we need to sed out it's usage from setup.py and set the correct version +sed -i 's/use_scm_version={"write_to": "src\/pluggy\/_version.py"}/version="%{version}"/g' setup.py + + +%build +%py3_build + + +%install +%py3_install + +%check +%if %{with tests} +# TODO investigate test_load_setuptools_instantiation failure +PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest testing -k "not test_load_setuptools_instantiation" +%endif +export PYTHONPATH=%{buildroot}%{python3_sitelib} +test "$(%{python3} -c 'import pluggy; print(pluggy.__version__)')" == "%{version}" + + +%files +%{python3_sitelib}/%{pypi_name}/ +%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ +%doc README.rst +%license LICENSE + + +%changelog +* Wed Feb 01 2023 Charalampos Stratakis - 1.0.0-2 +- Enable tests + +* Wed Oct 19 2022 Charalampos Stratakis - 1.0.0-1 +- Initial package +- Fedora contributions by: + Alfredo Moralejo + Karsten Hopp + Matthias Runge + Miro Hrončok + Patrik Kopkan + Peter Robinson + Thomas Moschny + Tomáš Hrnčiar + Zbigniew Jędrzejewski-Szmek diff --git a/sources b/sources new file mode 100644 index 0000000..f3f39e1 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (pluggy-1.0.0.tar.gz) = cf0bcbb4330c24ce473614befa19548f33fb39fa0ad094e1eae786202d7adadc28e16499f80ab96b630091765404ca5c5b6f9a55bc605e03514d8ab50cf9ae00