File tree Expand file tree Collapse file tree 5 files changed +30
-16
lines changed Expand file tree Collapse file tree 5 files changed +30
-16
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
test :
11
- runs-on : ${{ matrix.os || ' ubuntu-latest' }}
11
+ runs-on : ubuntu-latest
12
12
strategy :
13
13
matrix :
14
14
include :
15
- - python : " 3.6"
16
- env : py36-django21
17
- os : ubuntu-20.04 # 3.6 is not available on ubuntu-20.04
18
15
- python : " 3.8"
19
16
env : py38-django21
20
17
- python : " 3.9"
21
18
env : py39-django21
22
19
23
- - python : " 3.6"
24
- env : py36-django32
25
- os : ubuntu-20.04 # 3.6 is not available on ubuntu-20.04
26
20
- python : " 3.8"
27
21
env : py38-django32
22
+ - python : " 3.9"
23
+ env : py39-django32
28
24
- python : " 3.10"
29
25
env : py310-django32
30
26
49
45
- python : " 3.11"
50
46
env : py311-django42
51
47
48
+ - python : " 3.10"
49
+ env : py310-django51
50
+ - python : " 3.11"
51
+ env : py311-django51
52
+ - python : " 3.12"
53
+ env : py312-django51
54
+
55
+ - python : " 3.10"
56
+ env : py310-django52
57
+ - python : " 3.11"
58
+ env : py311-django52
59
+ - python : " 3.12"
60
+ env : py312-django52
61
+
52
62
steps :
53
63
- uses : actions/checkout@v2
54
64
- name : Set up Python ${{ matrix.python }}
Original file line number Diff line number Diff line change 4
4
pip install build==0.9.0
5
5
6
6
# build the wheel and install it
7
- WHEEL_NAME=$( python -m build | grep -Po " django_forbid-.*\.whl" | tail -n 1)
8
- pip install dist/$WHEEL_NAME
7
+ python -m build && pip install $( ls dist/django_forbid-* .whl)
Original file line number Diff line number Diff line change @@ -38,13 +38,16 @@ classifiers =
38
38
Framework :: Django :: 3.2
39
39
Framework :: Django :: 4.1
40
40
Framework :: Django :: 4.2
41
+ Framework :: Django :: 5.1
42
+ Framework :: Django :: 5.2
41
43
Programming Language :: Python
42
44
Programming Language :: Python :: 3
43
- Programming Language :: Python :: 3.6
44
45
Programming Language :: Python :: 3.7
45
46
Programming Language :: Python :: 3.8
46
47
Programming Language :: Python :: 3.9
47
48
Programming Language :: Python :: 3.10
49
+ Programming Language :: Python :: 3.11
50
+ Programming Language :: Python :: 3.12
48
51
License :: OSI Approved :: MIT License
49
52
50
53
[options]
@@ -56,7 +59,7 @@ install_requires =
56
59
geoip2
57
60
device_detector
58
61
include_package_data = yes
59
- python_requires = >=3.6
62
+ python_requires = >=3.7
60
63
package_dir =
61
64
=src
62
65
zip_safe = no
Original file line number Diff line number Diff line change @@ -20,7 +20,8 @@ def __init__(self, get_response):
20
20
21
21
def __call__ (self , request ):
22
22
get_response = self .get_response
23
- if self .regex .search (request .META .get ("HTTP_ACCEPT" )):
23
+ http_accept = request .META .get ("HTTP_ACCEPT" )
24
+ if isinstance (http_accept , (bytes , str )) and self .regex .search (http_accept ):
24
25
for skill in __skills__ :
25
26
get_response = skill (get_response )
26
27
return get_response (request )
Original file line number Diff line number Diff line change 1
1
[tox]
2
2
envlist =
3
- py{36 ,38,39}-django21
4
- py{36,38 ,310}-django32
3
+ py{37 ,38,39}-django21
4
+ py{38,39 ,310}-django32
5
5
py{38,39,310}-django40
6
6
py{39,310,311}-django{41,42}
7
- py{310,311}-djangomain
7
+ py{310,311,312}-django{51,52}
8
8
9
9
[testenv]
10
10
deps =
11
- djangomain: https://github.com/django/django/tarball/main
11
+ django52: django>=5.2
12
+ django51: django<5.2
12
13
django42: django<4.3
13
14
django41: django<4.2
14
15
django40: django<4.1
You can’t perform that action at this time.
0 commit comments