From 04d40bdcb6e1d4526e08237097014749cb2c0f15 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 29 Aug 2012 11:55:31 -0400 Subject: [PATCH] 1.2.0-1: rebase to 1.2.0; add %check section --- .gitignore | 1 + python-six.spec | 22 ++++++++++++++++++++-- sources | 2 +- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c6d7a3c..20c5bb6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /six-1.0.0.tar.gz /six-1.1.0.tar.gz +/six-1.2.0.tar.gz diff --git a/python-six.spec b/python-six.spec index 8c584c2..e4d0936 100644 --- a/python-six.spec +++ b/python-six.spec @@ -9,8 +9,8 @@ %endif Name: python-six -Version: 1.1.0 -Release: 4%{?dist} +Version: 1.2.0 +Release: 1%{?dist} Summary: Python 2 and 3 compatibility utilities Group: Development/Languages @@ -21,8 +21,14 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python-devel +# For use by selftests: +BuildRequires: pytest +BuildRequires: tkinter %if 0%{?with_python3} BuildRequires: python3-devel +# For use by selftests: +BuildRequires: python3-pytest +BuildRequires: python3-tkinter %endif %description @@ -72,6 +78,14 @@ popd %clean rm -rf $RPM_BUILD_ROOT +%check +py.test -rfsxX test_six.py +%if 0%{?with_python3} +pushd %{py3dir} +py.test-%{python3_version} -rfsxX test_six.py +popd +%endif + %files %defattr(-,root,root,-) @@ -87,6 +101,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Wed Aug 29 2012 David Malcolm - 1.2.0-1 +- 1.2.0 (rhbz#852658) +- add %%check section + * Sat Aug 04 2012 David Malcolm - 1.1.0-4 - rebuild for https://fedoraproject.org/wiki/Features/Python_3.3 diff --git a/sources b/sources index a2a6297..49decf2 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9e8099b57cd27493a6988e9c9b313e23 six-1.1.0.tar.gz +2a5d1afc79912832ac78fd38e3d75d7e six-1.2.0.tar.gz