commit python-nose2 for openSUSE:Factory

2020-03-05 Thread root
Hello community,

here is the log from the commit of package python-nose2 for openSUSE:Factory 
checked in at 2020-03-05 23:17:09

Comparing /work/SRC/openSUSE:Factory/python-nose2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-nose2.new.26092 (New)


Package is "python-nose2"

Thu Mar  5 23:17:09 2020 rev:7 rq:780971 version:0.9.2

Changes:

--- /work/SRC/openSUSE:Factory/python-nose2/python-nose2.changes
2019-11-22 10:21:52.541330438 +0100
+++ /work/SRC/openSUSE:Factory/.python-nose2.new.26092/python-nose2.changes 
2020-03-05 23:17:21.921146133 +0100
@@ -1,0 +2,8 @@
+Mon Mar  2 13:22:27 UTC 2020 - Tomáš Chvátal 
+
+- Update to 0.9.2:
+  * Add --junit-xml-path to the junit plugin argument list
+  * It is now possible to use the multiprocess and coverage plugins together, 
as long as all of the coverage config is put into the config file
+  * Minor changes to be compatible with newer pythons (3.8, 3.9)
+
+---

Old:

  nose2-0.9.1.tar.gz

New:

  nose2-0.9.2.tar.gz



Other differences:
--
++ python-nose2.spec ++
--- /var/tmp/diff_new_pack.D5o9Io/_old  2020-03-05 23:17:23.357146946 +0100
+++ /var/tmp/diff_new_pack.D5o9Io/_new  2020-03-05 23:17:23.409146975 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nose2
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,11 +18,10 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-nose2
-Version:0.9.1
+Version:0.9.2
 Release:0
 Summary:Second generation of the "nose" Python testing framework
 License:BSD-2-Clause AND Python-2.0
-Group:  Development/Languages/Python
 URL:https://github.com/nose-devs/nose2
 Source: 
https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
 Patch0: remove_unittest2.patch

++ nose2-0.9.1.tar.gz -> nose2-0.9.2.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose2-0.9.1/PKG-INFO new/nose2-0.9.2/PKG-INFO
--- old/nose2-0.9.1/PKG-INFO2019-04-02 18:30:07.0 +0200
+++ new/nose2-0.9.2/PKG-INFO2020-02-02 01:58:55.0 +0100
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: nose2
-Version: 0.9.1
+Version: 0.9.2
 Summary: unittest2 with plugins, the succesor to nose
 Home-page: https://github.com/nose-devs/nose2
 Author: Jason Pellerin
@@ -18,7 +18,6 @@
 :target: https://pypi.org/project/nose2/
 :alt: Latest PyPI version
 
