|
|
8ea59f2 |
# Python 3 only for Fedora for now.
|
|
Orion Poplawski |
62ab5e1 |
%if 0%{?fedora}
|
|
|
cf9ae3e |
%global with_python3 1
|
|
|
cf9ae3e |
%endif
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%global srcname pytest-flakes
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
Name: python-%{srcname}
|
|
|
b673b35 |
Version: 2.0.0
|
|
|
85d97f0 |
Release: 3%{?dist}
|
|
|
cf9ae3e |
Summary: Pytest plugin to check source code with pyflakes
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
License: MIT
|
|
|
cf9ae3e |
URL: https://pypi.python.org/pypi/%{srcname}
|
|
|
b673b35 |
Source0: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
BuildArch: noarch
|
|
|
cf9ae3e |
BuildRequires: python2-devel
|
|
|
85d97f0 |
BuildRequires: python2-setuptools
|
|
|
85d97f0 |
BuildRequires: python2-pyflakes
|
|
|
85d97f0 |
BuildRequires: python2-pytest
|
|
|
8ea59f2 |
# this is specified in setup.py, so we need it installed to run the
|
|
|
8ea59f2 |
# tests even if we have pytest >= 2.8, in which case it won't be used
|
|
|
8ea59f2 |
# at all
|
|
|
85d97f0 |
BuildRequires: python2-pytest-cache
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%if 0%{?with_python3}
|
|
Orion Poplawski |
62ab5e1 |
BuildRequires: python%{python3_pkgversion}-devel
|
|
Orion Poplawski |
62ab5e1 |
BuildRequires: python%{python3_pkgversion}-setuptools
|
|
Orion Poplawski |
62ab5e1 |
BuildRequires: python%{python3_pkgversion}-pyflakes
|
|
Orion Poplawski |
62ab5e1 |
BuildRequires: python%{python3_pkgversion}-pytest
|
|
Orion Poplawski |
62ab5e1 |
BuildRequires: python%{python3_pkgversion}-pytest-cache
|
|
|
8ea59f2 |
%endif # with_python3
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%description
|
|
|
cf9ae3e |
Py.test plugin for efficiently checking python source with pyflakes.
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
|
|
|
8ea59f2 |
%package -n python2-%{srcname}
|
|
|
8ea59f2 |
Summary: %{summary}
|
|
|
8ea59f2 |
%{?python_provide:%python_provide python2-%{srcname}}
|
|
|
85d97f0 |
Requires: python2-pyflakes
|
|
|
8ea59f2 |
|
|
|
8ea59f2 |
%description -n python2-%{srcname}
|
|
|
8ea59f2 |
Py.test plugin for efficiently checking python source with pyflakes.
|
|
|
8ea59f2 |
Python 2 build.
|
|
|
8ea59f2 |
|
|
|
8ea59f2 |
|
|
|
8ea59f2 |
|
|
|
cf9ae3e |
%if 0%{?with_python3}
|
|
Orion Poplawski |
62ab5e1 |
%package -n python%{python3_pkgversion}-%{srcname}
|
|
|
cf9ae3e |
Summary: Pytest plugin to check source code with pyflakes
|
|
Orion Poplawski |
62ab5e1 |
Requires: python%{python3_pkgversion}-pyflakes
|
|
|
cf9ae3e |
|
|
Orion Poplawski |
62ab5e1 |
%description -n python%{python3_pkgversion}-%{srcname}
|
|
|
cf9ae3e |
Py.test plugin for efficiently checking python source with pyflakes.
|
|
|
8ea59f2 |
Python 3 build.
|
|
|
cf9ae3e |
%endif # with_python3
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%prep
|
|
|
cf9ae3e |
%setup -q -n %{srcname}-%{version}
|
|
|
cf9ae3e |
rm -rf *.egg-info
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%build
|
|
|
8ea59f2 |
%py2_build
|
|
|
cf9ae3e |
%if 0%{?with_python3}
|
|
|
8ea59f2 |
%py3_build
|
|
|
cf9ae3e |
%endif # with_python3
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%install
|
|
|
cf9ae3e |
%if 0%{?with_python3}
|
|
|
8ea59f2 |
%py3_install
|
|
|
cf9ae3e |
%endif # with_python3
|
|
|
8ea59f2 |
%py2_install
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%check
|
|
|
cf9ae3e |
%{__python2} setup.py test
|
|
|
cf9ae3e |
%if 0%{?with_python3}
|
|
|
cf9ae3e |
%{__python3} setup.py test
|
|
|
cf9ae3e |
%endif # with_python3
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
|
|
|
8ea59f2 |
%files -n python2-%{srcname}
|
|
|
8ea59f2 |
%license LICENSE
|
|
|
8ea59f2 |
%doc README.rst
|
|
|
cf9ae3e |
%{python2_sitelib}/*
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%if 0%{?with_python3}
|
|
Orion Poplawski |
62ab5e1 |
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
8ea59f2 |
%license LICENSE
|
|
|
8ea59f2 |
%doc README.rst
|
|
Orion Poplawski |
62ab5e1 |
%{python3_sitelib}/__pycache__/*
|
|
Orion Poplawski |
62ab5e1 |
%{python3_sitelib}/*.egg-info
|
|
Orion Poplawski |
62ab5e1 |
%{python3_sitelib}/*.py
|
|
|
cf9ae3e |
%endif # with_python3
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
%changelog
|
|
|
85d97f0 |
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.0-3
|
|
|
85d97f0 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
85d97f0 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
85d97f0 |
|
|
|
b095707 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
|
b095707 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
b095707 |
|
|
|
b673b35 |
* Fri Nov 17 2017 Orin Poplawski <orion@nwra.com> - 2.0.0-1
|
|
|
b673b35 |
- Update to 2.0.0
|
|
|
b673b35 |
|
|
|
c4c74a5 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-7
|
|
|
c4c74a5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c4c74a5 |
|
|
|
cda6e90 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-6
|
|
|
cda6e90 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
cda6e90 |
|
|
|
7e0cda2 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.0.1-5
|
|
|
7e0cda2 |
- Rebuild for Python 3.6
|
|
|
7e0cda2 |
|
|
Orion Poplawski |
62ab5e1 |
* Wed Nov 16 2016 Orion Poplawski <orion@cora.nwra.com> - 1.0.1-4
|
|
Orion Poplawski |
62ab5e1 |
- Do not own __pycache__ dir
|
|
Orion Poplawski |
62ab5e1 |
|
|
|
15159f2 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
|
|
|
15159f2 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
15159f2 |
|
|
|
ef0c78e |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
|
|
|
ef0c78e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
ef0c78e |
|
|
|
8ea59f2 |
* Fri Jan 22 2016 Adam Williamson <awilliam@redhat.com> - 1.0.1-1
|
|
|
8ea59f2 |
- new release 1.0.1 (compatible with pytest 2.8)
|
|
|
8ea59f2 |
- rename py2 package to python2-pytest-flakes
|
|
|
8ea59f2 |
- only require pytest-cache on
|
|
|
8ea59f2 |
- use pyX_build and pyX_install
|
|
|
8ea59f2 |
- use license macro
|
|
|
8ea59f2 |
- provide python2-pytest-flakes
|
|
|
8ea59f2 |
- drop EPEL 6 workarounds from spec as we can't build on EPEL 6 anyway
|
|
|
8ea59f2 |
|
|
|
2b7aff4 |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-6
|
|
|
2b7aff4 |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
2b7aff4 |
|
|
|
7f4d29e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-5
|
|
|
7f4d29e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
7f4d29e |
|
|
|
f727a60 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-4
|
|
|
f727a60 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
f727a60 |
|
|
|
eab228c |
* Mon May 19 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 0.2-3
|
|
|
eab228c |
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
eab228c |
|
|
|
cf9ae3e |
* Sat Mar 22 2014 Orion Poplawski <orion@cora.nwra.com> - 0.2-2
|
|
|
cf9ae3e |
- Capitalize summary/description
|
|
|
cf9ae3e |
- Add upstream license file
|
|
|
cf9ae3e |
|
|
|
cf9ae3e |
* Tue Feb 25 2014 Orion Poplawski <orion@cora.nwra.com> - 0.2-1
|
|
|
cf9ae3e |
- Initial package
|