Blame python-pytest-shutil.spec

479a4b
%global srcname pytest-shutil
479a4b
%global sum A goodie-bag of unix shell and environment tools for py.test
479a4b
479a4b
Name:           python-%{srcname}
f9df23
Version:        1.7.0
cda092
Release:        2%{?dist}
479a4b
Summary:        %{sum}
479a4b
479a4b
License:        MIT
479a4b
URL:            https://pypi.python.org/pypi/%{srcname}
479a4b
Source0:        https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
479a4b
479a4b
BuildArch:      noarch
cda092
BuildRequires:  python3-devel
cda092
BuildRequires:  python3-pytest
cda092
BuildRequires:  python3-six
cda092
BuildRequires:  python3-setuptools_git
cda092
BuildRequires:  python3-mock
cda092
BuildRequires:  python3-path
cda092
BuildRequires:  python3-contextlib2
cda092
BuildRequires:  python3-execnet
115ee4
BuildRequires:  python3-termcolor
479a4b
479a4b
%description
479a4b
This library is a goodie-bag of Unix shell and 
479a4b
environment management tools for automated tests.
479a4b
479a4b
%package -n python3-%{srcname}
479a4b
Summary:        %{sum}
9f3ca4
Recommends:     %{py3_dist termcolor}
479a4b
%{?python_provide:%python_provide python3-%{srcname}}
479a4b
479a4b
%description -n python3-%{srcname}
479a4b
This library is a goodie-bag of Unix shell and 
479a4b
environment management tools for automated tests.
479a4b
479a4b
%prep
479a4b
%autosetup -n %{srcname}-%{version} -p1
479a4b
9f3ca4
# https://bugzilla.redhat.com/show_bug.cgi?id=1702355
9f3ca4
sed -i "/'termcolor'/d" setup.py
9f3ca4
9f3ca4
479a4b
%build
115ee4
# Upstream pins pytest to older than 4.0.0 until they finish cleaning up deprecications. 
115ee4
# However, we have no choice and all the tests do pass fine, so we unpin here.
115ee4
sed -i -e 's|pytest<4.0.0|pytest|' setup.py
479a4b
%py3_build
479a4b
479a4b
%install
479a4b
%py3_install
479a4b
479a4b
%check
9f3ca4
# test_pretty_formatter requires termcolor
9f3ca4
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest
479a4b
479a4b
%files -n python3-%{srcname}
479a4b
%doc README.md CHANGES.md
479a4b
%{python3_sitelib}/*
479a4b
479a4b
%changelog
cda092
* Tue Jun 25 2019 Kevin Fenzi <kevin@scrye.com> - 1.7.0-2
cda092
- Drop python2 subpackages. Fixes bug #1723588
cda092
f9df23
* Sun Jun 16 2019 Kevin Fenzi <kevin@scrye.com> - 1.7.0-1
f9df23
- Update to 1.7.0. Fixes bug #1714449
f9df23
9f3ca4
* Tue Apr 23 2019 Miro Hrončok <mhroncok@redhat.com> - 1.6.0-2
9f3ca4
- Only recommend termcolor (#1702355)
9f3ca4
115ee4
* Sun Apr 14 2019 Kevin Fenzi <kevin@scrye.com> - 1.6.0-1
115ee4
- Update to 1.6.0. Fixes bug #1697356
115ee4
90ea7a
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-6
90ea7a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
90ea7a
787968
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-5
787968
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
787968
bede44
* Mon Jun 18 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.6-4
bede44
- Rebuilt for Python 3.7
bede44
94f0b9
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.6-3
94f0b9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
94f0b9
d78e8e
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.6-2
d78e8e
- Update Python 2 dependency declarations to new packaging standards
d78e8e
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
d78e8e
479a4b
* Thu Jul 27 2017 Kevin Fenzi <kevin@scrye.com> - 1.2.11-2
479a4b
- Add Requires for pytest
479a4b
479a4b
* Wed Jul 26 2017 Kevin Fenzi <kevin@scrye.com> - 1.2.11-1
479a4b
- Initial version.