- [![Google group : SSFAM 
News](https://img.shields.io/badge/Google%20Group-SSFAM%20News-blue.svg)](https://groups.google.com/forum/#!forum/ssfam-news)
 .. image:: 
https://img.shields.io/badge/Mailing%20list-discuss%40nose2.io-blue.svg
 :target: https://groups.google.com/a/nose2.io/forum/#!forum/discuss
 :alt: Join disc...@nose2.io
@@ -168,5 +167,5 @@
 Classifier: Topic :: Software Development :: Libraries
 Classifier: Topic :: Software Development :: Libraries :: Python Modules
 Classifier: Topic :: Software Development :: Testing
-Provides-Extra: doc
 Provides-Extra: coverage_plugin
+Provides-Extra: doc
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose2-0.9.1/README.rst new/nose2-0.9.2/README.rst
--- old/nose2-0.9.1/README.rst  2019-03-31 22:52:47.0 +0200
+++ new/nose2-0.9.2/README.rst  2020-02-02 01:56:37.0 +0100
@@ -10,7 +10,6 @@
 :target: https://pypi.org/project/nose2/
 :alt: Latest PyPI version
 
- [![Google group : SSFAM 
News](https://img.shields.io/badge/Google%20Group-SSFAM%20News-blue.svg)](https://groups.google.com/forum/#!forum/ssfam-news)
 .. image:: 
https://img.shields.io/badge/Mailing%20list-discuss%40nose2.io-blue.svg
 :target: https://groups.google.com/a/nose2.io/forum/#!forum/discuss
 :alt: Join disc...@nose2.io
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/nose2-0.9.1/docs/changelog.rst 
new/nose2-0.9.2/docs/changelog.rst
--- old/nose2-0.9.1/docs/changelog.rst  2019-04-02 17:53:47.0 +0200
+++ new/nose2-0.9.2/docs/changelog.rst  2020-02-02 01:51:37.0 +0100
@@ -7,6 +7,22 @@
 Unreleased
 --
 
+0.9.2
+-
+
+Added
+~
+
+* Add `--junit-xml-path` to the junit plugin argument list
+
+Fixed
+~
+
+* It is now possible to use the multiprocess and coverage plugins together, as
+  long as all of the coverage config is put into 

commit python-nose2 for openSUSE:Factory

2019-11-22 Thread root
Hello community,

here is the log from the commit of package python-nose2 for openSUSE:Factory 
checked in at 2019-11-22 10:21:51

Comparing /work/SRC/openSUSE:Factory/python-nose2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-nose2.new.26869 (New)


Package is "python-nose2"

Fri Nov 22 10:21:51 2019 rev:6 rq:747272 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-nose2/python-nose2.changes
2019-10-02 11:57:52.275189225 +0200
+++ /work/SRC/openSUSE:Factory/.python-nose2.new.26869/python-nose2.changes 
2019-11-22 10:21:52.541330438 +0100
@@ -1,0 +2,6 @@
+Mon Nov 11 03:25:06 UTC 2019 - Steve Kowalik 
+
+- Add ignore-warnings-doctests.patch to supress warnings when running
+  doctests.
+
+---

New:

  ignore-warnings-doctests.patch



Other differences:
--
++ python-nose2.spec ++
--- /var/tmp/diff_new_pack.r1AUTZ/_old  2019-11-22 10:21:53.113330349 +0100
+++ /var/tmp/diff_new_pack.r1AUTZ/_new  2019-11-22 10:21:53.117330348 +0100
@@ -27,6 +27,7 @@
 Source: 
https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
 Patch0: remove_unittest2.patch
 Patch1: fix-mock-dep.patch
+Patch2: ignore-warnings-doctests.patch
 BuildRequires:  %{python_module coverage >= 4.4.1}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}

++ ignore-warnings-doctests.patch ++
Index: nose2-0.9.1/nose2/tests/functional/test_doctests_plugin.py
===
--- nose2-0.9.1.orig/nose2/tests/functional/test_doctests_plugin.py
+++ nose2-0.9.1/nose2/tests/functional/test_doctests_plugin.py
@@ -1,8 +1,13 @@
+import warnings
 from nose2.tests._common import FunctionalTestCase, support_file
 
 
 class TestDoctestsPlugin(FunctionalTestCase):
 
+def setUp(self):
+super(TestDoctestsPlugin, self).setUp()
+warnings.simplefilter('ignore')
+
 def test_simple(self):
 proc = self.runIn(
 'scenario/doctests',



commit python-nose2 for openSUSE:Factory

2019-10-02 Thread root
Hello community,

here is the log from the commit of package python-nose2 for openSUSE:Factory 
checked in at 2019-10-02 11:57:50

Comparing /work/SRC/openSUSE:Factory/python-nose2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-nose2.new.2352 (New)


Package is "python-nose2"

Wed Oct  2 11:57:50 2019 rev:5 rq:734078 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-nose2/python-nose2.changes
2019-05-15 12:34:12.652565544 +0200
+++ /work/SRC/openSUSE:Factory/.python-nose2.new.2352/python-nose2.changes  
2019-10-02 11:57:52.275189225 +0200
@@ -1,0 +2,5 @@
+Mon Sep 30 13:20:05 UTC 2019 - Tomáš Chvátal 
+
+- Add dep on coverage as it is hard requirement based on requires
+
+---



Other differences:
--
++ python-nose2.spec ++
--- /var/tmp/diff_new_pack.ddtIqX/_old  2019-10-02 11:57:52.779187933 +0200
+++ /var/tmp/diff_new_pack.ddtIqX/_new  2019-10-02 11:57:52.779187933 +0200
@@ -27,16 +27,16 @@
 Source: 
https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
 Patch0: remove_unittest2.patch
 Patch1: fix-mock-dep.patch
-BuildRequires:  %{python_module cov-core >= 1.12}
+BuildRequires:  %{python_module coverage >= 4.4.1}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six >= 1.1}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires:   python-coverage >= 4.4.1
 Requires:   python-six >= 1.1
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
-Suggests:   python-cov-core >= 1.12
 BuildArch:  noarch
 %python_subpackages
 
@@ -52,6 +52,7 @@
 %prep
 %setup -q -n nose2-%{version}
 %autopatch -p1
+rm -rf *.egg-info/
 
 %build
 %python_build




commit python-nose2 for openSUSE:Factory

2019-05-15 Thread root
Hello community,

here is the log from the commit of package python-nose2 for openSUSE:Factory 
checked in at 2019-05-15 12:34:11

Comparing /work/SRC/openSUSE:Factory/python-nose2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-nose2.new.5148 (New)


Package is "python-nose2"

Wed May 15 12:34:11 2019 rev:4 rq:702904 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-nose2/python-nose2.changes
2019-04-08 20:53:47.442579569 +0200
+++ /work/SRC/openSUSE:Factory/.python-nose2.new.5148/python-nose2.changes  
2019-05-15 12:34:12.652565544 +0200
@@ -1,0 +2,6 @@
+Tue May 14 17:02:07 UTC 2019 - Tomáš Chvátal 
+
+- Add patch to fix build with new mock versions:
+  * fix-mock-dep.patch
+
+---

New:

  fix-mock-dep.patch



Other differences:
--
++ python-nose2.spec ++
--- /var/tmp/diff_new_pack.QBgHjZ/_old  2019-05-15 12:34:13.348563540 +0200
+++ /var/tmp/diff_new_pack.QBgHjZ/_new  2019-05-15 12:34:13.352563529 +0200
@@ -26,6 +26,7 @@
 URL:https://github.com/nose-devs/nose2
 Source: 
https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
 Patch0: remove_unittest2.patch
+Patch1: fix-mock-dep.patch
 BuildRequires:  %{python_module cov-core >= 1.12}
 BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}

++ fix-mock-dep.patch ++
Index: nose2-0.9.1/setup.py
===
--- nose2-0.9.1.orig/setup.py
+++ nose2-0.9.1/setup.py
@@ -32,7 +32,7 @@ setup(
 # mock on py2, py3.4 and py3.5
 # not just py2: py3 versions of mock don't all have the same
 # interface and this can cause issues
-'mock==2.0.0;python_version<"3.6"',
+'mock>=2.0.0;python_version<"3.6"',
 ],
 extras_require={
 "coverage_plugin": ["coverage>=4.4.1"],



commit python-nose2 for openSUSE:Factory

2019-04-08 Thread root
Hello community,

here is the log from the commit of package python-nose2 for openSUSE:Factory 
checked in at 2019-04-08 20:53:46

Comparing /work/SRC/openSUSE:Factory/python-nose2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-nose2.new.3908 (New)


Package is "python-nose2"

Mon Apr  8 20:53:46 2019 rev:3 rq:692272 version:0.9.1

Changes:

--- /work/SRC/openSUSE:Factory/python-nose2/python-nose2.changes
2018-08-24 17:04:36.770107619 +0200
+++ /work/SRC/openSUSE:Factory/.python-nose2.new.3908/python-nose2.changes  
2019-04-08 20:53:47.442579569 +0200
@@ -1,0 +2,16 @@
+Mon Apr  8 11:19:14 UTC 2019 - Ondřej Súkup 
+
+- update to 0.9.1
+- refresh remove_unittest2.patch
+ * the prof plugin now uses cProfile instead of hotshot for profiling
+ * skipped tests now include the user's reason in junit XML's message field
+ * the prettyassert plugin mishandled multi-line function definitions
+ * Using a plugin's CLI flag when the plugin is already enabled via config
+   no longer errors
+ * nose2.plugins.prettyassert, enabled with --pretty-assert
+ * Cleanup code for EOLed python versions
+ * Dropped support for distutils.
+ * Result reporter respects failure status set by other plugins
+ * JUnit XML plugin now includes the skip reason in its output
+
+---

Old:

  nose2-0.8.0.tar.gz

New:

  nose2-0.9.1.tar.gz



Other differences:
--
++ python-nose2.spec ++
--- /var/tmp/diff_new_pack.fIwx4s/_old  2019-04-08 20:53:47.974579960 +0200
+++ /var/tmp/diff_new_pack.fIwx4s/_new  2019-04-08 20:53:47.978579962 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nose2
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,13 +12,13 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-nose2
-Version:0.8.0
+Version:0.9.1
 Release:0
 Summary:Second generation of the "nose" Python testing framework
 License:BSD-2-Clause AND Python-2.0

++ nose2-0.8.0.tar.gz -> nose2-0.9.1.tar.gz ++
 3351 lines of diff (skipped)

++ remove_unittest2.patch ++
--- /var/tmp/diff_new_pack.fIwx4s/_old  2019-04-08 20:53:48.118580065 +0200
+++ /var/tmp/diff_new_pack.fIwx4s/_new  2019-04-08 20:53:48.118580065 +0200
@@ -1,11 +1,13 @@
 a/setup.py
-+++ b/setup.py
-@@ -93,7 +93,7 @@ else:
- ],
- }
- params['install_requires'] = parse_requirements('requirements.txt')
--params['test_suite'] = 'unittest.collector'
-+params['test_suite'] = 'nose2.tests'
- params['extras_require']['doc'] = 
parse_requirements('requirements-docs.txt')
- params['extras_require'].update(add_per_version_requirements())
- 
+Index: nose2-0.9.0/setup.py
+===
+--- nose2-0.9.0.orig/setup.py
 nose2-0.9.0/setup.py
+@@ -44,7 +44,7 @@ setup(
+ "nose2-%s.%s = nose2:discover" % (py_version.major, 
py_version.minor),
+ ]
+ },
+-test_suite="unittest.collector",
++test_suite="nose2.tests",
+ # descriptive package info below
+ description="unittest2 with plugins, the succesor to nose",
+ long_description=LONG_DESCRIPTION,




commit python-nose2 for openSUSE:Factory

2018-08-24 Thread root
Hello community,

here is the log from the commit of package python-nose2 for openSUSE:Factory 
checked in at 2018-08-24 17:04:34

Comparing /work/SRC/openSUSE:Factory/python-nose2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-nose2.new (New)


Package is "python-nose2"

Fri Aug 24 17:04:34 2018 rev:2 rq:629542 version:0.8.0

Changes:

--- /work/SRC/openSUSE:Factory/python-nose2/python-nose2.changes
2017-07-08 12:33:40.192628260 +0200
+++ /work/SRC/openSUSE:Factory/.python-nose2.new/python-nose2.changes   
2018-08-24 17:04:36.770107619 +0200
@@ -1,0 +2,15 @@
+Thu Aug 16 10:22:15 UTC 2018 - jeng...@inai.de
+
+- Avoid name repetition in summary (rpmlint).
+
+---
+Mon Aug 13 12:13:57 UTC 2018 - mc...@suse.com
+
+- Remove dependency on unittest2
+  Add remove_unittest2.patch to faciliate that
+- Upgrade to 0.8.0:
+List of changes is too long to show here, see
+https://github.com/nose-devs/nose2/blob/master/docs/changelog.rst
+changes between 0.6.5 and 0.8.0
+
+---

