From 2035d692a6d14c5745ef0a432aa5cbcd2625f5d8 Mon Sep 17 00:00:00 2001 From: Jonathan Huot Date: Sat, 6 Jan 2024 21:38:32 +0100 Subject: [PATCH] Removed obsolete versions in documentation --- README.rst | 2 +- docs/contributing.rst | 13 ++++++------- docs/oauth1/security.rst | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.rst b/README.rst index 8e288b63..44b243f2 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ OAuthLib - Python Framework for OAuth1 & OAuth2 =============================================== *A generic, spec-compliant, thorough implementation of the OAuth request-signing -logic for Python 3.6+.* +logic for Python 3.8+* .. image:: https://github.com/oauthlib/oauthlib/actions/workflows/python-build.yml/badge.svg :target: https://github.com/oauthlib/oauthlib/actions diff --git a/docs/contributing.rst b/docs/contributing.rst index 19ff9c9c..9da1370c 100644 --- a/docs/contributing.rst +++ b/docs/contributing.rst @@ -152,8 +152,8 @@ request that fails this test suite will be **rejected**. Testing multiple versions of Python ----------------------------------- -OAuthLib supports Python 3.5, 3.6, 3.7 and PyPy 2.7 & PyPy 3. Testing -all versions conveniently can be done using `Tox`_. +OAuthLib supports Python 3.8+ & PyPy 3. Testing +all versions conveniently at once can be done using `Tox`_. .. sourcecode:: bash @@ -167,11 +167,10 @@ The versions beloew may not be up to date. .. sourcecode:: bash - $ pyenv install 3.5.7 - $ pyenv install 3.6.9 - $ pyenv install 3.7.4 - $ pyenv install pypy2.7-7.1.1 - $ pyenv install pypy3.6-7.1.1 + $ pyenv install -l # check which versions you want to use + $ pyenv install 3.8.18 + $ pyenv install 3.11.7 + $ pyenv install pypy3.10-7.3.13 .. _`Tox`: https://tox.readthedocs.io/en/latest/install.html .. _`virtualenv`: https://virtualenv.pypa.io/en/latest/installation/ diff --git a/docs/oauth1/security.rst b/docs/oauth1/security.rst index d8b7d6b5..a9274c29 100644 --- a/docs/oauth1/security.rst +++ b/docs/oauth1/security.rst @@ -17,7 +17,7 @@ A few important facts regarding OAuth security * **Tokens must be random**, OAuthLib provides a method for generating secure tokens and it's packed into ``oauthlib.common.generate_token``, use it. If you decide to roll your own, use ``secrets.SystemRandom`` - for Python 3.6 and later. The ``secrets`` module is designed for + for Python 3.8 and later. The ``secrets`` module is designed for generating cryptographically strong random numbers. For earlier versions of Python, use ``random.SystemRandom`` which is based on ``os.urandom`` rather than the default ``random`` based on the efficient but not truly