Skip to content

Update Django/Python support #458

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

Closed
Closed
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
18 changes: 11 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@ jobs:
runs-on: blacksmith-4vcpu-ubuntu-2204
strategy:
matrix:

python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12", "pypy3.9" ]
django: [ "32", "42", "50" ]
django: [ "32", "42", "51" ]

exclude:
- python-version: "3.11"
django: "32"
- python-version: "3.13"
django: "51"
- python-version: "3.13"
django: "42"

- python-version: "3.8"
django: "50"
- python-version: "3.9"
django: "50"
django: "51"
- python-version: "pypy3.9"
django: "50"
django: "51"

- python-version: "3.12"
django: "32"

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
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.

2 changes: 2 additions & 0 deletions requirements/test-django51.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
django>=5.1.3,<5.2
psycopg>=3.1.8 # necessary due to https://docs.djangoproject.com/en/4.2/releases/4.2/#psycopg-3-support
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,17 @@ 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
Programming Language :: Python :: 3.12
Programming Language :: Python :: 3.13
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
Operating System :: OS Independent
Topic :: Communications
Topic :: System :: Distributed Computing
Expand Down Expand Up @@ -155,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
14 changes: 6 additions & 8 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[tox]
envlist =
py312-django{42,50}
py311-django{42,50}
py310-django{42,50,32}
py39-django{42,32}
py313-django{51}
py312-django{51,42}
py311-django{51,50,42}
py310-django{51,42,32}
py38-django{42,32}
pypy39-django{42,32}

Expand All @@ -17,19 +17,17 @@ envlist =
DJANGO =
3.2: django32
4.2: django42
5.0: django50
5.1: django51

[testenv]
deps=
-r{toxinidir}/requirements/default.txt
-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

cov,integration: -r{toxinidir}/requirements/test-django.txt

Expand Down
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy