Skip to content
New issue

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

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

Already on GitHub? # to your account

Declare support for Django 5.0 and Python 3.12 #266

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
16 changes: 11 additions & 5 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -34,11 +34,11 @@ stages:
jobs:
- template: job--python-check.yml@templates
parameters:
pythonVersion: "3.11"
pythonVersion: "3.12"

- template: job--python-docs-build.yml@templates
parameters:
pythonVersion: "3.11"
pythonVersion: "3.12"

- template: job--python-test.yml@templates
parameters:
@@ -53,13 +53,19 @@ stages:
variables:
DJANGO_VERSION: "3.2.*"

py311_dj42:
py312_dj42:
coverage: true
variables:
DJANGO_VERSION: "4.2.*"
PYTEST_ADDOPTS: "--cov=tests"

py311_postgres:
py312_dj50:
coverage: true
variables:
DJANGO_VERSION: "5.0.*"
PYTEST_ADDOPTS: "--cov=tests"

py312_postgres:
services:
postgres: pg15
variables:
@@ -71,4 +77,4 @@ stages:
- template: job--python-publish.yml@templates
parameters:
token: $(pypiToken)
pythonVersion: "3.10"
pythonVersion: "3.12"
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -19,12 +19,14 @@ classifiers = [
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Environment :: Web Environment",
"Topic :: Software Development :: Libraries :: Python Modules",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
]
dependencies = [
"packaging",
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -48,5 +48,6 @@ def pytest_configure() -> None:
"default": dj_database_url.config(default="sqlite://:memory:"),
"test": dj_database_url.config(default="sqlite://:memory:"),
},
"USE_TZ": True,
}
)
4 changes: 2 additions & 2 deletions tests/dateutils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from datetime import datetime, timedelta
from datetime import datetime, timedelta, timezone

NOW = datetime.now()
NOW = datetime.now(tz=timezone.utc)
TOMORROW = NOW + timedelta(days=1)
YESTERDAY = NOW - timedelta(days=1)