From a88b336ad17590ca9914b45f452645800296fe53 Mon Sep 17 00:00:00 2001 From: Stephen Rosen Date: Wed, 27 Jan 2021 18:07:03 +0000 Subject: [PATCH] Update docs with @stefanholek's excellent work! Plus some minor tweaks/fixes. Add him to the authors file and update the changelog with changes slated for v0.10.0 . Included but unrelated: - Fix single-backtick to double-backtick in changelog where appropriate - Update readme badges - Update setup.py classifiers for supported pythons --- AUTHORS | 1 + README.rst | 14 +++++------ docs/changelog.rst | 59 +++++++++++++++++++++++++++++++++++++++------- setup.py | 3 ++- 4 files changed, 60 insertions(+), 17 deletions(-) diff --git a/AUTHORS b/AUTHORS index 978ecaa5..895f9a93 100644 --- a/AUTHORS +++ b/AUTHORS @@ -7,3 +7,4 @@ Ilya Kurnosov Philip Thiem Aloys Baillet Stephen Rosen +Stefan Holek diff --git a/README.rst b/README.rst index 83bd74c7..b3bbbba4 100644 --- a/README.rst +++ b/README.rst @@ -1,15 +1,15 @@ -.. image:: https://travis-ci.org/nose-devs/nose2.svg?branch=master - :target: https://travis-ci.org/nose-devs/nose2 - :alt: Build Status - -.. image:: https://coveralls.io/repos/github/nose-devs/nose2/badge.svg?branch=master - :target: https://coveralls.io/github/nose-devs/nose2?branch=master - :alt: Coverage Status +.. image:: https://github.com/nose-devs/nose2/workflows/build/badge.svg?event=push + :alt: build status + :target: https://github.com/nose-devs/nose2/actions?query=workflow%3Abuild .. image:: https://img.shields.io/pypi/v/nose2.svg :target: https://pypi.org/project/nose2/ :alt: Latest PyPI version +.. image:: https://img.shields.io/pypi/pyversions/nose2.svg + :alt: Supported Python Versions + :target: https://pypi.org/project/nose2/ + .. 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 discuss@nose2.io diff --git a/docs/changelog.rst b/docs/changelog.rst index 6fa9faca..eaa9ff3b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -7,13 +7,54 @@ nose2 uses semantic versioning (currently in 0.x) and the popular Unreleased ---------- +Added +~~~~~ + +* 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 + +Changed +~~~~~~~ + +* 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 + +Fixed +~~~~~ + +* 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.`` 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 + + Merge pull request #485 from stefanholek/484-session-plugin-registry + 0.9.2 ----- Added ~~~~~ -* Add `--junit-xml-path` to the junit plugin argument list +* Add ``--junit-xml-path`` to the junit plugin argument list Fixed ~~~~~ @@ -29,10 +70,10 @@ Fixed Changed ~~~~~~~ -* the prof plugin now uses `cProfile` instead of `hotshot` for profiling, and - therefore now supports python versions which do not include `hotshot` +* the prof plugin now uses ``cProfile`` instead of ``hotshot`` for profiling, and + therefore now supports python versions which do not include ``hotshot`` -* skipped tests now include the user's reason in junit XML's `message` field +* skipped tests now include the user's reason in junit XML's ``message`` field Fixed ~~~~~ @@ -48,8 +89,8 @@ Fixed Added ~~~~~ -* nose2.plugins.prettyassert, enabled with `--pretty-assert`, which - pretty-prints AssertionErrors generated by `assert` statements +* nose2.plugins.prettyassert, enabled with ``--pretty-assert``, which + pretty-prints AssertionErrors generated by ``assert`` statements Changed ~~~~~~~ @@ -61,7 +102,7 @@ Changed Removed ~~~~~~~ -* Dropped support for `distutils`. Installation now requires `setuptools` +* Dropped support for ``distutils``. Installation now requires ``setuptools`` Fixed ~~~~~ @@ -99,12 +140,12 @@ Added Changed ~~~~~~~ -* Running `nose2` via `setuptools` will now trigger `CreateTestsEvent` and `CreatedTestSuiteEvent` +* Running ``nose2`` via ``setuptools`` will now trigger ``CreateTestsEvent`` and ``CreatedTestSuiteEvent`` Fixed ~~~~~ -* Respect `fail_under` in converage config +* Respect ``fail_under`` in converage config * Avoid infinite recursion when loading setuptools from zipped egg * Manpage now renders reproducibly * MP doc build now reproducible diff --git a/setup.py b/setup.py index aadeb40d..b6ab1f5e 100644 --- a/setup.py +++ b/setup.py @@ -58,10 +58,11 @@ "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Operating System :: OS Independent",