Skip to content

Commit

Permalink
chore: Changed test setup to reflect on python compatibility, dropped…
Browse files Browse the repository at this point in the history
… support for django 2.2, 3.2
  • Loading branch information
lino committed Jan 27, 2024
1 parent afcf972 commit 5df3e15
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 19 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
max-parallel: 5
matrix:
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', 'pypy-3.8']
django-version: ['2.2', '3.2', '4.0']
django-version: ['4.0', '4.1', '4.2', '5.0']
include:
# Tox configuration for documentation environment
- python-version: '3.7'
Expand All @@ -32,11 +32,24 @@ jobs:
- python-version: '3.11'
django-version: 'main'
experimental: true
- python-version: '3.12'
django-version: 'main'
experimental: true
exclude:
# Exclude Django 4.0 for Python 3.7 as it is not supported
- python-version: '3.7'
django-version: '4.0'

- python-version: '3.7'
django-version: '4.1'
- python-version: '3.7'
django-version: '4.2'
- python-version: '3.7'
django-version: '5.0'
- python-version: '3.8'
django-version: '5.0'
- python-version: '3.9'
django-version: '5.0'
- python-version: '3.10'
steps:
- uses: actions/checkout@v2

Expand Down
4 changes: 2 additions & 2 deletions docs/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ Then, make sure ``recurrence`` is in your ``INSTALLED_APPS`` setting:
Supported Django and Python versions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Currently, django-recurrence supports Python 3.6, 3.7, 3.8, 3.9, 3.10, and 3.11.
Currently, django-recurrence supports Python 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, and 3.12.

django-recurrence is currently tested with django 2.2, 3.2, and 4.0
django-recurrence is currently tested with django 2.2, 3.2, 4.0, 4.1, 4.2, and 5.0

Set up internationalization
---------------------------
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
Expand Down
33 changes: 18 additions & 15 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
[tox]
envlist =
py37-djdocs
py37-djqa
py{37,38,39,310,311,py38}-dj22
py{37,38,39,310,311,py38}-dj32
py{38,39,310,311,py38}-dj40
py{38,39,310,311,py38}-djmain
py312-djdocs
py312-djqa
py{38,39,310,py38}-dj40
py{38,39,310,311,py38}-dj41
py{38,39,310,311,312,py38}-dj42
py{310,311,312}-dj50
py{310,311,312,py38}-djmain

[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312
pypy-3.8: pypy38

[gh-actions:env]
DJANGO =
docs: djdocs
qa: djqa
2.2: dj22
3.2: dj32
4.0: dj40
4.1: dj41
4.2: dj42
5.0: dj50
main: djmain

[testenv]
Expand All @@ -31,15 +33,16 @@ setenv =
PYTHONDONTWRITEBYTECODE=1
deps =
-r requirements.txt
dj22: django>=2.2,<2.3
dj32: django>=3.2,<3.3
dj40: django>=4.0,<4.1
dj41: django>=4.1,<4.2
dj42: django>=4.2,<4.3
dj50: django>=5.0,<5.1
djmain: https://github.com/django/django/archive/main.tar.gz
commands =
pytest

[testenv:py37-djqa]
basepython = python3.7
[testenv:py310-djqa]
basepython = python3.10
ignore_errors = true
deps =
-r requirements.txt
Expand All @@ -48,8 +51,8 @@ commands =
flake8 setup.py
flake8 tests

[testenv:py37-djdocs]
basepython = python3.7
[testenv:py310-djdocs]
basepython = python3.10
changedir = docs
deps =
-r requirements.txt
Expand Down

0 comments on commit 5df3e15

Please sign in to comment.