This commit is contained in:
parent
b5713bbe07
commit
ce4f269acd
@ -1,32 +1,12 @@
|
|||||||
%global modname nose
|
%global modname nose
|
||||||
|
|
||||||
# The docs are Python 2 only and there is no more Python 2 Sphinx
|
|
||||||
# Given the state of nose, I (mhroncok) decided not to fix this
|
|
||||||
%bcond_with docs
|
|
||||||
|
|
||||||
%global desc nose extends the test loading and running features of unit test, making\
|
|
||||||
it easier to write, find and run tests.\
|
|
||||||
\
|
|
||||||
By default, nose will run tests in files or directories under the\
|
|
||||||
current working directory whose names include "test" or "Test" at a\
|
|
||||||
word boundary (like "test_this" or "functional_test" or "TestClass"\
|
|
||||||
but not "libtest"). Test output is similar to that of unit test, but\
|
|
||||||
also includes captured stdout output from failing tests, for easy\
|
|
||||||
print-style debugging.\
|
|
||||||
\
|
|
||||||
These features, and many more, are customizable through the use of\
|
|
||||||
plugins. Plugins included with nose provide support for doctest, code\
|
|
||||||
coverage and profiling, flexible attribute-based test selection,\
|
|
||||||
output capture and more.\
|
|
||||||
|
|
||||||
|
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.3.7
|
Version: 1.3.7
|
||||||
Release: 29%{?dist}
|
Release: 30%{?dist}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
License: LGPLv2+ and Public Domain
|
License: LGPLv2+ and Public Domain
|
||||||
Summary: Discovery-based unit test extension for Python
|
Summary: Deprecated test runner for Python
|
||||||
URL: https://nose.readthedocs.org/en/latest/
|
URL: https://nose.readthedocs.org/en/latest/
|
||||||
Source0: http://pypi.python.org/packages/source/n/nose/nose-%{version}.tar.gz
|
Source0: http://pypi.python.org/packages/source/n/nose/nose-%{version}.tar.gz
|
||||||
# Make compatible with coverage 4.1
|
# Make compatible with coverage 4.1
|
||||||
@ -49,17 +29,12 @@ Patch5: python-nose-py38.patch
|
|||||||
|
|
||||||
BuildRequires: dos2unix
|
BuildRequires: dos2unix
|
||||||
|
|
||||||
%description
|
%global _description %{expand:
|
||||||
%{desc}
|
A deprecated test runner for Python.
|
||||||
|
|
||||||
%package docs
|
See https://fedoraproject.org/wiki/Changes/DeprecateNose}
|
||||||
Summary: Nose Documentation
|
|
||||||
%if %{with docs}
|
|
||||||
BuildRequires: python3-sphinx
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description docs
|
%description %_description
|
||||||
Documentation for Nose.
|
|
||||||
|
|
||||||
%package -n python3-%{modname}
|
%package -n python3-%{modname}
|
||||||
Summary: %{summary}
|
Summary: %{summary}
|
||||||
@ -69,12 +44,14 @@ BuildRequires: python3-coverage >= 3.4-1
|
|||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
%{?python_provide:%python_provide python3-%{modname}}
|
%{?python_provide:%python_provide python3-%{modname}}
|
||||||
Conflicts: python-%{modname} < %{version}-%{release}
|
Conflicts: python-%{modname} < %{version}-%{release}
|
||||||
|
Obsoletes: python-%{modname}-docs < 1.3.7-30
|
||||||
|
|
||||||
%description -n python3-%{modname}
|
# This package is deprecated, no new packages in Fedora can depend on it
|
||||||
%{desc}
|
# https://fedoraproject.org/wiki/Changes/DeprecateNose
|
||||||
|
# Contact the change owners for help migrating to pytest
|
||||||
|
Provides: deprecated()
|
||||||
|
|
||||||
This package installs the nose module and nosetests3 program that can discover
|
%description -n python3-%{modname} %_description
|
||||||
python3 unit tests.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{modname}-%{version}
|
%autosetup -p1 -n %{modname}-%{version}
|
||||||
@ -93,23 +70,13 @@ ln -sf nosetests-%{python3_version}.1 %{buildroot}%{_mandir}/man1/nosetests-3.1
|
|||||||
ln -sf nosetests-3 %{buildroot}%{_bindir}/nosetests
|
ln -sf nosetests-3 %{buildroot}%{_bindir}/nosetests
|
||||||
ln -sf nosetests-3.1 %{buildroot}%{_mandir}/man1/nosetests.1
|
ln -sf nosetests-3.1 %{buildroot}%{_mandir}/man1/nosetests.1
|
||||||
|
|
||||||
%if %{with docs}
|
|
||||||
pushd doc
|
|
||||||
sphinx-build -b html -d .build/doctrees . .build/html
|
|
||||||
rm -vrf .build/html/.buildinfo .build/html/_sources
|
|
||||||
mv .build/html ../..
|
|
||||||
rm -vrf .build
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
cp -a doc reST
|
|
||||||
rm -vrf reST/{.static,.templates}
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python3} setup.py build_tests
|
%{__python3} setup.py build_tests
|
||||||
%{__python3} selftest.py
|
%{__python3} selftest.py
|
||||||
|
|
||||||
%files -n python3-%{modname}
|
%files -n python3-%{modname}
|
||||||
%license lgpl.txt
|
%license lgpl.txt
|
||||||
|
%doc AUTHORS CHANGELOG NEWS README.txt
|
||||||
%{_bindir}/nosetests
|
%{_bindir}/nosetests
|
||||||
%{_bindir}/nosetests-3
|
%{_bindir}/nosetests-3
|
||||||
%{_bindir}/nosetests-%{python3_version}
|
%{_bindir}/nosetests-%{python3_version}
|
||||||
@ -119,14 +86,12 @@ rm -vrf reST/{.static,.templates}
|
|||||||
%{python3_sitelib}/nose-*.egg-info/
|
%{python3_sitelib}/nose-*.egg-info/
|
||||||
%{python3_sitelib}/nose/
|
%{python3_sitelib}/nose/
|
||||||
|
|
||||||
%files docs
|
|
||||||
%license lgpl.txt
|
|
||||||
%doc AUTHORS CHANGELOG examples NEWS README.txt reST
|
|
||||||
%if %{with docs}
|
|
||||||
%doc html
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 31 2020 Miro Hrončok <mhroncok@redhat.com> - 1.3.7-30
|
||||||
|
- Deprecate the package
|
||||||
|
https://fedoraproject.org/wiki/Changes/DeprecateNose
|
||||||
|
- Drop the docs subpackage
|
||||||
|
|
||||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-29
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.7-29
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user