2020-06-18 17:05:26 +08:00
|
|
|
%global srcname nose2
|
|
|
|
|
|
|
|
|
|
Name: python-%{srcname}
|
|
|
|
|
Version: 0.9.2
|
2022-05-10 19:11:25 +08:00
|
|
|
Release: 2
|
2020-06-18 17:05:26 +08:00
|
|
|
Summary: Next generation of nicer testing for Python
|
|
|
|
|
|
2022-05-10 19:11:25 +08:00
|
|
|
License: BSD-2-Clause
|
2020-06-18 17:05:26 +08:00
|
|
|
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
|
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{srcname}-%{version} -p0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
PYTHONPATH=`pwd` %{__python3} -m nose2.__main__ -v
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -n python%{python3_pkgversion}-%{srcname}
|
|
|
|
|
%license license.txt
|
|
|
|
|
%doc README.rst
|
|
|
|
|
%{python3_sitelib}/*
|
|
|
|
|
%{_bindir}/nose2-%{python3_version}
|
|
|
|
|
%{_bindir}/nose2
|
|
|
|
|
|
|
|
|
|
%changelog
|
2022-05-10 19:11:25 +08:00
|
|
|
* Tue May 10 2022 xigaoxinyan <xigaoxinyan@h-partners.com> - 0.9.2-2
|
|
|
|
|
- License compliance rectification
|
|
|
|
|
|
2020-06-18 17:05:26 +08:00
|
|
|
* Thu Jun 11 2020 Dillon Chen <dillon.chen@turbolinux.com.cn> - 0.9.2-1
|
|
|
|
|
- build for openEuler
|