Skip to content

Commit 47f13f5

Browse files
Add FAQ entry on how to test against EOL Python versions (#2991)
* Add FAQ entry on how to test against EOL Python versions * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent ff84a64 commit 47f13f5

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

docs/changelog/2989.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add FAQ entry on how to test EOL Python versions by :user:`jugmac00`.

docs/faq.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,3 +348,23 @@ Just make sure you switch the user to ``root`` when needed and switch back to ``
348348
rm -rf /var/lib/apt/lists/*
349349
350350
USER tox
351+
352+
353+
Testing end-of-life Python versions
354+
-----------------------------------
355+
356+
``tox`` uses ``virtualenv`` under its hood for managing virtual environments.
357+
358+
`Virtualenv 20.22.0 <https://virtualenv.pypa.io/en/latest/changelog.html#v20-22-0-2023-04-19>`_
359+
dropped support for all Python versions smaller or equal to Python 3.6.
360+
361+
If you need to test against e.g. Python 2.7, 3.5 or 3.6, you need to add the
362+
following ``requires`` statement to your ``tox.ini`` configuration files.
363+
364+
.. code-block:: ini
365+
366+
[tox]
367+
requires = virtualenv<20.22.0
368+
369+
In case you need to do this for many repositories, we recommend to use
370+
`all-repos <https://github.com/asottile/all-repos>`_.

0 commit comments

Comments
 (0)