|
 |
a05dfd |
%global srcname betamax
|
|
 |
a05dfd |
|
|
 |
a05dfd |
# tests need internet access therefore disabled by default
|
|
 |
a05dfd |
# $ fedpkg mockbuild --enable-network --with=tests
|
|
 |
a05dfd |
%bcond_with tests
|
|
 |
a05dfd |
|
|
 |
a05dfd |
Name: python-%{srcname}
|
|
 |
a05dfd |
Version: 0.8.1
|
|
 |
a05dfd |
Release: 12%{?dist}
|
|
 |
a05dfd |
Summary: VCR imitation for python-requests
|
|
 |
a05dfd |
|
|
 |
a05dfd |
License: ASL 2.0
|
|
 |
a05dfd |
URL: https://github.com/sigmavirus24/%{srcname}
|
|
 |
a05dfd |
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
 |
a05dfd |
|
|
 |
a05dfd |
BuildArch: noarch
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%global _description \
|
|
 |
a05dfd |
Betamax is a VCR_ imitation for requests. This will make mocking out requests\
|
|
 |
a05dfd |
much easier.
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%description %{_description}
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%package -n python3-%{srcname}
|
|
 |
a05dfd |
Summary: %{summary}
|
|
 |
a05dfd |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
 |
a05dfd |
BuildRequires: python3-devel
|
|
 |
a05dfd |
BuildRequires: python3-setuptools
|
|
 |
a05dfd |
%if %{with tests}
|
|
 |
a05dfd |
BuildRequires: python3-pytest
|
|
 |
a05dfd |
BuildRequires: python3-requests >= 2.0
|
|
 |
a05dfd |
%endif
|
|
 |
a05dfd |
Requires: python3-requests >= 2.0
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%description -n python3-%{srcname} %{_description}
|
|
 |
a05dfd |
|
|
 |
a05dfd |
Python 3 version.
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%prep
|
|
 |
a05dfd |
%autosetup -n %{srcname}-%{version}
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%build
|
|
 |
a05dfd |
%py3_build
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%install
|
|
 |
a05dfd |
%py3_install
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%check
|
|
 |
a05dfd |
%if %{with tests}
|
|
 |
a05dfd |
# test_pytest_fixture: not sure why it fails but better run some tests than none
|
|
 |
a05dfd |
# test_replays_response_from_cassette: https://github.com/betamaxpy/betamax/issues/184
|
|
 |
a05dfd |
# TestPyTestParametrizedFixtures: failure reason unknown
|
|
 |
a05dfd |
TEST_SELECTOR="not test_fixtures and not test_replays_response_from_cassette and not TestPyTestParametrizedFixtures"
|
|
 |
a05dfd |
py.test-%{python3_version} -vk "$TEST_SELECTOR"
|
|
 |
a05dfd |
%endif
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%files -n python3-%{srcname}
|
|
 |
a05dfd |
%doc README.rst
|
|
 |
a05dfd |
%license LICENSE
|
|
 |
a05dfd |
%{python3_sitelib}/%{srcname}/
|
|
 |
a05dfd |
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
 |
a05dfd |
|
|
 |
a05dfd |
%changelog
|
|
 |
a05dfd |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-12
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-11
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-10
|
|
 |
a05dfd |
- Rebuilt for Python 3.9
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-9
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-8
|
|
 |
a05dfd |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-7
|
|
 |
a05dfd |
- Rebuilt for Python 3.8
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-6
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Thu Apr 11 2019 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-5
|
|
 |
a05dfd |
- Subpackage python2-betamax has been removed
|
|
 |
a05dfd |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-4
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.1-3
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.8.1-2
|
|
 |
a05dfd |
- Rebuilt for Python 3.7
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Wed Mar 14 2018 Parag Nemade <pnemade AT redhat DOT com> - 0.8.1-1
|
|
 |
a05dfd |
- Update to 0.8.1 version (#1555089)
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-7
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-6
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1-5
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.7.1-4
|
|
 |
a05dfd |
- Rebuild for Python 3.6
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
|
|
 |
a05dfd |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Wed Jun 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.7.1-2
|
|
 |
a05dfd |
- Add missing Requires: pythonX-requests
|
|
 |
a05dfd |
- Make python2- subpkg
|
|
 |
a05dfd |
- Minor fixes
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Wed Jun 15 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.7.1-1
|
|
 |
a05dfd |
- Update to 0.7.1 release
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Mon May 02 2016 Parag Nemade <pnemade AT redhat DOT com> - 0.7.0-1
|
|
 |
a05dfd |
- Update to 0.7.0 release
|
|
 |
a05dfd |
- disable tests as they need network access
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.1-2
|
|
 |
a05dfd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
 |
a05dfd |
|
|
 |
a05dfd |
* Mon Dec 21 2015 Parag Nemade <pnemade AT redhat DOT com> - 0.5.1-1
|
|
 |
a05dfd |
- Initial packaging
|