%global srcname nose2 Name: python-%{srcname} Version: 0.9.1 Release: 2%{?dist} Summary: Next generation of nicer testing for Python License: BSD URL: https://nose2.readthedocs.org Source0: %pypi_source BuildArch: noarch BuildRequires: python%{python3_pkgversion}-devel BuildRequires: python%{python3_pkgversion}-setuptools BuildRequires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-mock BuildRequires: python%{python3_pkgversion}-cov-core %if 0%{?with_python3_other} BuildRequires: python%{python3_other_pkgversion}-devel BuildRequires: python%{python3_other_pkgversion}-setuptools BuildRequires: python%{python3_other_pkgversion}-six BuildRequires: python%{python3_other_pkgversion}-mock BuildRequires: python%{python3_other_pkgversion}-cov-core %endif %description nose2 is the next generation of nicer testing for Python, based on the plugins branch of unittest2. nose2 aims to improve on nose by: - providing a better plugin API - being easier for users to configure - simplifying internal interfaces and processes - supporting Python 2 and 3 from the same codebase, without translation - encouraging greater community involvement in its development In service of some those goals, some features of nose will not be supported in nose2. See the documentation for a thorough rundown. %package -n python%{python3_pkgversion}-%{srcname} Summary: Next generation of nicer testing for Python %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} Requires: python%{python3_pkgversion}-setuptools Requires: python%{python3_pkgversion}-six >= 1.6 Requires: python%{python3_pkgversion}-cov-core >= 1.12 Conflicts: python2-%{srcname} < 0.7.4-3 %description -n python%{python3_pkgversion}-%{srcname} nose2 is the next generation of nicer testing for Python, based on the plugins branch of unittest2. nose2 aims to improve on nose by: - providing a better plugin API - being easier for users to configure - simplifying internal interfaces and processes - supporting Python 2 and 3 from the same codebase, without translation - encouraging greater community involvement in its development In service of some those goals, some features of nose will not be supported in nose2. See the documentation for a thorough rundown. %if 0%{?with_python3_other} %package -n python%{python3_other_pkgversion}-%{srcname} Summary: Next generation of nicer testing for Python %{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}} Requires: python%{python3_other_pkgversion}-setuptools Requires: python%{python3_other_pkgversion}-six >= 1.6 Requires: python%{python3_other_pkgversion}-cov-core >= 1.12 %description -n python%{python3_other_pkgversion}-%{srcname} nose2 is the next generation of nicer testing for Python, based on the plugins branch of unittest2. nose2 aims to improve on nose by: - providing a better plugin API - being easier for users to configure - simplifying internal interfaces and processes - supporting Python 2 and 3 from the same codebase, without translation - encouraging greater community involvement in its development In service of some those goals, some features of nose will not be supported in nose2. See the documentation for a thorough rundown. %endif %prep %autosetup -n %{srcname}-%{version} -p0 %build %py3_build %if 0%{?with_python3_other} %py3_other_build %endif %install # Must do the default install last because the scripts in /usr/bin are # overwritten with every setup.py install. %if 0%{?with_python3_other} %py3_other_install %endif %py3_install %check PYTHONPATH=`pwd` %{__python3} -m nose2.__main__ -v %if 0%{?with_python3_other} PYTHONPATH=`pwd` %{__python3_other} -m nose2.__main__ -v %endif %files -n python%{python3_pkgversion}-%{srcname} %license license.txt %doc README.rst %{python3_sitelib}/* %{_bindir}/nose2-%{python3_version} %{_bindir}/nose2 %if 0%{?with_python3_other} %files -n python%{python3_other_pkgversion}-%{srcname} %license license.txt %doc README.rst %{python3_other_sitelib}/* %{_bindir}/nose2-%{python3_other_version} %endif %changelog * Thu Jan 30 2020 Fedora Release Engineering - 0.9.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Tue Oct 01 2019 Aurelien Bompard - 0.9.1-1 - Version 0.9.1 * Sat Aug 17 2019 Miro Hrončok - 0.7.4-6 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.7.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.7.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Oct 21 2018 Miro Hrončok - 0.7.4-3 - Drop python2 subpackage https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal * Sat Jul 14 2018 Fedora Release Engineering - 0.7.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Fri Jun 29 2018 Miro Hrončok - 0.7.4-1 - Update to 0.7.4 (#1509750), fixes FTBFS (#1556222) * Tue Jun 19 2018 Miro Hrončok - 0.6.5-8 - Rebuilt for Python 3.7 * Mon Mar 26 2018 Iryna Shcherbina - 0.6.5-7 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Fri Feb 09 2018 Fedora Release Engineering - 0.6.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 0.6.5-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Jun 10 2017 Aurelien Bompard - 0.6.5-4 - Rename a BuildRequires * Sat Feb 11 2017 Fedora Release Engineering - 0.6.5-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Mon Dec 19 2016 Miro Hrončok - 0.6.5-2 - Rebuild for Python 3.6 * Tue Sep 13 2016 Aurelien Bompard - 0.6.5-1 - Initial package.