mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 13:38:12 +08:00
Update tested versions, add python 3.13 support and django 5.2 support. Drop python 3.8 support (#271)
* Update tested versions * Remove f string * Fix second `format_html` --------- Co-authored-by: Stan Triepels <1939656+GDay@users.noreply.github.com>
This commit is contained in:
co-authored by
Stan Triepels
parent
a154fd658a
commit
0090a6f411
@@ -26,19 +26,29 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12" ]
|
python-version:
|
||||||
django: [ "4.2", "5.0", "5.1"]
|
- "3.9"
|
||||||
|
- "3.10"
|
||||||
|
- "3.11"
|
||||||
|
- "3.12"
|
||||||
|
django:
|
||||||
|
- "4.2"
|
||||||
|
- "5.0"
|
||||||
|
- "5.1"
|
||||||
|
- "5.2"
|
||||||
exclude:
|
exclude:
|
||||||
# django 5.1 does not support 3.8 and 3.9
|
# django 5.2 does not support 3.9
|
||||||
- python-version: "3.8"
|
- python-version: "3.9"
|
||||||
django: "5.1"
|
django: "5.2"
|
||||||
|
# django 5.1 does not support 3.9
|
||||||
- python-version: "3.9"
|
- python-version: "3.9"
|
||||||
django: "5.1"
|
django: "5.1"
|
||||||
# django 5.0 does not support 3.8 and 3.9
|
# django 5.0 does not support 3.9
|
||||||
- python-version: "3.8"
|
|
||||||
django: "5.0"
|
|
||||||
- python-version: "3.9"
|
- python-version: "3.9"
|
||||||
django: "5.0"
|
django: "5.0"
|
||||||
|
# django 4.2 does not support 3.13
|
||||||
|
- python-version: "3.13"
|
||||||
|
django: "4.2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
mongodb:
|
mongodb:
|
||||||
@@ -70,7 +80,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install poetry==1.8.5
|
pip install poetry==1.8.5
|
||||||
poetry add "django==${{ matrix.django }}" --python=${{ matrix.python-version }}
|
poetry add "django~=${{ matrix.django }}a1" --python=${{ matrix.python-version }}
|
||||||
poetry install -E testing
|
poetry install -E testing
|
||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
+4
-1
@@ -38,7 +38,10 @@ Requirements
|
|||||||
- `Django <https://www.djangoproject.com>`__ > = 4.2
|
- `Django <https://www.djangoproject.com>`__ > = 4.2
|
||||||
- `Django-picklefield <https://github.com/gintas/django-picklefield>`__
|
- `Django-picklefield <https://github.com/gintas/django-picklefield>`__
|
||||||
|
|
||||||
Tested with: Python 3.8, 3.9, 3.10, 3.11 and 3.12. Works with Django 4.2.X and 5.0.X
|
Tested with:
|
||||||
|
|
||||||
|
* Python 3.9 to 3.13.
|
||||||
|
* Django 4.2 to 5.2.
|
||||||
|
|
||||||
Brokers
|
Brokers
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|||||||
+1
-1
@@ -138,7 +138,7 @@ class ScheduleAdmin(admin.ModelAdmin):
|
|||||||
url = reverse("admin:django_q_success_change", args=(obj.task_id,))
|
url = reverse("admin:django_q_success_change", args=(obj.task_id,))
|
||||||
else:
|
else:
|
||||||
url = reverse("admin:django_q_failure_change", args=(obj.task_id,))
|
url = reverse("admin:django_q_failure_change", args=(obj.task_id,))
|
||||||
return format_html(f'<a href="{url}">[{obj.task_name}]</a>')
|
return format_html('<a href="{}">[{}]</a>', url, obj.task_name)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
get_last_run.allow_tags = True
|
get_last_run.allow_tags = True
|
||||||
|
|||||||
+1
-1
@@ -296,7 +296,7 @@ class Schedule(models.Model):
|
|||||||
url = reverse("admin:django_q_success_change", args=(task.id,))
|
url = reverse("admin:django_q_success_change", args=(task.id,))
|
||||||
else:
|
else:
|
||||||
url = reverse("admin:django_q_failure_change", args=(task.id,))
|
url = reverse("admin:django_q_failure_change", args=(task.id,))
|
||||||
return format_html(f'<a href="{url}">[{task.name}]</a>')
|
return format_html('<a href="{}">[{}]</a>', url, task.name)
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
|
|||||||
+2
-2
@@ -30,11 +30,11 @@ classifiers = [
|
|||||||
'Operating System :: MacOS',
|
'Operating System :: MacOS',
|
||||||
'Programming Language :: Python',
|
'Programming Language :: Python',
|
||||||
'Programming Language :: Python :: 3',
|
'Programming Language :: Python :: 3',
|
||||||
'Programming Language :: Python :: 3.8',
|
|
||||||
'Programming Language :: Python :: 3.9',
|
'Programming Language :: Python :: 3.9',
|
||||||
'Programming Language :: Python :: 3.10',
|
'Programming Language :: Python :: 3.10',
|
||||||
'Programming Language :: Python :: 3.11',
|
'Programming Language :: Python :: 3.11',
|
||||||
'Programming Language :: Python :: 3.12',
|
'Programming Language :: Python :: 3.12',
|
||||||
|
'Programming Language :: Python :: 3.13',
|
||||||
'Topic :: Internet :: WWW/HTTP',
|
'Topic :: Internet :: WWW/HTTP',
|
||||||
'Topic :: System :: Distributed Computing',
|
'Topic :: System :: Distributed Computing',
|
||||||
'Topic :: Software Development :: Libraries :: Python Modules',
|
'Topic :: Software Development :: Libraries :: Python Modules',
|
||||||
@@ -52,7 +52,7 @@ include = [
|
|||||||
|
|
||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.8,<4"
|
python = ">=3.9,<4"
|
||||||
django = ">=4.2, <6"
|
django = ">=4.2, <6"
|
||||||
django-picklefield = "^3.1"
|
django-picklefield = "^3.1"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user