Skip to content

Commit b467524

Browse files
committed
remove support for Python 3.8
1 parent 7c722e4 commit b467524

File tree

7 files changed

+13
-20
lines changed

7 files changed

+13
-20
lines changed

.github/workflows/integration_tests.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
fail-fast: false
4949
matrix:
5050
# Define the base dimensions
51-
python: ['38', '39', '310', '311', '312', '313']
51+
python: ['39', '310', '311', '312', '313']
5252
algo: ['rs', 'hs']
5353
django_name: ['django420', 'django50', 'django51', 'django52']
5454

@@ -64,13 +64,7 @@ jobs:
6464
django_spec: 'Django>=5.2,<5.3'
6565

6666
exclude:
67-
# Python 3.8 and 3.9 only support Django 4.2 in this config
68-
- python: '38'
69-
django_name: 'django50'
70-
- python: '38'
71-
django_name: 'django51'
72-
- python: '38'
73-
django_name: 'django52'
67+
# Python 3.9 only supports Django 4.2 in this config
7468
- python: '39'
7569
django_name: 'django50'
7670
- python: '39'

.github/workflows/unit_tests.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ jobs:
77
strategy:
88
matrix:
99
python_version:
10-
- "3.8"
1110
- "3.9"
1211
- "3.10"
1312
- "3.11"

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ Before you submit a pull request, check that it meets these guidelines:
107107
2. If the pull request adds functionality, the docs should be updated. Put
108108
your new functionality into a function with a docstring, and add the
109109
feature to the list in README.rst.
110-
3. The pull request should work for Python 3.8+. Check
110+
3. The pull request should work for Python 3.9+. Check
111111
`<https://github.com/mozilla/mozilla-django-oidc/actions>`_ and make sure
112112
that the tests pass for all supported Python versions.
113113

HISTORY.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ History
1414
Backwards-incompatible changes:
1515

1616
* Drop support for Django 3.2
17-
* Python 3.8 and 3.9 are only supported with Django 4.2 (Django 5.0+ requires Python 3.10+)
17+
* Drop support for Python 3.8
18+
* Python 3.9 is only supported with Django 4.2 (Django 5.0+ requires Python 3.10+)
1819

1920

2021
4.0.1 (2024-03-12)

docs/installation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ After installation, you'll need to do some things to get your site using
1717
Requirements
1818
------------
1919

20-
This library supports Python 3.8+ on OSX and Linux.
20+
This library supports Python 3.9+ on OSX and Linux.
2121

2222

2323
Acquire a client id and client secret
@@ -144,7 +144,7 @@ Next, edit your ``urls.py`` and add the following:
144144
.. code-block:: python
145145
146146
from django.urls import path, include
147-
147+
148148
urlpatterns = [
149149
# ...
150150
path('oidc/', include('mozilla_django_oidc.urls')),
@@ -280,8 +280,8 @@ fields.
280280
If you want something different, set ``settings.OIDC_USERNAME_ALGO`` to a Python
281281
dotted path to the function you want to use.
282282

283-
The function takes in an email address as a text (Python 2 unicode or Python 3
284-
string) and returns a text (Python 2 unicode or Python 3 string).
283+
The function takes in an email address as a text (Python 3 string) and
284+
returns a text (Python 3 string).
285285

286286
Here's an example function for Python 3 that doesn't convert the email address
287287
at all:

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
22
requires = [
3-
"setuptools>=61.0.0",
3+
"setuptools>=75.0.0",
44
"wheel"
55
]
66
build-backend = "setuptools.build_meta"
@@ -14,6 +14,7 @@ authors = [
1414
{ name = "John Giannelos", email = "jgiannelos@mozilla.com" }
1515
]
1616
license = "MPL-2.0"
17+
requires-python = ">=3.9"
1718
keywords = ["mozilla-django-oidc"]
1819
classifiers = [
1920
"Development Status :: 5 - Production/Stable",
@@ -28,7 +29,6 @@ classifiers = [
2829
"Natural Language :: English",
2930
"Programming Language :: Python :: 3",
3031
"Programming Language :: Python :: 3 :: Only",
31-
"Programming Language :: Python :: 3.8",
3232
"Programming Language :: Python :: 3.9",
3333
"Programming Language :: Python :: 3.10",
3434
"Programming Language :: Python :: 3.11",
@@ -86,7 +86,7 @@ zip-safe = false
8686

8787
[tool.setuptools.dynamic]
8888
version = { attr = "mozilla_django_oidc.__version__" }
89-
readme = { file = ["README.rst"], "content-type" = "text/x-rst" }
89+
readme = { file = ["README.rst"], content-type = "text/x-rst" }
9090

9191
[tool.setuptools.packages.find]
9292
include = ["mozilla_django_oidc", "mozilla_django_oidc.*"]

tox.ini

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
[tox]
22
envlist =
33
lint
4-
py{38,39,310,311,312}-django420
4+
py{39,310,311,312}-django420
55
py{310,311,312}-django50
66
py{310,311,312,313}-django51
77
py{310,311,312,313,314}-django52
88

99
[gh-actions]
1010
python =
11-
3.8: py38
1211
3.9: py39
1312
3.10: py310
1413
3.11: py311

0 commit comments

Comments
 (0)