commit 1a0c0643ceb574009d790c3f7cce6c91e504f10e Author: Sergey Cherevko Date: Tue Apr 2 15:12:57 2024 +0300 import python3.12-pluggy-1.2.0-3.el9 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3d622e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pluggy-1.2.0.tar.gz diff --git a/.python3.12-pluggy.metadata b/.python3.12-pluggy.metadata new file mode 100644 index 0000000..4dc4f73 --- /dev/null +++ b/.python3.12-pluggy.metadata @@ -0,0 +1 @@ +0c828a7ed8ad728e4c6d3af0f18145357e8c582b SOURCES/pluggy-1.2.0.tar.gz diff --git a/SOURCES/gating.yaml b/SOURCES/gating.yaml new file mode 100644 index 0000000..a77f895 --- /dev/null +++ b/SOURCES/gating.yaml @@ -0,0 +1,7 @@ +--- !Policy + +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/SOURCES/plan.fmf b/SOURCES/plan.fmf new file mode 100644 index 0000000..b8c8271 --- /dev/null +++ b/SOURCES/plan.fmf @@ -0,0 +1,12 @@ +execute: + how: tmt +discover: + how: shell + dist-git-source: true + tests: + - name: bundled tests + require: + - python3.12-pytest + test: | + cd $(dirname $TMT_SOURCE_DIR/pluggy-*/testing) && + pytest-3.12 testing -k "not test_load_setuptools_instantiation" diff --git a/SPECS/python3.12-pluggy.spec b/SPECS/python3.12-pluggy.spec new file mode 100644 index 0000000..1e38fff --- /dev/null +++ b/SPECS/python3.12-pluggy.spec @@ -0,0 +1,90 @@ +%global __python3 /usr/bin/python3.12 +%global python3_pkgversion 3.12 + +%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.2.0 +Release: 3%{?dist} +Summary: The plugin manager stripped of pytest specific details + +# SPDX +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 +* Tue Apr 02 2024 Sergey Cherevko - 1.2.0-3 +- Rebuilt for MSVSphere 9.4-beta + +* Tue Jan 23 2024 Miro Hrončok - 1.2.0-3 +- Rebuilt for timestamp .pyc invalidation mode + +* Wed Jan 10 2024 Miro Hrončok - 1.2.0-2 +- Enable tests + +* Thu Oct 19 2023 Tomáš Hrnčiar - 1.2.0-1 +- Initial package +- Fedora contributions by: + Alfredo Moralejo + Karolina Surma + Karsten Hopp + Matthias Runge + Miro Hrončok + Patrik Kopkan + Peter Robinson + Thomas Moschny + Tomáš Hrnčiar + Zbigniew Jędrzejewski-Szmek