From 261d9217250ff56b666ba276a00b856f0f8b4168 Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Fri, 28 Apr 2023 17:09:31 +0300 Subject: [PATCH] Initial import from EPEL 9 upstream --- .gitignore | 1 + .python-betamax.metadata | 1 + SPECS/python-betamax.spec | 135 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 .gitignore create mode 100644 .python-betamax.metadata create mode 100644 SPECS/python-betamax.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..29abb5b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/betamax-0.8.1.tar.gz diff --git a/.python-betamax.metadata b/.python-betamax.metadata new file mode 100644 index 0000000..80fbe61 --- /dev/null +++ b/.python-betamax.metadata @@ -0,0 +1 @@ +d153ab9a327866c7d9579d431158df2de6d6093c SOURCES/betamax-0.8.1.tar.gz diff --git a/SPECS/python-betamax.spec b/SPECS/python-betamax.spec new file mode 100644 index 0000000..3822534 --- /dev/null +++ b/SPECS/python-betamax.spec @@ -0,0 +1,135 @@ +%global srcname betamax + +# tests need internet access therefore disabled by default +# $ fedpkg mockbuild --enable-network --with=tests +%bcond_with tests + +Name: python-%{srcname} +Version: 0.8.1 +Release: 12%{?dist} +Summary: VCR imitation for python-requests + +License: ASL 2.0 +URL: https://github.com/sigmavirus24/%{srcname} +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%global _description \ +Betamax is a VCR_ imitation for requests. This will make mocking out requests\ +much easier. + +%description %{_description} + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%if %{with tests} +BuildRequires: python3-pytest +BuildRequires: python3-requests >= 2.0 +%endif +Requires: python3-requests >= 2.0 + +%description -n python3-%{srcname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%if %{with tests} +# test_pytest_fixture: not sure why it fails but better run some tests than none +# test_replays_response_from_cassette: https://github.com/betamaxpy/betamax/issues/184 +# TestPyTestParametrizedFixtures: failure reason unknown +TEST_SELECTOR="not test_fixtures and not test_replays_response_from_cassette and not TestPyTestParametrizedFixtures" +py.test-%{python3_version} -vk "$TEST_SELECTOR" +%endif + +%files -n python3-%{srcname} +%doc README.rst +%license LICENSE +%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{srcname}-*.egg-info/ + +%changelog +* Fri Apr 28 2023 Sergey Cherevko - 0.8.1-12 +- Rebuilt for MSVSphere 9.1 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.8.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.8.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon May 25 2020 Miro Hrončok - 0.8.1-10 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.8.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.8.1-8 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.8.1-7 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.8.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Apr 11 2019 Miro Hrončok - 0.8.1-5 +- Subpackage python2-betamax has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Feb 02 2019 Fedora Release Engineering - 0.8.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.8.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.8.1-2 +- Rebuilt for Python 3.7 + +* Wed Mar 14 2018 Parag Nemade - 0.8.1-1 +- Update to 0.8.1 version (#1555089) + +* Fri Feb 09 2018 Fedora Release Engineering - 0.7.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.7.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.7.1-4 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 0.7.1-3 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Wed Jun 29 2016 Igor Gnatenko - 0.7.1-2 +- Add missing Requires: pythonX-requests +- Make python2- subpkg +- Minor fixes + +* Wed Jun 15 2016 Parag Nemade - 0.7.1-1 +- Update to 0.7.1 release + +* Mon May 02 2016 Parag Nemade - 0.7.0-1 +- Update to 0.7.0 release +- disable tests as they need network access + +* Thu Feb 04 2016 Fedora Release Engineering - 0.5.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Dec 21 2015 Parag Nemade - 0.5.1-1 +- Initial packaging