Merge pull request #4393 from foarsitter/django-4.2

Upgrade to django 4.2
This commit is contained in:
Jelmer 2023-06-28 08:58:24 +02:00 committed by GitHub
commit 6f34e19260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -19,7 +19,7 @@ production-ready Django projects quickly.
## Features
- For Django 4.1
- For Django 4.2
- Works with Python 3.11
- Renders Django projects with 100% starting test coverage
- Twitter [Bootstrap](https://github.com/twbs/bootstrap) v5

View File

@ -24,7 +24,7 @@ setup(
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Console",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: BSD License",

View File

@ -231,7 +231,7 @@ def test_django_upgrade_passes(cookies, context_override):
try:
sh.django_upgrade(
"--target-version",
"4.1",
"4.2",
*python_files,
_cwd=str(result.project_path),
)

View File

@ -30,7 +30,7 @@ repos:
rev: '1.14.0'
hooks:
- id: django-upgrade
args: ['--target-version', '4.1']
args: ['--target-version', '4.2']
- repo: https://github.com/asottile/pyupgrade
rev: v3.7.0

View File

@ -28,7 +28,7 @@ uvicorn[standard]==0.22.0 # https://github.com/encode/uvicorn
# Django
# ------------------------------------------------------------------------------
django==4.1.9 # pyup: < 4.2 # https://www.djangoproject.com/
django==4.2.2 # pyup: < 5.0 # https://www.djangoproject.com/
django-environ==0.10.0 # https://github.com/joke2k/django-environ
django-model-utils==4.3.1 # https://github.com/jazzband/django-model-utils
django-allauth==0.54.0 # https://github.com/pennersr/django-allauth