Old:

  nose2-0.6.5.tar.gz

New:

  nose2-0.8.0.tar.gz
  remove_unittest2.patch



Other differences:
--
++ python-nose2.spec ++
--- /var/tmp/diff_new_pack.ww94wI/_old  2018-08-24 17:04:37.550108545 +0200
+++ /var/tmp/diff_new_pack.ww94wI/_new  2018-08-24 17:04:37.554108550 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-nose2
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,26 +18,25 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:   python-nose2
-Version:0.6.5
+Version:0.8.0
 Release:0
-Summary:Nose2 is the next generation of nicer testing for Python
-License:BSD-2-Clause and Python-2.0
+Summary:Second generation of the "nose" Python testing framework
+License:BSD-2-Clause AND Python-2.0
 Group:  Development/Languages/Python
-Url:https://github.com/nose-devs/nose2
+URL:https://github.com/nose-devs/nose2
 Source: 
https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
+Patch0: remove_unittest2.patch
 BuildRequires:  %{python_module cov-core >= 1.12}
-BuildRequires:  %{python_module devel}
+BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six >= 1.1}
-BuildRequires:  %{python_module unittest2}
+BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-six >= 1.1
 Requires(post): update-alternatives
 Requires(postun): update-alternatives
 Suggests:   python-cov-core >= 1.12
-BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 BuildArch:  noarch
-
 %python_subpackages
 
 %description
