Skip to content

Commit

Permalink
Add FAQ entry on how to test against EOL Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jugmac00 committed Apr 21, 2023
1 parent ff84a64 commit 0f55b9b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/changelog/2989.doc.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add FAQ entry on how to test EOL Python versions by :user:`jugmac00`.
20 changes: 20 additions & 0 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://virtualenv.pypa.io/en/latest/changelog.html#v20-22-0-2023-04-19>`_
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 <https://github.com/asottile/all-repos>`_.

0 comments on commit 0f55b9b

Please sign in to comment.