diff --git a/nose2-0.11.0.tar.gz b/nose2-0.11.0.tar.gz deleted file mode 100644 index 0bb67bc4ad00df90ef2c055ee27fec8d30b6ac72..0000000000000000000000000000000000000000 Binary files a/nose2-0.11.0.tar.gz and /dev/null differ diff --git a/nose2-0.12.0.tar.gz b/nose2-0.12.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3f2903604164a0913ef452f8c8fbb8cc433f1397 Binary files /dev/null and b/nose2-0.12.0.tar.gz differ diff --git a/python-nose2.spec b/python-nose2.spec index 2ff2c491d6f4bc95523ec49238f8374b7977942e..7d494d60b9f11c56b476b6ef39d7c33fb3f056b1 100644 --- a/python-nose2.spec +++ b/python-nose2.spec @@ -1,21 +1,16 @@ -%global srcname nose2 - -Name: python-%{srcname} -Version: 0.11.0 -Release: 1 -Summary: Next generation of nicer testing for Python - -License: BSD-2-Clause -URL: https://nose2.readthedocs.org -Source0: https://files.pythonhosted.org/packages/1f/24/d4d16329a7c58d342a0345bbcd1dc81321fb7a1de41dc3361a48f2381e0e/nose2-%{version}.tar.gz - -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 +%global _empty_manifest_terminate_build 0 +Name: python-nose2 +Version: 0.12.0 +Release: 1 +Summary: Next generation of nicer testing for Python +License: BSD-2-Clause +URL: https://github.com/nose-devs/nose2 +Source0: https://files.pythonhosted.org/packages/6e/0e/7c8c0ddf8a8adf1f2af273a25867c6edd479ca1ee59d5fa6edc70ec249b3/nose2-0.12.0.tar.gz +BuildArch: noarch + +Requires: python%{python3_pkgversion}-setuptools +Requires: python%{python3_pkgversion}-six >= 1.6 +Requires: python%{python3_pkgversion}-cov-core >= 1.12 %description nose2 is the next generation of nicer testing for Python, based on the plugins @@ -29,16 +24,33 @@ branch of unittest2. nose2 aims to improve on nose by: 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 python3-nose2 +Summary: Next generation of nicer testing for Python +Provides: python-nose2 = %{version}-%{release} +Conflicts: python2-nose2 < 0.7.4-3 +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 -n python3-nose2 +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 +%package help +Summary: Development documents and examples for nose2 +Provides: python3-nose2-doc -%description -n python%{python3_pkgversion}-%{srcname} +%description help 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 @@ -51,29 +63,49 @@ 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 - +%autosetup -n nose2-%{version} %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 +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-nose2 -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* %changelog +* Tue Nov 08 2022 wangjunqi - 0.12.0-1 +- Update package to version 0.12.0 + * Wed Jun 29 2022 yaoxin - 0.11.0-1 - Update to 0.11.0 @@ -82,3 +114,4 @@ PYTHONPATH=`pwd` %{__python3} -m nose2.__main__ -v * Thu Jun 11 2020 Dillon Chen - 0.9.2-1 - build for openEuler +