|
|
cffaf5 |
%if 0%{?rhel} && 0%{?rhel} < 5
|
|
|
cffaf5 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
cffaf5 |
%{!?python_version: %global python_version %(%{__python} -c "import sys ; print sys.version[:3]")}
|
|
|
cffaf5 |
%endif
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%{!?python3_version: %global python3_version %(%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])")}
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%if 0%{?fedora}
|
|
|
cffaf5 |
%global with_python3 1
|
|
|
cffaf5 |
%endif
|
|
|
cffaf5 |
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%global upstream_name nose
|
|
|
cffaf5 |
|
|
|
cffaf5 |
# Enable building without docs to avoid a circular dependency between this and python-sphinx
|
|
|
cffaf5 |
%global with_docs 1
|
|
|
cffaf5 |
|
|
|
cffaf5 |
Name: python-nose
|
|
|
cffaf5 |
Version: 1.3.0
|
|
|
cffaf5 |
Release: 3%{?dist}
|
|
|
cffaf5 |
Summary: Discovery-based unittest extension for Python
|
|
|
cffaf5 |
|
|
|
cffaf5 |
Group: Development/Languages
|
|
|
cffaf5 |
License: LGPLv2+ and Public Domain
|
|
|
cffaf5 |
URL: http://somethingaboutorange.com/mrl/projects/nose/
|
|
|
cffaf5 |
Source0: http://pypi.python.org/packages/source/n/nose/nose-%{version}.tar.gz
|
|
|
cffaf5 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
cffaf5 |
|
|
|
cffaf5 |
BuildArch: noarch
|
|
|
cffaf5 |
BuildRequires: python2-devel
|
|
|
cffaf5 |
%if 0%{?with_python3}
|
|
|
cffaf5 |
BuildRequires: python3-devel
|
|
|
cffaf5 |
BuildRequires: python3-setuptools
|
|
|
cffaf5 |
BuildRequires: python3-coverage >= 3.4-1
|
|
|
cffaf5 |
%endif
|
|
|
cffaf5 |
BuildRequires: python-setuptools
|
|
|
cffaf5 |
BuildRequires: dos2unix
|
|
|
cffaf5 |
BuildRequires: python-coverage >= 3.4-1
|
|
|
cffaf5 |
Requires: python-setuptools
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%description
|
|
|
cffaf5 |
nose extends the test loading and running features of unittest, making
|
|
|
cffaf5 |
it easier to write, find and run tests.
|
|
|
cffaf5 |
|
|
|
cffaf5 |
By default, nose will run tests in files or directories under the
|
|
|
cffaf5 |
current working directory whose names include "test" or "Test" at a
|
|
|
cffaf5 |
word boundary (like "test_this" or "functional_test" or "TestClass"
|
|
|
cffaf5 |
but not "libtest"). Test output is similar to that of unittest, but
|
|
|
cffaf5 |
also includes captured stdout output from failing tests, for easy
|
|
|
cffaf5 |
print-style debugging.
|
|
|
cffaf5 |
|
|
|
cffaf5 |
These features, and many more, are customizable through the use of
|
|
|
cffaf5 |
plugins. Plugins included with nose provide support for doctest, code
|
|
|
cffaf5 |
coverage and profiling, flexible attribute-based test selection,
|
|
|
cffaf5 |
output capture and more.
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%package docs
|
|
|
cffaf5 |
Summary: Nose Documentation
|
|
|
cffaf5 |
Group: Documentation
|
|
|
cffaf5 |
BuildRequires: python-sphinx
|
|
|
cffaf5 |
Requires: python-nose
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%description docs
|
|
|
cffaf5 |
Documentation for Nose
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%if 0%{?with_python3}
|
|
|
cffaf5 |
%package -n python3-%{upstream_name}
|
|
|
cffaf5 |
Summary: Discovery-based unittest extension for Python3
|
|
|
cffaf5 |
Group: Development/Languages
|
|
|
cffaf5 |
Requires: python3-setuptools
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%description -n python3-%{upstream_name}
|
|
|
cffaf5 |
nose extends the test loading and running features of unittest, making
|
|
|
cffaf5 |
it easier to write, find and run tests.
|
|
|
cffaf5 |
|
|
|
cffaf5 |
By default, nose will run tests in files or directories under the
|
|
|
cffaf5 |
current working directory whose names include "test" or "Test" at a
|
|
|
cffaf5 |
word boundary (like "test_this" or "functional_test" or "TestClass"
|
|
|
cffaf5 |
but not "libtest"). Test output is similar to that of unittest, but
|
|
|
cffaf5 |
also includes captured stdout output from failing tests, for easy
|
|
|
cffaf5 |
print-style debugging.
|
|
|
cffaf5 |
|
|
|
cffaf5 |
These features, and many more, are customizable through the use of
|
|
|
cffaf5 |
plugins. Plugins included with nose provide support for doctest, code
|
|
|
cffaf5 |
coverage and profiling, flexible attribute-based test selection,
|
|
|
cffaf5 |
output capture and more.
|
|
|
cffaf5 |
|
|
|
cffaf5 |
This package installs the nose module and nosetests3 program that can discover
|
|
|
cffaf5 |
python3 unittests.
|
|
|
cffaf5 |
%endif # with_python3
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%prep
|
|
|
cffaf5 |
%setup -q -n %{upstream_name}-%{version}
|
|
|
cffaf5 |
|
|
|
cffaf5 |
dos2unix examples/attrib_plugin.py
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%if 0%{?with_python3}
|
|
|
cffaf5 |
rm -rf %{py3dir}
|
|
|
cffaf5 |
cp -a . %{py3dir}
|
|
|
cffaf5 |
%endif # with_python3
|
|
|
cffaf5 |
|
|
|
cffaf5 |
rm doc/*.pyc
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%build
|
|
|
cffaf5 |
%{__python} setup.py build
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%if 0%{?with_python3}
|
|
|
cffaf5 |
pushd %{py3dir}
|
|
|
cffaf5 |
%{__python3} setup.py build
|
|
|
cffaf5 |
popd
|
|
|
cffaf5 |
%endif # with_python3
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%install
|
|
|
cffaf5 |
rm -rf %{buildroot}
|
|
|
cffaf5 |
# Must do the python3 install first because the scripts in /usr/bin are
|
|
|
cffaf5 |
# overwritten with every setup.py install (and we want the python2 version
|
|
|
cffaf5 |
# to be the default for now).
|
|
|
cffaf5 |
%if 0%{?with_python3}
|
|
|
cffaf5 |
pushd %{py3dir}
|
|
|
cffaf5 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
cffaf5 |
rm %{buildroot}%{_bindir}/nosetests
|
|
|
cffaf5 |
mkdir -m 0755 -p %{buildroot}%{_mandir}/man1/
|
|
|
cffaf5 |
mv %{buildroot}%{_prefix}/man/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{python3_version}.1
|
|
|
cffaf5 |
popd
|
|
|
cffaf5 |
%endif # with_python3
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%{__python} setup.py install --skip-build --root %{buildroot} \
|
|
|
cffaf5 |
--install-data=%{_datadir}
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%if 0%{?with_docs}
|
|
|
cffaf5 |
pushd doc
|
|
|
cffaf5 |
make html
|
|
|
cffaf5 |
rm -rf .build/html/.buildinfo .build/html/_sources
|
|
|
cffaf5 |
mv .build/html ..
|
|
|
cffaf5 |
rm -rf .build
|
|
|
cffaf5 |
popd
|
|
|
cffaf5 |
%endif # with_docs
|
|
|
cffaf5 |
cp -a doc reST
|
|
|
cffaf5 |
rm -rf reST/.static reST/.templates
|
|
|
cffaf5 |
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%check
|
|
|
cffaf5 |
# Disable test_concurrent_shared as per rhbz#1176288
|
|
|
cffaf5 |
mv functional_tests/test_multiprocessing/test_concurrent_shared.py{,.notest}
|
|
|
cffaf5 |
%{__python} selftest.py
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%if 0%{?with_python3}
|
|
|
cffaf5 |
pushd %{py3dir}
|
|
|
cffaf5 |
export PYTHONPATH=`pwd`/build/lib
|
|
|
cffaf5 |
%{__python3} setup.py build_tests
|
|
|
cffaf5 |
# Various selftests fail with Python 3.3b1; skip them for now using "-e"
|
|
|
cffaf5 |
# (reported upstream as https://github.com/nose-devs/nose/issues/538 )
|
|
|
cffaf5 |
%{__python3} selftest.py \
|
|
|
cffaf5 |
-v
|
|
|
cffaf5 |
popd
|
|
|
cffaf5 |
%endif # with_python3
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%clean
|
|
|
cffaf5 |
rm -rf %{buildroot}
|
|
|
cffaf5 |
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%files
|
|
|
cffaf5 |
%defattr(-,root,root,-)
|
|
|
cffaf5 |
%doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt
|
|
|
cffaf5 |
%{_bindir}/nosetests
|
|
|
cffaf5 |
%{_bindir}/nosetests-%{python_version}
|
|
|
cffaf5 |
%{_mandir}/man1/nosetests.1.gz
|
|
|
cffaf5 |
%{python_sitelib}/nose*
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%if 0%{?with_python3}
|
|
|
cffaf5 |
%files -n python3-%{upstream_name}
|
|
|
cffaf5 |
%defattr(-,root,root,-)
|
|
|
cffaf5 |
%doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt
|
|
|
cffaf5 |
%{_bindir}/nosetests-%{python3_version}
|
|
|
cffaf5 |
%{_mandir}/man1/nosetests-%{python3_version}.1.gz
|
|
|
cffaf5 |
%{python3_sitelib}/nose*
|
|
|
cffaf5 |
%endif
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%files docs
|
|
|
cffaf5 |
%defattr(-,root,root,-)
|
|
|
cffaf5 |
%doc reST examples
|
|
|
cffaf5 |
%if 0%{?with_docs}
|
|
|
cffaf5 |
%doc html
|
|
|
cffaf5 |
%endif # with_docs
|
|
|
cffaf5 |
|
|
|
cffaf5 |
%changelog
|
|
|
cffaf5 |
* Tue Jan 06 2015 Slavek Kabrda <bkabrda@redhat.com> - 1.3.0-3
|
|
|
cffaf5 |
- Disable unstable multiprocessing test.
|
|
|
cffaf5 |
Resolves: rhbz#1176288
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3.0-2
|
|
|
cffaf5 |
- Mass rebuild 2013-12-27
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Tue Apr 9 2013 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3.0-1
|
|
|
cffaf5 |
- Update to 1.3.0 upstream with python-3.3 fixes
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-2
|
|
|
cffaf5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Wed Sep 12 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.1-1
|
|
|
cffaf5 |
- New upsream 1.2.1 that just bumps the version properly
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Mon Sep 10 2012 Toshio Kuratomi <toshio@fedoraproject.org> - 1.2.0-1
|
|
|
cffaf5 |
- Update to nose-1.2.0.
|
|
|
cffaf5 |
- Two less python3 test failures than 1.1.2
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Aug 4 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.2-5
|
|
|
cffaf5 |
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
cffaf5 |
- disable selftests that fail under 3.3
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Fri Aug 3 2012 David Malcolm <dmalcolm@redhat.com> - 1.1.2-4
|
|
|
cffaf5 |
- remove rhel logic from with_python3 conditional
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-3
|
|
|
cffaf5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
|
|
|
cffaf5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Mon Aug 1 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.2-1
|
|
|
cffaf5 |
- Upstream bugfix release
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Wed Jul 27 2011 Toshio Kuratomi <toshio@fedoraproject.org> - 1.1.1-1
|
|
|
cffaf5 |
- Upstream bugfix release
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
|
|
|
cffaf5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sun Dec 26 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 1.0.0-1
|
|
|
cffaf5 |
- Update to 1.0.0
|
|
|
cffaf5 |
- Create the docs subpackage for text docs even if we don't create the html docs.
|
|
|
cffaf5 |
- Make python3 subpackage
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Tue Dec 7 2010 Toshio Kuratomi <toshio@fedoraproject.org> - 0.11.4-2
|
|
|
cffaf5 |
- Fix FTBFS with newer coverage
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Thu Oct 21 2010 Luke Macken <lmacken@redhat.com> - 0.11.4-1
|
|
|
cffaf5 |
- Update to 0.11.4 (#3630722)
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.11.3-5
|
|
|
cffaf5 |
- add support for building without docs, to avoid a circular build-time
|
|
|
cffaf5 |
dependency between this and python-sphinx; disable docs subpackage for now
|
|
|
cffaf5 |
- add (apparently) missing BR on python-coverage (appears to be needed
|
|
|
cffaf5 |
for %%check)
|
|
|
cffaf5 |
- cherrypick upstream compatibility fixes for 2.7
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.11.3-4
|
|
|
cffaf5 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Thu May 20 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-3
|
|
|
cffaf5 |
- Update URL to http://code.google.com/p/python-nose/
|
|
|
cffaf5 |
- Align description to reflect that in setup.py
|
|
|
cffaf5 |
- Create a docs subpackage containing HTML & reST documentation
|
|
|
cffaf5 |
- Thanks to Gareth Armstrong at HP for the patch
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Thu May 06 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-2
|
|
|
cffaf5 |
- Don't hardcode the python version
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Thu May 06 2010 Luke Macken <lmacken@redhat.com> - 0.11.3-1
|
|
|
cffaf5 |
- Update to 0.11.3
|
|
|
cffaf5 |
- Enable the self tests
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Mon Oct 05 2009 Luke Macken <lmacken@redhat.com> - 0.11.1-2
|
|
|
cffaf5 |
- Include the new nosetests-2.6 script as well
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Mon Oct 05 2009 Luke Macken <lmacken@redhat.com> - 0.11.1-1
|
|
|
cffaf5 |
- Update to 0.11.1
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-3
|
|
|
cffaf5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.4-2
|
|
|
cffaf5 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.4-1
|
|
|
cffaf5 |
- Update to 0.10.4 to fix 2.6 issues
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.10.3-2
|
|
|
cffaf5 |
- Rebuild for Python 2.6
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Aug 02 2008 Luke Macken <lmacken@redhat.com> 0.10.3-1
|
|
|
cffaf5 |
- Update to 0.10.3
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Thu Feb 28 2008 Luke Macken <lmacken@redhat.com> 0.10.1-1
|
|
|
cffaf5 |
- Update to 0.10.1
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Mon Dec 3 2007 Luke Macken <lmacken@redhat.com> 0.10.0-2
|
|
|
cffaf5 |
- Add python-setuptools to Requires (Bug #408491)
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Tue Nov 27 2007 Luke Macken <lmacken@redhat.com> 0.10.0-1
|
|
|
cffaf5 |
- 0.10.0
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sun Sep 2 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.3.b1
|
|
|
cffaf5 |
- Update for python-setuptools changes in rawhide
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Tue Aug 21 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.2.b1
|
|
|
cffaf5 |
- 0.10.0b1
|
|
|
cffaf5 |
- Update license tag to LGPLv2
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Fri Jun 20 2007 Luke Macken <lmacken@redhat.com> 0.10.0-0.1.a2
|
|
|
cffaf5 |
- 0.10.0a2
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Jun 2 2007 Luke Macken <lmacken@redhat.com> 0.9.3-1
|
|
|
cffaf5 |
- Latest upstream release
|
|
|
cffaf5 |
- Remove python-nose-0.9.2-mandir.patch
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Mar 3 2007 Luke Macken <lmacken@redhat.com> 0.9.2-1
|
|
|
cffaf5 |
- Add nosetests(1) manpage, and python-nose-0.9.2-mandir.patch to put it in
|
|
|
cffaf5 |
the correct location.
|
|
|
cffaf5 |
- 0.9.2
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Sat Dec 9 2006 Luke Macken <lmacken@redhat.com> 0.9.1-2
|
|
|
cffaf5 |
- Rebuild for python 2.5
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Fri Nov 24 2006 Luke Macken <lmacken@redhat.com> 0.9.1-1
|
|
|
cffaf5 |
- 0.9.1
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Fri Sep 8 2006 Luke Macken <lmacken@redhat.com> 0.9.0-1
|
|
|
cffaf5 |
- 0.9.0
|
|
|
cffaf5 |
|
|
|
cffaf5 |
* Wed Apr 19 2006 Ignacio Vazquez-Abrams <ivazquez@ivazquez.net> 0.8.7.2-1
|
|
|
cffaf5 |
- Initial RPM release
|