7bf74af
%global srcname flake8-polyfill
7bf74af
7bf74af
Name:           python-%{srcname}
7bf74af
Version:        1.0.2
2d7e894
Release:        21%{?dist}
7bf74af
Summary:        Polyfill package for Flake8 plugins
7bf74af
7bf74af
License:        MIT
7bf74af
URL:            https://gitlab.com/pycqa/%{srcname}
7bf74af
Source0:        https://gitlab.com/pycqa/%{srcname}/-/archive/%{version}/%{srcname}-%{version}.tar.gz
7bf74af
8030e63
# Submitted upstream as pycqa/flake8-polyfill#1
8030e63
Patch0:         %{name}-1.0.2-pytest-4-compatibility.patch
8030e63
7bf74af
BuildArch:      noarch
7bf74af
7bf74af
%description
7bf74af
flake8-polyfill is a package that provides some compatibility helpers for
7bf74af
Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously.
7bf74af
7bf74af
7bf74af
%package -n python%{python3_pkgversion}-%{srcname}
7bf74af
Summary:        %{summary}
7bf74af
BuildRequires:  python%{python3_pkgversion}-devel
7bf74af
BuildRequires:  python%{python3_pkgversion}-flake8
7bf74af
BuildRequires:  python%{python3_pkgversion}-mock
7bf74af
BuildRequires:  python%{python3_pkgversion}-pytest
0b3ebed
BuildRequires:  python%{python3_pkgversion}-setuptools
7bf74af
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
7bf74af
c60fbc0
%if %{undefined __pythondist_requires}
7bf74af
Requires:       python%{python3_pkgversion}-flake8
c60fbc0
%endif
7bf74af
7bf74af
%description -n python%{python3_pkgversion}-%{srcname}
7bf74af
flake8-polyfill is a package that provides some compatibility helpers for
7bf74af
Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously.
7bf74af
7bf74af
7bf74af
%prep
7bf74af
%autosetup -p1 -n %{srcname}-%{version}
7bf74af
7bf74af
7bf74af
%build
7bf74af
%py3_build
7bf74af
7bf74af
7bf74af
%install
7bf74af
%py3_install
7bf74af
7bf74af
7bf74af
%check
7bf74af
PYTHONPATH=%{buildroot}%{python3_sitelib} \
c60fbc0
  py.test-%{python3_version} \
c60fbc0
  --ignore=tests/test_stdin.py \
c60fbc0
  tests
7bf74af
7bf74af
7bf74af
%files -n python%{python3_pkgversion}-%{srcname}
7bf74af
%license LICENSE
7bf74af
%doc AUTHORS.rst CHANGELOG.rst README.rst
7bf74af
%{python3_sitelib}/flake8_polyfill/
7bf74af
%{python3_sitelib}/flake8_polyfill-%{version}-py%{python3_version}.egg-info/
7bf74af
7bf74af
7bf74af
%changelog
2d7e894
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-21
2d7e894
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
2d7e894
14a9f4d
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-20
14a9f4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
14a9f4d
5e9ae73
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-19
5e9ae73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
5e9ae73
91fdcaf
* Fri Jul 14 2023 Python Maint <python-maint@redhat.com> - 1.0.2-18
91fdcaf
- Rebuilt for Python 3.12
91fdcaf
ea54fbe
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-17
ea54fbe
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
ea54fbe
0b3ebed
* Tue Nov 22 2022 Scott K Logan <logans@cottsay.net> - 1.0.2-16
0b3ebed
- Add missing dependency on setuptools (rhbz#2142042)
0b3ebed
c395402
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-15
c395402
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c395402
7294565
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.0.2-14
7294565
- Rebuilt for Python 3.11
7294565
1e7e986
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-13
1e7e986
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1e7e986
68ced56
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-12
68ced56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
68ced56
eeb968e
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.0.2-11
eeb968e
- Rebuilt for Python 3.10
eeb968e
b37f979
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-10
b37f979
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b37f979
9276c91
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-9
9276c91
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9276c91
50ad63f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-8
50ad63f
- Rebuilt for Python 3.9
50ad63f
c60fbc0
* Thu Feb 20 2020 Scott K Logan <logans@cottsay.net> - 1.0.2-7
c60fbc0
- Drop pep8 requirement and skip test which needs it
c60fbc0
- Fix automatic python dependency conditional
c60fbc0
5aa8acf
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-6
5aa8acf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5aa8acf
4efacac
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-5
4efacac
- Rebuilt for Python 3.8.0rc1 (#1748018)
4efacac
0a32a1d
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.0.2-4
0a32a1d
- Rebuilt for Python 3.8
0a32a1d
b01382f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-3
b01382f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
b01382f
8030e63
* Mon Jun 03 2019 Scott K Logan <logans@cottsay.net> - 1.0.2-2
8030e63
- Add patch for pytest 4 compatibility, pytest 3 deprecation (rhbz#1716494)
8030e63
7bf74af
* Thu Mar 21 2019 Scott K Logan <logans@cottsay.net> - 1.0.2-1
7bf74af
- Initial package