From ce4f269acd2a92635e01b7f0364065aa64e09780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 31 Jan 2020 19:45:20 +0100 Subject: [PATCH] https://fedoraproject.org/wiki/Changes/DeprecateNose --- python-nose.spec | 71 ++++++++++++------------------------------------ 1 file changed, 18 insertions(+), 53 deletions(-) diff --git a/python-nose.spec b/python-nose.spec index 43388e4..7f9b92b 100644 --- a/python-nose.spec +++ b/python-nose.spec @@ -1,32 +1,12 @@ %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} Version: 1.3.7 -Release: 29%{?dist} +Release: 30%{?dist} BuildArch: noarch 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/ Source0: http://pypi.python.org/packages/source/n/nose/nose-%{version}.tar.gz # Make compatible with coverage 4.1 @@ -49,17 +29,12 @@ Patch5: python-nose-py38.patch BuildRequires: dos2unix -%description -%{desc} +%global _description %{expand: +A deprecated test runner for Python. -%package docs -Summary: Nose Documentation -%if %{with docs} -BuildRequires: python3-sphinx -%endif +See https://fedoraproject.org/wiki/Changes/DeprecateNose} -%description docs -Documentation for Nose. +%description %_description %package -n python3-%{modname} Summary: %{summary} @@ -69,12 +44,14 @@ BuildRequires: python3-coverage >= 3.4-1 Requires: python3-setuptools %{?python_provide:%python_provide python3-%{modname}} Conflicts: python-%{modname} < %{version}-%{release} +Obsoletes: python-%{modname}-docs < 1.3.7-30 -%description -n python3-%{modname} -%{desc} +# This package is deprecated, no new packages in Fedora can depend on it +# 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 -python3 unit tests. +%description -n python3-%{modname} %_description %prep %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.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 %{__python3} setup.py build_tests %{__python3} selftest.py %files -n python3-%{modname} %license lgpl.txt +%doc AUTHORS CHANGELOG NEWS README.txt %{_bindir}/nosetests %{_bindir}/nosetests-3 %{_bindir}/nosetests-%{python3_version} @@ -119,14 +86,12 @@ rm -vrf reST/{.static,.templates} %{python3_sitelib}/nose-*.egg-info/ %{python3_sitelib}/nose/ -%files docs -%license lgpl.txt -%doc AUTHORS CHANGELOG examples NEWS README.txt reST -%if %{with docs} -%doc html -%endif - %changelog +* Fri Jan 31 2020 Miro HronĨok - 1.3.7-30 +- Deprecate the package + https://fedoraproject.org/wiki/Changes/DeprecateNose +- Drop the docs subpackage + * Thu Jan 30 2020 Fedora Release Engineering - 1.3.7-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild