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 e7d12173..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.6+ and PyPy3. 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 diff --git a/setup.py b/setup.py index 8752eba8..4043db0f 100755 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ def fread(fn): platforms='any', license='BSD-3-Clause', packages=find_packages(exclude=('docs', 'tests', 'tests.*')), - python_requires='>=3.6', + python_requires='>=3.8', extras_require={ 'rsa': rsa_require, 'signedtoken': signedtoken_require, @@ -52,8 +52,6 @@ def fread(fn): 'Operating System :: POSIX :: Linux', 'Programming Language :: Python', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10',