Skip to content

Drop support for Python 3.8 and Django 3.2-4.1 #466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,31 +13,21 @@ jobs:
runs-on: blacksmith-4vcpu-ubuntu-2204
strategy:
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9" ]
django: [ "32", "42", "50", "51" ]
python-version: [ "3.9", "3.10", "3.11", "3.12", "3.13", "pypy3.9" ]
django: [ "42", "50", "51" ]
exclude:
- python-version: "3.13"
django: "32"
- python-version: "3.13"
django: "42"
- python-version: "3.13"
django: "50"
- python-version: "3.11"
django: "32"
- python-version: "3.8"
django: "50"
- python-version: "3.9"
django: "50"
- python-version: "pypy3.9"
django: "50"
- python-version: "3.8"
django: "51"
- python-version: "3.9"
django: "51"
- python-version: "pypy3.9"
django: "51"
- python-version: "3.12"
django: "32"

services:
postgres:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repos:
rev: v3.19.1
hooks:
- id: pyupgrade
args: ["--py36-plus"]
args: ["--py39-plus"]

- repo: https://github.com/PyCQA/flake8
rev: 7.1.2
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
build:
os: ubuntu-20.04
tools:
python: "3.8"
python: "3.9"
sphinx:
configuration: docs/conf.py
python:
Expand Down
5 changes: 0 additions & 5 deletions django_celery_results/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
import re
from collections import namedtuple

import django

__version__ = '2.5.1'
__author__ = 'Asif Saif Uddin, Ask Solem'
__contact__ = 'auvipy@gmail.com'
Expand All @@ -31,6 +29,3 @@
del re

__all__ = []

if django.VERSION < (3, 2):
default_app_config = 'django_celery_results.apps.CeleryResultConfig'
2 changes: 1 addition & 1 deletion requirements/default.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
celery>=5.2.7,<6.0
Django>=3.2.25
Django>=4.2
2 changes: 1 addition & 1 deletion requirements/docs.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx_celery>=1.1
Django>=3.2.25
Django>=4.2
celery>=5.2.7,<6.0
2 changes: 1 addition & 1 deletion requirements/test-django.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Django>=3.2,<6.0
Django>=4.2,<6.0
psycopg>=3.1.8
1 change: 0 additions & 1 deletion requirements/test-django32.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements/test-django40.txt

This file was deleted.

1 change: 0 additions & 1 deletion requirements/test-django41.txt

This file was deleted.

6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ def _pyimp():
License :: OSI Approved :: BSD License
Programming Language :: Python
Programming Language :: Python :: 3
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
Expand All @@ -44,9 +42,6 @@ def _pyimp():
Programming Language :: Python :: Implementation :: CPython
Programming Language :: Python :: Implementation :: PyPy
Framework :: Django
Framework :: Django :: 3.2
Framework :: Django :: 4.0
Framework :: Django :: 4.1
Framework :: Django :: 4.2
Framework :: Django :: 5.0
Framework :: Django :: 5.1
Expand Down Expand Up @@ -158,6 +153,7 @@ def run_tests(self):
platforms=['any'],
license='BSD',
classifiers=classifiers,
python_requires='>=3.9',
install_requires=reqs('default.txt'),
tests_require=reqs('test.txt') + reqs('test-django.txt'),
cmdclass={'test': pytest},
Expand Down
2 changes: 0 additions & 2 deletions t/proj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,6 @@

USE_I18N = True

USE_L10N = True

USE_TZ = True
DJANGO_CELERY_RESULTS_TASK_ID_MAX_LENGTH = 191

Expand Down
11 changes: 3 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ envlist =
py313-django{51}
py312-django{51,50,42}
py311-django{51,50,42}
py310-django{51,50,42,32}
py39-django{42,32}
py38-django{42,32}
pypy39-django{42,32}
py310-django{51,50,42}
py39-django{42}
pypy39-django{42}

flake8
apicheck
Expand All @@ -16,7 +15,6 @@ envlist =

[travis:env]
DJANGO =
3.2: django32
4.2: django42
5.0: django50
5.1: django51
Expand All @@ -27,9 +25,6 @@ deps=
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/test-ci.txt

django41: -r{toxinidir}/requirements/test-django41.txt
django40: -r{toxinidir}/requirements/test-django40.txt
django32: -r{toxinidir}/requirements/test-django32.txt
django42: -r{toxinidir}/requirements/test-django42.txt
django50: -r{toxinidir}/requirements/test-django50.txt
django51: -r{toxinidir}/requirements/test-django51.txt
Expand Down