Skip to content

Commit

Permalink
support Django 4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sastred committed Apr 12, 2023
1 parent 13a5b0a commit dbdd1e6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
5 changes: 4 additions & 1 deletion demo/demo/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@
CELERYBEAT_SCHEDULER = 'django_celery_beat.schedulers:DatabaseScheduler'

# Django storages
DEFAULT_FILE_STORAGE = 'storages.backends.s3boto3.S3Boto3Storage'
STORAGES = {
"default": {"BACKEND": "storages.backends.s3boto3.S3Boto3Storage"},
"staticfiles": {"BACKEND": "django.contrib.staticfiles.storage.StaticFilesStorage"},
}
AWS_ACCESS_KEY_ID = 'yubin'
AWS_SECRET_ACCESS_KEY = 'yubinyubin'
AWS_STORAGE_BUCKET_NAME = 'yubin'
Expand Down
8 changes: 4 additions & 4 deletions demo/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# core
Django<4.2
django-celery-beat==2.4.0
django-celery-results==2.4.0
Django<4.3
django-celery-beat==2.5.0
django-celery-results==2.5.0
django-extensions==3.1.5
redis==4.3.1
psycopg2==2.9.3
django-storages==1.13.1
django-storages==1.13.2
boto3==1.26.1

# django-yubin local code
Expand Down
2 changes: 1 addition & 1 deletion django_yubin/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = (2, 0, 0, 'b1')
VERSION = (2, 0, 0, 'b2')
__version__ = '.'.join([str(part) for part in VERSION[:-1]]) + VERSION[-1]
2 changes: 1 addition & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Changed
* Send and queue emails with Celery instead of with Cron.
* Drop priority headers (useless with queues).
* Storage backends to save emails in databases, file storages, etc.
* Supported versions: Python 3.8~3.11, Django 3.2~4.1, Celery 5.0~5.2.
* Supported versions: Python 3.8~3.11, Django 3.2~4.2, Celery 5.0~5.2.
* Migrate CI/CD from Travis to Github Actions.
* Docker Compose for external dependencies in development environment.
* Get django_yubin version programmatically.
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ def get_version():
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
]
)
3 changes: 2 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38,39,310}-dj{32,40,41}, py311-dj41
envlist = py{38,39,310}-dj{32,40,41}, py311-dj{41,42}
skip_missing_interpreters = true

[gh-actions]
Expand All @@ -15,6 +15,7 @@ deps =
dj32: Django>=3.2,<4
dj40: Django>=4.0,<4.1
dj41: Django>=4.1,<4.2
dj42: Django>=4.2,<4.3
commands=
coverage run --rcfile={toxinidir}/.coveragerc {toxinidir}/runtests.py {posargs}
coverage report --omit=test*,*migrations*

0 comments on commit dbdd1e6

Please sign in to comment.