cookiecutter-django icon indicating copy to clipboard operation
cookiecutter-django copied to clipboard

[Update Django] Django 5.0

Open github-actions[bot] opened this issue 1 year ago • 6 comments

5.0 requirements tables

base.txt

Name Version in Master 5.0 Compatible Version OK
python-slugify 8.0.4 n/a
Pillow 10.3.0 n/a
rcssmin 1.1.2 n/a
argon2-cffi 23.1.0 n/a
whitenoise 6.7.0 6.6.0
redis 5.0.7 n/a
hiredis 2.3.2 n/a
celery 5.4.0 n/a
django-celery-beat 2.6.0 2.6.0
flower 2.0.1 n/a
uvicorn 0.30.1 n/a
uvicorn-worker 0.2.0 n/a
django 4.2.13 2.6.0
django-environ 0.11.2
django-model-utils 4.5.1 4.4.0
django-allauth 0.63.3 0.58.2
django-crispy-forms 2.2 2.1
crispy-bootstrap5 2024.2 2023.10
django-compressor 4.5 4.5
django-redis 5.4.0
djangorestframework 3.15.2 3.15.0
django-cors-headers 4.4.0 4.3.1
drf-spectacular 0.27.2 0.27.2
django-webpack-loader 3.1.0 3.0.1

local.txt

Name Version in Master 5.0 Compatible Version OK
Werkzeug 3.0.3 n/a
ipdb 0.13.13 n/a
psycopg 3.1.19 n/a
watchfiles 0.22.0 n/a
mypy 1.10.0 n/a
django-stubs 5.0.2 5.0.0
pytest 8.2.2 n/a
pytest-sugar 1.0.0 n/a
djangorestframework-stubs 3.15.0 n/a
sphinx 7.3.7 n/a
sphinx-autobuild 2024.4.16 n/a
ruff 0.4.10 n/a
coverage 7.5.4 n/a
djlint 1.34.1 n/a
pre-commit 3.7.1 n/a
factory-boy 3.3.0
django-debug-toolbar 4.4.2 4.3.0
django-extensions 3.2.3
django-coverage-plugin 3.1.0
pytest-django 4.8.0 4.7.0

production.txt

Name Version in Master 5.0 Compatible Version OK
gunicorn 22.0.0 n/a
psycopg 3.1.19 n/a
Collectfast 2.2.0 n/a
sentry-sdk 2.7.0 n/a
hiredis 2.3.2 n/a
django-storages 1.14.3 1.14.3
django-anymail 11.0 10.2

github-actions[bot] avatar Dec 07 '23 12:12 github-actions[bot]

Django 5.0 will win from Python 3.12 I think #4644

foarsitter avatar Dec 08 '23 11:12 foarsitter

Per this commit looks like django-storages is ready for 5.0 https://github.com/jschneier/django-storages/commit/70fa8d96665f0c5e44aacd6c782f6489fa8dc11e

jeffpfoster avatar Jan 06 '24 06:01 jeffpfoster

Thanks for the heads up @jeffpfoster. This issue description is updated automatically and the package should turn green when the next version is released. That being said, it seems that no code change was required so it should work with the current version 1.14.2 version.

browniebroke avatar Jan 06 '24 12:01 browniebroke

Status thus far:

Support without a release required: django-environ: https://github.com/joke2k/django-environ/pull/506 django-compressor: https://github.com/django-compressor/django-compressor/pull/1211 django-redis: https://github.com/jazzband/django-redis/pull/729 drf-spectacular: https://github.com/tfranzel/drf-spectacular/pull/1127 factory-boy: https://github.com/FactoryBoy/factory_boy/pull/1054/files django-coverage-plugin: tested against main https://github.com/nedbat/django_coverage_plugin/blob/ca45852f7168d36b69e6a64f01d804b572775680/tox.ini#L32

Pretty close django-stubs: https://github.com/typeddjango/django-stubs/issues/1493

Unmaintained: django-extensions: https://github.com/django-extensions/django-extensions (#4939) Collectfast: https://github.com/antonagestam/collectfast/ (#4938)

foarsitter avatar Mar 22 '24 13:03 foarsitter

I'm using django-extensions with Django 5.0 and I haven't encountered any blockers so far. Shouldn't prevent from upgrading...

browniebroke avatar Mar 22 '24 13:03 browniebroke

I can't see a branch for this?

awhillas avatar Apr 22 '24 02:04 awhillas

Opened a PR for this, if you're interested in testing it: https://github.com/cookiecutter/cookiecutter-django/pull/5199

From what I can tell, it seems to work on a couple of production deployments. I'll leave it open for a few days if you want to try it out:

cookiecutter gh:browniebroke/cookiecutter-django --checkout upgrade/django-5.0

browniebroke avatar Jul 20 '24 11:07 browniebroke

It worked out I guess?

awhillas avatar Aug 12 '24 02:08 awhillas