@@ -51,17 +50,20 @@
 
 %prep
 %setup -q -n nose2-%{version}
+%autopatch -p1
 
 %build
 %python_build
 
 %install
 %python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %python_clone -a %{buildroot}%{_bindir}/nose2
 
 %check
-#LC_CTYPE=C.UTF8 python setup.py test
+export LC_CTYPE=C.UTF8 
+%python_exec setup.py test
 
 %post
 %python_install_alternative nose2
@@ -70,8 +72,8 @@
 %python_uninstall_alternative nose2
 
 %files %{python_files}
-%defattr(-,root,root,-)
-%doc AUTHORS README.rst license.txt
+%license license.txt
+%doc AUTHORS README.rst
 %python_alternative %{_bindir}/nose2
 %{python_sitelib}/*
 

++ nose2-0.6.5.tar.gz -> nose2-0.8.0.tar.gz ++
 5881 lines of diff (skipped)

++ remove_unittest2.patch ++
--- a/setup.py
+++ b/setup.py
@@ -93,7 +93,7 @@ else:
 ],
 }
 params['install_requires'] = parse_requirements('requirements.txt')
-params['test_suite'] = 'unittest.collector'
+params['test_suite'] = 'nose2.tests'
 params['extras_require']['doc'] = 
parse_requirements('requirements-docs.txt')
 params['extras_require'].update(add_per_version_requirements())
 



commit python-nose2 for openSUSE:Factory

2017-07-08 Thread root
Hello community,

here is the log from the commit of package python-nose2 for openSUSE:Factory 
checked in at 2017-07-08 12:33:38

Comparing /work/SRC/openSUSE:Factory/python-nose2 (Old)
 and  /work/SRC/openSUSE:Factory/.python-nose2.new (New)


Package is "python-nose2"

Sat Jul  8 12:33:38 2017 rev:1 rq:507176 version:0.6.5

Changes:

New Changes file:

--- /dev/null   2017-06-30 09:57:03.955002226 +0200
+++ /work/SRC/openSUSE:Factory/.python-nose2.new/python-nose2.changes   
2017-07-08 12:33:40.192628260 +0200
@@ -0,0 +1,14 @@
+---
+Wed Jun 28 06:07:30 UTC 2017 - jeng...@inai.de
+
+- Update package description
+
+---
+Mon Apr 24 09:10:11 UTC 2017 - alarr...@suse.com
+
+- Use singlespec macros
+
+---
+Mon Feb  6 17:07:51 UTC 2017 - alarr...@suse.com
+
+- Initial release

New:

  nose2-0.6.5.tar.gz
  python-nose2.changes
  python-nose2.spec



Other differences:
--
++ python-nose2.spec ++
#
# spec file for package python-nose2
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:   python-nose2
Version:0.6.5
Release:0
Summary:Nose2 is the next generation of nicer testing for Python
License:BSD-2-Clause and Python-2.0
Group:  Development/Languages/Python
Url:https://github.com/nose-devs/nose2
Source: 
https://files.pythonhosted.org/packages/source/n/nose2/nose2-%{version}.tar.gz
BuildRequires:  %{python_module cov-core >= 1.12}
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module six >= 1.1}
BuildRequires:  %{python_module unittest2}
BuildRequires:  python-rpm-macros
Requires:   python-six >= 1.1
Requires(post): update-alternatives
Requires(postun): update-alternatives
Suggests:   python-cov-core >= 1.12
BuildRoot:  %{_tmppath}/%{name}-%{version}-build
BuildArch:  noarch

%python_subpackages

%description
nose2 is a new version of the nose unit testing framework,
supporting Python 2.6+ and 3.x, but not 2.4.
nose2 does not need a custom importer anymore and instead imports
modules with __import__. nose2 does not support all of the
test project layouts that nose did, and also does not
support package-level fixtures. Almost all configuration for nose2
is to be done through config files, not command-line options.

%prep
%setup -q -n nose2-%{version}

%build
%python_build

%install
%python_install

%python_clone -a %{buildroot}%{_bindir}/nose2

%check
#LC_CTYPE=C.UTF8 python setup.py test

%post
%python_install_alternative nose2

%postun
%python_uninstall_alternative nose2

%files %{python_files}
%defattr(-,root,root,-)
%doc AUTHORS README.rst license.txt
%python_alternative %{_bindir}/nose2
%{python_sitelib}/*

%changelog