Skip to content

Commit 466a46b

Browse files
salman2013Salman Nawaz
and
Salman Nawaz
authored
Django 4.2 updates (#135)
* fix: update django 4.2 support --------- Co-authored-by: Salman Nawaz <[email protected]>
1 parent 74cc03f commit 466a46b

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
os: [ubuntu-20.04]
1616
python-version: ['3.8']
17-
toxenv: [quality, django32, django40]
17+
toxenv: [quality, django32, django40, django42]
1818

1919
steps:
2020
- name: checkout repo
@@ -36,7 +36,7 @@ jobs:
3636
run: tox
3737

3838
- name: Run Coverage
39-
if: matrix.python-version == '3.8' && matrix.toxenv=='django32'
39+
if: matrix.python-version == '3.8' && matrix.toxenv=='django42'
4040
uses: codecov/codecov-action@v3
4141
with:
4242
files: htmlcov/index.html

djpyfs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# pylint: disable=django-not-configured
22
"""init file"""
3-
__version__ = '3.3.0'
3+
__version__ = '3.4.0'

example/example/urls.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
from django.conf.urls import patterns, include, url
1+
from django.urls import path
2+
from django.conf.urls import patterns
23

34
# Uncomment the next two lines to enable the admin:
45
# from django.contrib import admin
56
# admin.autodiscover()
67

78
urlpatterns = patterns('',
89
# Examples:
9-
url(r'^$', 'sample.views.index', name='index'),
10+
path('', 'sample.views.index', name='index'),
1011
# url(r'^example/', include('example.foo.urls')),
1112

1213
# Uncomment the admin/doc line below to enable admin documentation:

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def get_version(*file_paths):
113113
"Framework :: Django",
114114
'Framework :: Django :: 3.2',
115115
'Framework :: Django :: 4.0',
116+
'Framework :: Django :: 4.2',
116117
"Programming Language :: Python",
117118
"Programming Language :: Python :: 3",
118119
"Programming Language :: Python :: 3.8",

tox.ini

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
[tox]
2-
envlist = python{3.8}-django{32,40},quality
2+
envlist = python{3.8}-django{32,40,42},quality
33

44
[testenv]
55
passenv = CI TRAVIS TRAVIS_*
6-
commands =
6+
commands =
77
python -Wd -m pytest --cov {posargs}
88
python -m coverage html
99
deps =
1010
-r{toxinidir}/requirements/test.txt
1111
django32: Django>=3.2,<4.0
1212
django40: Django>=4.0,<4.1
13+
django42: Django>=4.2,<4.3
1314

1415
[testenv:quality]
1516
whitelist_externals =

0 commit comments

Comments
 (0)