Skip to content

Commit

Permalink
Django 4.2 upgrade (#8)
Browse files Browse the repository at this point in the history
* fix: django 4.2 upgrade


---------

Co-authored-by: Salman Nawaz <[email protected]>
  • Loading branch information
salman2013 and Salman Nawaz authored Jul 24, 2023
1 parent b2e291b commit 0c7bf51
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
os:
- ubuntu-20.04
python-version: [3.8 ]
toxenv: [ py38-django32 ]
toxenv: [django32, django42]

steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
django-require changelog
========================

2.1.0 - 20/07/2023
-------------------

* Support added for Django 4.2


1.0.11 - 22/08/2016
-------------------

Expand Down
2 changes: 1 addition & 1 deletion require/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"""


__version__ = (2, 0, 0)
__version__ = (2, 1, 0)
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"Environment :: Web Environment",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.2",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Operating System :: OS Independent",
Expand Down
6 changes: 5 additions & 1 deletion test_project/test_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@
'require',
)

STATICFILES_STORAGE = "require.storage.OptimizedStaticFilesStorage"
STORAGES = {
"staticfiles": {
"BACKEND": "require.storage.OptimizedStaticFilesStorage",
},
}

STATIC_ROOT = tempfile.mkdtemp()

Expand Down
4 changes: 2 additions & 2 deletions test_project/test_project/urls.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from django.conf.urls import url
from django.urls import re_path
from django.contrib import admin

admin.autodiscover()
Expand All @@ -8,5 +8,5 @@
# url(r'^$', 'test_project.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),

url(r'^admin/', admin.site.urls),
re_path(r'^admin/', admin.site.urls),
]
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
[tox]
envlist =
py38-django{32}
envlist =
py38-django{32, 42}

[testenv]
changedir = {envtmpdir}
basepython =
basepython =
py38: python3.8
commands =
commands =
coverage run --rcfile={toxinidir}/.coveragerc {toxinidir}/test_project/manage.py test --settings=test_project.settings require -v 2
deps =
deps =
django32: Django>=3.2,<4.0
django42: Django>=4.2,<4.3
tox>=2.0.0
coverage

0 comments on commit 0c7bf51

Please sign in to comment.