|
|
b818d1 |
%{?scl:%scl_package python-nose}
|
|
|
b818d1 |
%{!?scl:%global pkg_name %{name}}
|
|
|
b818d1 |
|
|
|
b818d1 |
%global upstream_name nose
|
|
|
b818d1 |
|
|
|
b818d1 |
# Enable building without docs to avoid a circular dependency between this and python-sphinx
|
|
|
b818d1 |
%global with_docs 1
|
|
|
b818d1 |
|
|
|
b818d1 |
Name: %{?scl_prefix}python-nose
|
|
|
b818d1 |
Version: 1.3.4
|
|
|
b818d1 |
Release: 2%{?dist}
|
|
|
b818d1 |
Summary: Discovery-based unittest extension for Python
|
|
|
b818d1 |
|
|
|
b818d1 |
Group: Development/Languages
|
|
|
b818d1 |
License: LGPLv2+ and Public Domain
|
|
|
b818d1 |
URL: http://somethingaboutorange.com/mrl/projects/nose/
|
|
|
b818d1 |
Source0: http://pypi.python.org/packages/source/n/nose/nose-%{version}.tar.gz
|
|
|
b818d1 |
# Fix conf.py so make html works with python3
|
|
|
b818d1 |
Patch1: nose-python-3-doc-build.patch
|
|
|
b818d1 |
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
b818d1 |
|
|
|
b818d1 |
BuildArch: noarch
|
|
|
b818d1 |
BuildRequires: %{?scl_prefix}python-devel
|
|
|
b818d1 |
BuildRequires: %{?scl_prefix}python-setuptools
|
|
|
b818d1 |
BuildRequires: dos2unix
|
|
|
b818d1 |
BuildRequires: %{?scl_prefix}python-coverage >= 3.4-1
|
|
|
b818d1 |
Requires: %{?scl_prefix}python-setuptools
|
|
|
b818d1 |
|
|
|
b818d1 |
%description
|
|
|
b818d1 |
nose extends the test loading and running features of unittest, making
|
|
|
b818d1 |
it easier to write, find and run tests.
|
|
|
b818d1 |
|
|
|
b818d1 |
By default, nose will run tests in files or directories under the
|
|
|
b818d1 |
current working directory whose names include "test" or "Test" at a
|
|
|
b818d1 |
word boundary (like "test_this" or "functional_test" or "TestClass"
|
|
|
b818d1 |
but not "libtest"). Test output is similar to that of unittest, but
|
|
|
b818d1 |
also includes captured stdout output from failing tests, for easy
|
|
|
b818d1 |
print-style debugging.
|
|
|
b818d1 |
|
|
|
b818d1 |
These features, and many more, are customizable through the use of
|
|
|
b818d1 |
plugins. Plugins included with nose provide support for doctest, code
|
|
|
b818d1 |
coverage and profiling, flexible attribute-based test selection,
|
|
|
b818d1 |
output capture and more.
|
|
|
b818d1 |
|
|
|
b818d1 |
%package docs
|
|
|
b818d1 |
Summary: Nose Documentation
|
|
|
b818d1 |
Group: Documentation
|
|
|
b818d1 |
%if 0%{?with_docs}
|
|
|
b818d1 |
BuildRequires: %{?scl_prefix}python-sphinx
|
|
|
b818d1 |
%endif
|
|
|
b818d1 |
Requires: %{?scl_prefix}python-nose
|
|
|
b818d1 |
|
|
|
b818d1 |
%description docs
|
|
|
b818d1 |
Documentation for Nose
|
|
|
b818d1 |
|
|
|
b818d1 |
%prep
|
|
|
b818d1 |
%setup -q -n %{upstream_name}-%{version}
|
|
|
b818d1 |
%patch1 -p0
|
|
|
b818d1 |
|
|
|
b818d1 |
dos2unix examples/attrib_plugin.py
|
|
|
b818d1 |
|
|
|
b818d1 |
%build
|
|
|
b818d1 |
%{?scl:scl enable %{scl} "}
|
|
|
b818d1 |
%{__python3} setup.py build
|
|
|
b818d1 |
%{?scl:"}
|
|
|
b818d1 |
|
|
|
b818d1 |
%install
|
|
|
b818d1 |
rm -rf %{buildroot}
|
|
|
b818d1 |
%{?scl:scl enable %{scl} "}
|
|
|
b818d1 |
%{__python3} setup.py install --skip-build --root %{buildroot} \
|
|
|
b818d1 |
--install-data=%{_datadir}
|
|
|
b818d1 |
%{?scl:"}
|
|
|
b818d1 |
|
|
|
b818d1 |
%if 0%{?with_docs}
|
|
|
b818d1 |
pushd doc
|
|
|
b818d1 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
b818d1 |
make html
|
|
|
b818d1 |
%{?scl:EOF}
|
|
|
b818d1 |
rm -rf .build/html/.buildinfo .build/html/_sources
|
|
|
b818d1 |
mv .build/html ..
|
|
|
b818d1 |
rm -rf .build
|
|
|
b818d1 |
popd
|
|
|
b818d1 |
%endif # with_docs
|
|
|
b818d1 |
cp -a doc reST
|
|
|
b818d1 |
rm -rf reST/.static reST/.templates
|
|
|
b818d1 |
|
|
|
b818d1 |
|
|
|
b818d1 |
%check
|
|
|
b818d1 |
%{?scl:scl enable %{scl} "}
|
|
|
b818d1 |
%{__python3} setup.py build_tests
|
|
|
b818d1 |
%{__python3} selftest.py
|
|
|
b818d1 |
%{?scl:"}
|
|
|
b818d1 |
|
|
|
b818d1 |
|
|
|
b818d1 |
%clean
|
|
|
b818d1 |
rm -rf %{buildroot}
|
|
|
b818d1 |
|
|
|
b818d1 |
|
|
|
b818d1 |
%files
|
|
|
b818d1 |
%defattr(-,root,root,-)
|
|
|
b818d1 |
%doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt
|
|
|
b818d1 |
%{_bindir}/nosetests
|
|
|
b818d1 |
%{_bindir}/nosetests-%{python3_version}
|
|
|
b818d1 |
%{_mandir}/man1/nosetests.1.gz
|
|
|
b818d1 |
%{python3_sitelib}/nose*
|
|
|
b818d1 |
|
|
|
b818d1 |
%files docs
|
|
|
b818d1 |
%defattr(-,root,root,-)
|
|
|
b818d1 |
%doc reST examples
|
|
|
b818d1 |
%if 0%{?with_docs}
|
|
|
b818d1 |
%doc html
|
|
|
b818d1 |
%endif # with_docs
|
|
|
b818d1 |
|
|
|
b818d1 |
%changelog
|
|
|
b818d1 |
* Wed Jan 21 2015 Matej Stuchlik <mstuchli@redhat.com> - 1.3.4-2
|
|
|
b818d1 |
- Rebuild with docs
|
|
|
b818d1 |
|
|
|
b818d1 |
* Wed Jan 21 2015 Matej Stuchlik <mstuchli@redhat.com> - 1.3.4-1
|
|
|
b818d1 |
- Update to 1.3.4
|
|
|
b818d1 |
|
|
|
b818d1 |
* Mon Nov 18 2013 Robert Kuska <rkuska@redhat.com> - 1.3.0-3
|
|
|
b818d1 |
- Build with docs
|
|
|
b818d1 |
|
|
|
b818d1 |
* Mon Nov 18 2013 Robert Kuska <rkuska@redhat.com> - 1.3.0-2
|
|
|
b818d1 |
- Bump to avoid release number conflict with rhel-7.0
|
|
|
b818d1 |
|
|
|
b818d1 |
* Fri Nov 15 2013 Robert Kuska <rkuska@redhat.com> - 1.3.0-1
|
|
|
b818d1 |
- Update to 1.3.0
|
|
|
b818d1 |
|
|
|
b818d1 |
* Mon Jun 10 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-6
|
|
|
b818d1 |
- Fix all Python 3.3 tests using upstream patches, fixes rhbz#971412.
|
|
|
b818d1 |
|
|
|
b818d1 |
* Thu May 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-5
|
|
|
b818d1 |
- Fix test failing on Python 3.3.1 using upstream patch.
|
|
|
b818d1 |
|
|
|
b818d1 |
* Thu May 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-4
|
|
|
b818d1 |
- Rebuild to generate bytecode properly after fixing rhbz#956289
|
|
|
b818d1 |
|
|
|
b818d1 |
* Wed Jan 23 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-3
|
|
|
b818d1 |
- Enable building docs.
|
|
|
b818d1 |
|
|
|
b818d1 |
* Wed Jan 09 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2.1-2
|
|
|
b818d1 |
- Rebuilt for SCL.
|
|
|
b818d1 |
|
|
|
b818d1 |
* Wed Sep 12 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.1-1
|
|
|
b818d1 |
- New upsream 1.2.1 that just bumps the version properly
|
|
|
b818d1 |
|
|
|
b818d1 |
* Mon Sep 10 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.0-1
|
|
|
b818d1 |
- Update to nose-1.2.0.
|
|
|
b818d1 |
- Two less python3 test failures than 1.1.2
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Aug 4 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.2-5
|
|
|
b818d1 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
b818d1 |
- disable selftests that fail under 3.3
|
|
|
b818d1 |
|
|
|
b818d1 |
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.2-4
|
|
|
b818d1 |
- remove rhel logic from with_python3 conditional
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-3
|
|
|
b818d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
|
|
|
b818d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
b818d1 |
|
|
|
b818d1 |
* Mon Aug 1 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.2-1
|
|
|
b818d1 |
- Upstream bugfix release
|
|
|
b818d1 |
|
|
|
b818d1 |
* Wed Jul 27 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.1-1
|
|
|
b818d1 |
- Upstream bugfix release
|
|
|
b818d1 |
|
|
|
b818d1 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
|
b818d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sun Dec 26 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.0-1
|
|
|
b818d1 |
- Update to 1.0.0
|
|
|
b818d1 |
- Create the docs subpackage for text docs even if we don't create the html docs.
|
|
|
b818d1 |
- Make python3 subpackage
|
|
|
b818d1 |
|
|
|
b818d1 |
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.11.4-2
|
|
|
b818d1 |
- Fix FTBFS with newer coverage
|
|
|
b818d1 |
|
|
|
b818d1 |
* Thu Oct 21 2010 Luke Macken <lmacken@redhat.com> - 0.11.4-1
|
|
|
b818d1 |
- Update to 0.11.4 (#3630722)
|
|
|
b818d1 |
|
|
|
b818d1 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.11.3-5
|
|
|
b818d1 |
- add support for building without docs, to avoid a circular build-time
|
|
|
b818d1 |
dependency between this and python-sphinx; disable docs subpackage for now
|
|
|
b818d1 |
- add (apparently) missing BR on python-coverage (appears to be needed
|
|
|
b818d1 |
for %%check)
|
|
|
b818d1 |
- cherrypick upstream compatibility fixes for 2.7
|
|
|
b818d1 |
|
|
|
b818d1 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.11.3-4
|
|
|
b818d1 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
b818d1 |
|
|
|
b818d1 |
* Thu May 20 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-3
|
|
|
b818d1 |
- Update URL to http://code.google.com/p/python-nose/
|
|
|
b818d1 |
- Align description to reflect that in setup.py
|
|
|
b818d1 |
- Create a docs subpackage containing HTML & reST documentation
|
|
|
b818d1 |
- Thanks to Gareth Armstrong at HP for the patch
|
|
|
b818d1 |
|
|
|
b818d1 |
* Thu May 06 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-2
|
|
|
b818d1 |
- Don't hardcode the python version
|
|
|
b818d1 |
|
|
|
b818d1 |
* Thu May 06 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-1
|
|
|
b818d1 |
- Update to 0.11.3
|
|
|
b818d1 |
- Enable the self tests
|
|
|
b818d1 |
|
|
|
b818d1 |
* Mon Oct 05 2009 Luke Macken <lmacken@redhat.com> - 0.11.1-2
|
|
|
b818d1 |
- Include the new nosetests-2.6 script as well
|
|
|
b818d1 |
|
|
|
b818d1 |
* Mon Oct 05 2009 Luke Macken <lmacken@redhat.com> - 0.11.1-1
|
|
|
b818d1 |
- Update to 0.11.1
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-3
|
|
|
b818d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
b818d1 |
|
|
|
b818d1 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-2
|
|
|
b818d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.4-1
|
|
|
b818d1 |
- Update to 0.10.4 to fix 2.6 issues
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.3-2
|
|
|
b818d1 |
- Rebuild for Python 2.6
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Aug 02 2008 Luke Macken <lmacken@redhat.com> 0.10.3-1
|
|
|
b818d1 |
- Update to 0.10.3
|
|
|
b818d1 |
|
|
|
b818d1 |
* Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> 0.10.1-1
|
|
|
b818d1 |
- Update to 0.10.1
|
|
|
b818d1 |
|
|
|
b818d1 |
* Mon Dec 3 2007 Luke Macken <lmacken@redhat.com> 0.10.0-2
|
|
|
b818d1 |
- Add python-setuptools to Requires (Bug #408491)
|
|
|
b818d1 |
|
|
|
b818d1 |
* Tue Nov 27 2007 Luke Macken <lmacken@redhat.com> 0.10.0-1
|
|
|
b818d1 |
- 0.10.0
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.3.b1
|
|
|
b818d1 |
- Update for python-setuptools changes in rawhide
|
|
|
b818d1 |
|
|
|
b818d1 |
* Tue Aug 21 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.2.b1
|
|
|
b818d1 |
- 0.10.0b1
|
|
|
b818d1 |
- Update license tag to LGPLv2
|
|
|
b818d1 |
|
|
|
b818d1 |
* Fri Jun 20 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.1.a2
|
|
|
b818d1 |
- 0.10.0a2
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Jun 2 2007 Luke Macken <lmacken@redhat.com> 0.9.3-1
|
|
|
b818d1 |
- Latest upstream release
|
|
|
b818d1 |
- Remove python-nose-0.9.2-mandir.patch
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> 0.9.2-1
|
|
|
b818d1 |
- Add nosetests(1) manpage, and python-nose-0.9.2-mandir.patch to put it in
|
|
|
b818d1 |
the correct location.
|
|
|
b818d1 |
- 0.9.2
|
|
|
b818d1 |
|
|
|
b818d1 |
* Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> 0.9.1-2
|
|
|
b818d1 |
- Rebuild for python 2.5
|
|
|
b818d1 |
|
|
|
b818d1 |
* Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> 0.9.1-1
|
|
|
b818d1 |
- 0.9.1
|
|
|
b818d1 |
|
|
|
b818d1 |
* Fri Sep 8 2006 Luke Macken <lmacken@redhat.com> 0.9.0-1
|
|
|
b818d1 |
- 0.9.0
|
|
|
b818d1 |
|
|
|
b818d1 |
* Wed Apr 19 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.7.2-1
|
|
|
b818d1 |
- Initial RPM release
|