From 80bc0b8e5be6e256c8f49791e08abd5fa2d2d3a2 Mon Sep 17 00:00:00 2001 From: Ran Benita Date: Fri, 19 Apr 2024 15:54:58 +0300 Subject: [PATCH] Release 3.6.0 --- CHANGELOG.rst | 44 ++++++++++++++++++++++++++++++++++ changelog/1020.trivial | 4 ---- changelog/1024.bugfix | 2 -- changelog/1027.improvement.rst | 3 --- changelog/1028.bugfix | 1 - changelog/1053.removal | 1 - changelog/1057.removal | 3 --- changelog/1057.trivial | 1 - changelog/620.bugfix | 1 - changelog/937.bugfix | 1 - changelog/996.trivial | 1 - 11 files changed, 44 insertions(+), 18 deletions(-) delete mode 100644 changelog/1020.trivial delete mode 100644 changelog/1024.bugfix delete mode 100644 changelog/1027.improvement.rst delete mode 100644 changelog/1028.bugfix delete mode 100644 changelog/1053.removal delete mode 100644 changelog/1057.removal delete mode 100644 changelog/1057.trivial delete mode 100644 changelog/620.bugfix delete mode 100644 changelog/937.bugfix delete mode 100644 changelog/996.trivial diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 0228684d..875b9b49 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,47 @@ +pytest-xdist 3.6.0 (2024-04-19) +=============================== + +Features +-------- + +- `#1027 `_:``pytest-xdist`` workers now always execute the tests in the main thread. + Previously some tests might end up executing in a separate thread other than ``main`` in the workers, due to some internal `execnet`` details. This can cause problems specially with async frameworks where the event loop is running in the ``main`` thread (for example `#620 `__). + +Bug Fixes +--------- + +- `#1024 `_: Added proper handling of ``shouldstop`` (such as set by ``--max-fail``) and ``shouldfail`` conditions in workers. + Previously, a worker might have continued executing further tests before the controller could terminate the session. + +- `#1028 `_: Fixed compatibility issue between `looponfail` and editable installs. + +- `#620 `_: Use the new ``main_thread_only`` ``execnet`` "execmodel" so that code which expects to only run in the main thread will now work as expected. + +- `#937 `_: Fixed a bug where plugin would raise an incompatibility error with ``--pdb`` despite using ``-n0``. + + +Removals +-------- + +- `#1053 `_: Dropped support for Python 3.7. + +- `#1057 `_: pytest>=7.0.0 is now required. + + execnet>=2.1.0 is now required. + + +Trivial Changes +--------------- + +- `#1020 `_: pytest-xdist's ``setup.py`` file is removed. + + If you relied on this file, e.g. to install pytest using ``setup.py install``, + please see `Why you shouldn't invoke setup.py directly `_ for alternatives. + +- `#1057 `_: The internals of pytest-xdist are now fully typed. The typing is not exposed yet. + +- `#996 `_: Adjusted license file format and content to ensure security scanners will identity the license. + pytest-xdist 3.5.0 (2023-11-21) =============================== diff --git a/changelog/1020.trivial b/changelog/1020.trivial deleted file mode 100644 index 336a69fe..00000000 --- a/changelog/1020.trivial +++ /dev/null @@ -1,4 +0,0 @@ -pytest-xdist's ``setup.py`` file is removed. - -If you relied on this file, e.g. to install pytest using ``setup.py install``, -please see `Why you shouldn't invoke setup.py directly `_ for alternatives. diff --git a/changelog/1024.bugfix b/changelog/1024.bugfix deleted file mode 100644 index 06ce77f4..00000000 --- a/changelog/1024.bugfix +++ /dev/null @@ -1,2 +0,0 @@ -Added proper handling of ``shouldstop`` (such as set by ``--max-fail``) and ``shouldfail`` conditions in workers. -Previously, a worker might have continued executing further tests before the controller could terminate the session. diff --git a/changelog/1027.improvement.rst b/changelog/1027.improvement.rst deleted file mode 100644 index 2e6dca23..00000000 --- a/changelog/1027.improvement.rst +++ /dev/null @@ -1,3 +0,0 @@ -``pytest-xdist`` workers now always execute the tests in the main thread. - -Previously some tests might end up executing in a separate thread other than ``main`` in the workers, due to some internal `èxecnet`` details. This can cause problems specially with async frameworks where the event loop is running in the ``main`` thread (for example `#620 `__). diff --git a/changelog/1028.bugfix b/changelog/1028.bugfix deleted file mode 100644 index 39bc7a95..00000000 --- a/changelog/1028.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix compatiblity issue between `looponfail` and editable installs. diff --git a/changelog/1053.removal b/changelog/1053.removal deleted file mode 100644 index 3cb186bf..00000000 --- a/changelog/1053.removal +++ /dev/null @@ -1 +0,0 @@ -Dropped support for Python 3.7. diff --git a/changelog/1057.removal b/changelog/1057.removal deleted file mode 100644 index 71aad7fa..00000000 --- a/changelog/1057.removal +++ /dev/null @@ -1,3 +0,0 @@ -pytest>=7.0.0 is now required. - -execnet>=2.1.0 is now required. diff --git a/changelog/1057.trivial b/changelog/1057.trivial deleted file mode 100644 index df1b3c04..00000000 --- a/changelog/1057.trivial +++ /dev/null @@ -1 +0,0 @@ -The internals of pytest-xdist are now fully typed. The typing is not exposed yet. diff --git a/changelog/620.bugfix b/changelog/620.bugfix deleted file mode 100644 index 81b3378d..00000000 --- a/changelog/620.bugfix +++ /dev/null @@ -1 +0,0 @@ -Use the ``execnet`` new ``main_thread_only`` "execmodel" so that code which expects to only run in the main thread will now work as expected. diff --git a/changelog/937.bugfix b/changelog/937.bugfix deleted file mode 100644 index 8b868be4..00000000 --- a/changelog/937.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix a bug where plugin would raise an incompatibility error with ``--pdb`` despite using ``-n0``. diff --git a/changelog/996.trivial b/changelog/996.trivial deleted file mode 100644 index bf7a1809..00000000 --- a/changelog/996.trivial +++ /dev/null @@ -1 +0,0 @@ -Adjusted license file format and content to ensure security scanners will identity the license.