14
0
forked from pool/python-nose2

Accepting request 998350 from home:bnavigator:branches:devel:languages:python

- Update to 0.12.0
  * Note: The 0.12.x series will be the final releases of nose2
    which support Python 2.
  * Passing --junit-xml-path now implies --junit-xml when using the
    junitxml plugin. This means that the --junit-xml flag can be
    omitted when --junit-xml-path is specified. (:issue:`521`)
  * Remove the dependency on coverage. Use of the coverage plugin
    now requires that you either install coverage independently, or
    use the extra, nose2[coverage_plugin]. As a result, nose2 no
    longer has any strict dependencies
  * Remove the dependency on six, instead using a vendored copy.
    This ensures that the dependency for nose2 doesn't conflict
    with application dependencies
  * nose2 no longer provides an entry-point named based on the
    current python version, e.g. nose2-3.8 on python3.8 . Only the
    nose2 command is provided.
  * Remove support for setup.py test on nose2 itself. This usage is
    deprecated by setuptools. Developers contributing to nose2 are
    encouraged to use tox to run nose2's testsuite, per the
    contributing guide.
- Release 0.11.0
  * Test classes now have their short description (first line of
    docstring) printed in verbose output
  * The junitxml plugin now sets timestamp on each testcase node as
    an ISO-8601 timestamp. Thanks to :user:`deeplow` for the
    contribution!
  * Drop support for Python 3.5
  * Python 3.10 is now officially supported. Python 3.11-dev will
    be supported on a best-effort basis. Thanks to :user:`hugovk`
    and :user:`tirkarthi` for their contributions!

OBS-URL: https://build.opensuse.org/request/show/998350
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-nose2?expand=0&rev=21
This commit is contained in:
2022-08-20 21:28:15 +00:00
committed by Git OBS Bridge
parent 265d9788b3
commit 3a438f768f
7 changed files with 89 additions and 71 deletions

View File

@@ -1,13 +0,0 @@
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"],

View File

@@ -1,18 +0,0 @@
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',

BIN
nose2-0.12.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8762f77925bbafcdf38331e0e2ee718756fb75ff74b1f9097cd08731ad59ab5e
size 154695

View File

@@ -1,3 +1,67 @@
-------------------------------------------------------------------
Sat Aug 20 11:46:12 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 0.12.0
* Note: The 0.12.x series will be the final releases of nose2
which support Python 2.
* Passing --junit-xml-path now implies --junit-xml when using the
junitxml plugin. This means that the --junit-xml flag can be
omitted when --junit-xml-path is specified. (:issue:`521`)
* Remove the dependency on coverage. Use of the coverage plugin
now requires that you either install coverage independently, or
use the extra, nose2[coverage_plugin]. As a result, nose2 no
longer has any strict dependencies
* Remove the dependency on six, instead using a vendored copy.
This ensures that the dependency for nose2 doesn't conflict
with application dependencies
* nose2 no longer provides an entry-point named based on the
current python version, e.g. nose2-3.8 on python3.8 . Only the
nose2 command is provided.
* Remove support for setup.py test on nose2 itself. This usage is
deprecated by setuptools. Developers contributing to nose2 are
encouraged to use tox to run nose2's testsuite, per the
contributing guide.
- Release 0.11.0
* Test classes now have their short description (first line of
docstring) printed in verbose output
* The junitxml plugin now sets timestamp on each testcase node as
an ISO-8601 timestamp. Thanks to :user:`deeplow` for the
contribution!
* Drop support for Python 3.5
* Python 3.10 is now officially supported. Python 3.11-dev will
be supported on a best-effort basis. Thanks to :user:`hugovk`
and :user:`tirkarthi` for their contributions!
* Add support for test classes when running with the
multiprocessing plugin. Thanks to :user:`ltfish` for the
initial contribution and :user:`stefanholek` for the refinement
to this change!
- Release 0.10.0
* Support for subtests!
* Notes for plugin authors about subtest support:
- Subtest failures will produce a TestOutcomeEvent with outcome
= "subtest"
- Subtest events can be failures, but they do not indicate
success -- the containing test will send a success event if
no subtests fail
* Drop support for Python 3.4
* Python 3.8 and 3.9 are now officially supported
* Improve helptext for the multiprocess plugin's -N option
* When run with reduced verbosity (e.g. with -q), nose2 will no
longer print an empty line before test reports
* The plugin registry will no longer contain duplicate plugins
and or base event.Plugin instances
* Fix function test case implementation of id, __str__, and
__repr__. This removes the injected transplant_class.<locals>
from reporting output
* Doctest loading will now skip setup.py files in the project
root
* Class methods decorated (e.g. with mock.patch) are no longer
incorrectly picked up by the function loader
- Drop patches
* remove_unittest2.patch
* ignore-warnings-doctests.patch
* fix-mock-dep.patch
-------------------------------------------------------------------
Wed May 4 11:04:22 UTC 2022 - pgajdos@suse.com

View File

@@ -18,53 +18,50 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-nose2
Version: 0.9.2
Version: 0.12.0
Release: 0
Summary: Second generation of the "nose" Python testing framework
Summary: The successor to the Python testing framework nose, based on unittest
License: BSD-2-Clause AND Python-2.0
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
Patch2: ignore-warnings-doctests.patch
BuildRequires: %{python_module coverage >= 4.4.1}
BuildRequires: %{python_module coverage}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.1}
BuildRequires: %{python_module wheel}
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-coverage
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.
nose2 is the successor to nose. It's unittest with plugins.
nose2 is a new project and does not support all of the behaviors of nose.
nose2's purpose is to extend unittest to make testing nicer and easier to understand.
%prep
%setup -q -n nose2-%{version}
%autopatch -p1
rm -rf *.egg-info/
%build
%python_build
%pyproject_wheel
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# -I : work around boo#1201041
%pyproject_install -I
%python_clone -a %{buildroot}%{_bindir}/nose2
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
export LC_CTYPE=C.UTF8
%pyunittest discover -v
%{python_expand # nose must test itself in an editable install
$python -m venv editable-%{$python_bin_suffix} --system-site-packages
. editable-%{$python_bin_suffix}/bin/activate
pip install -e .
nose2 -v --pretty-assert
deactivate
}
%post
%python_install_alternative nose2
@@ -76,6 +73,7 @@ export LC_CTYPE=C.UTF8
%license license.txt
%doc AUTHORS README.rst
%python_alternative %{_bindir}/nose2
%{python_sitelib}/*
%{python_sitelib}/nose2
%{python_sitelib}/nose2-%{version}*-info
%changelog

View File

@@ -1,13 +0,0 @@
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,