Skip to content

Commit

Permalink
💥 Require Python 3.10+
Browse files Browse the repository at this point in the history
* Dropped support for Python 3.8 and 3.9
* Dropped support for mozilla-django-oidc 2.0
  • Loading branch information
sergei-maertens committed Feb 6, 2024
1 parent 3678430 commit f37648c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 16 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.8', '3.9', '3.10', '3.11']
python: ['3.10', '3.11']
django: ['3.2', '4.1', '4.2']
mozilla_django_oidc: ['2.0', '3.0']
mozilla_django_oidc: ['3.0', '4.0']
exclude:
- django: ['4.1', '4.2']
mozilla_django_oidc: '2.0'
- python: '3.11'
django: '3.2'
- django: '4.2' # support added in 4.0
mozilla_django_oidc: '3.0'

name: Run the test suite (Python ${{ matrix.python }}, Django ${{ matrix.django }}, mozilla-django-oidc ${{ matrix.mozilla_django_oidc }})

Expand All @@ -37,8 +37,8 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

Expand All @@ -65,10 +65,10 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.8'
python-version: '3.10'

- name: Build sdist and wheel
run: |
Expand Down
5 changes: 2 additions & 3 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ classifiers =
Operating System :: Unix
Operating System :: MacOS
Operating System :: Microsoft :: Windows
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Topic :: Software Development :: Libraries :: Python Modules
Expand All @@ -30,12 +28,13 @@ classifiers =
zip_safe = False
include_package_data = True
packages = find:
python_requires = >=3.10
install_requires =
Django >=3.2
django-jsonform
django-solo
glom
mozilla-django-oidc >=2.0.0
mozilla-django-oidc >=3.0.0
tests_require =
psycopg2
pytest
Expand Down
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
[tox]
envlist =
py{38,39,310}-django32-mozilla_django_oidc{20}
py{38,39,310,311}-django{41,42}-mozilla_django_oidc{30}
py310-django32-mozilla_django_oidc{20}
py{310,311}-django{41,42}-mozilla_django_oidc{30,40}
isort
black
; docs
skip_missing_interpreters = true

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311

Expand All @@ -22,6 +20,7 @@ DJANGO =
MOZILLA_DJANGO_OIDC =
2.0: mozilla_django_oidc20
3.0: mozilla_django_oidc30
4.0: mozilla_django_oidc40
[testenv]
extras =
tests
Expand All @@ -32,6 +31,7 @@ deps =
django42: Django~=4.2.0
mozilla_django_oidc20: mozilla-django-oidc~=2.0.0
mozilla_django_oidc30: mozilla-django-oidc~=3.0.0
mozilla_django_oidc40: mozilla-django-oidc~=4.0.0
passenv =
PGUSER
PGDATABASE
Expand Down

0 comments on commit f37648c

Please sign in to comment.