Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FAQ entry on how to test against EOL Python versions #2991

Merged
merged 2 commits into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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>`_.