From 0f55b9b17d00c35d9f4c285d5591de7f9de73101 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Gmach?= Date: Fri, 21 Apr 2023 17:35:26 +0200 Subject: [PATCH] Add FAQ entry on how to test against EOL Python versions --- docs/changelog/2989.doc.rst | 1 + docs/faq.rst | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 docs/changelog/2989.doc.rst diff --git a/docs/changelog/2989.doc.rst b/docs/changelog/2989.doc.rst new file mode 100644 index 000000000..a6f504c93 --- /dev/null +++ b/docs/changelog/2989.doc.rst @@ -0,0 +1 @@ +Add FAQ entry on how to test EOL Python versions by :user:`jugmac00`. \ No newline at end of file diff --git a/docs/faq.rst b/docs/faq.rst index e1864e6f6..257c6a57d 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -348,3 +348,23 @@ Just make sure you switch the user to ``root`` when needed and switch back to `` rm -rf /var/lib/apt/lists/* USER tox + + +Testing end-of-life Python versions +----------------------------------- + +``tox`` uses ``virtualenv`` under its hood for managing virtual environments. + +`Virtualenv 20.22.0 `_ +dropped support for all Python versions smaller or equal to Python 3.6. + +If you need to test against e.g. Python 2.7, 3.5 or 3.6, you need to add the +following ``requires`` statement to your ``tox.ini`` configuration files. + +.. code-block:: ini + + [tox] + requires = virtualenv<20.22.0 + +In case you need to do this for many repositories, we recommend to use +`all-repos `_.