commit 1afd12ed05b784c8f7f6ae7820afc42e75a894cf Author: James Antill Date: Mon Aug 8 13:59:50 2022 -0400 Import rpm: cdab894d615e058f719b4717c9d553d4d5527c57 diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c48294 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/python-pluggy-0.6.0.tar.gz diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..648918d --- /dev/null +++ b/gating.yaml @@ -0,0 +1,6 @@ +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional} diff --git a/plans.fmf b/plans.fmf new file mode 100644 index 0000000..b548377 --- /dev/null +++ b/plans.fmf @@ -0,0 +1,11 @@ +discover: + - name: Smoke-tests + how: shell + tests: + - name: python-import-test + test: python3 -c 'import pluggy' + require: + - python3-pluggy + duration: 1m +execute: + how: tmt diff --git a/python-pluggy.spec b/python-pluggy.spec new file mode 100644 index 0000000..81f9827 --- /dev/null +++ b/python-pluggy.spec @@ -0,0 +1,163 @@ +%global pypiname pluggy + +%bcond_without python3 +%bcond_without tests + +Name: python-pluggy +Version: 0.6.0 +Release: 8%{?dist} +Summary: The plugin manager stripped of pytest specific details + +License: MIT +URL: https://github.com/pytest-dev/pluggy +Source0: https://github.com/pytest-dev/%{pypiname}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + + +BuildArch: noarch +BuildRequires: python2-devel +BuildRequires: python2-setuptools +%if %{with tests} +BuildRequires: python2-pytest +%endif +%if %{with python3} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%if %{with tests} +BuildRequires: python3-pytest +%endif # with tests +%endif # with python3 + +%global _description\ +The plugin manager stripped of pytest specific details. + +%description %_description + +%package -n python2-%{pypiname} +Summary: %summary +%{?python_provide:%python_provide python2-%{pypiname}} + +%description -n python2-%{pypiname} %_description + +%if %{with python3} +%package -n python3-%{pypiname} +Summary: The plugin manager stripped of pytest specific details. + +%description -n python3-%{pypiname} +The plugin manager stripped of pytest specific details. + +%endif # with python3 + + +%prep +%autosetup -n %{pypiname}-%{version} + + +%build +%py2_build + +%if %{with python3} +%py3_build +%endif # with python3 + + +%install +%if %{with python3} +%py3_install +%endif # with python3 + +%py2_install + + +%check +%if %{with tests} +export PYTHONPATH=.:$PYTHONPATH +py.test-%{python2_version} testing + +%if %{with python3} +py.test-%{python3_version} testing +%endif # with python3 +%endif # with tests + +%files -n python2-%{pypiname} +%doc README.rst +%license LICENSE +%{python2_sitelib}/%{pypiname} +%{python2_sitelib}/%{pypiname}-%{version}-py%{python2_version}.egg-info + + +%if %{with python3} +%files -n python3-%{pypiname} +%{python3_sitelib}/%{pypiname} +%{python3_sitelib}/%{pypiname}-%{version}-py%{python3_version}.egg-info +%doc README.rst +%license LICENSE +%endif # with python3 + + +%changelog +* Thu Apr 25 2019 Tomas Orsava - 0.6.0-8 +- Bumping due to problems with modular RPM upgrade path +- Resolves: rhbz#1695587 + +* Fri Aug 10 2018 Lumír Balhar - 0.6.0-7 +- Use py.test-2.7 instead of py.test +- Resolves: rhbz#1613343 + +* Tue Jul 31 2018 Lumír Balhar - 0.6.0-6 +- Switch python3 coditions to bcond + +* Fri Jul 13 2018 Lumír Balhar - 0.6.0-5 +- Python 3 subpackage enabled + +* Fri Jul 13 2018 Lumír Balhar - 0.6.0-4 +- Make possible to disable tests to solve circular dependency with pytest + +* Fri Jul 13 2018 Lumír Balhar - 0.6.0-3 +- First version for python27 module + +* Fri Feb 09 2018 Fedora Release Engineering - 0.6.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 29 2018 Matthias Runge - 0.6.0-1 +- update to 0.6.0 +- requirement renames to meet python2 names + +* Tue Jan 23 2018 Karsten Hopp - 0.3.1-10 +- fix conditional + +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.3.1-9 +- Python 2 binary package renamed to python2-pluggy + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + +* Thu Jul 27 2017 Fedora Release Engineering - 0.3.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.3.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.3.1-6 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.3.1-5 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 0.3.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Nov 16 2015 Matthias Runge - 0.3.1-3 +- make tests pass again on Python 3.5 + +* Tue Nov 10 2015 Fedora Release Engineering - 0.3.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Mon Sep 21 2015 Matthias Runge - 0.3.1-1 +- update to 0.3.1 + +* Tue Aug 25 2015 Matthias Runge - 0.3.0-3 +- fix python3 builds + +* Fri Aug 21 2015 Matthias Runge - 0.3.0-2 +- add python2_sitelib macros and BR to setuptools (rhbz#1254484) + +* Fri Aug 14 2015 Matthias Runge - 0.3.0-1 +- version based on the inital proposal of Adam Young diff --git a/sources b/sources new file mode 100644 index 0000000..e04ca86 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA1 (python-pluggy-0.6.0.tar.gz) = 695654f4016d617d1d0ae3f592adc14bc850b734