Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 3bd6255

Browse files
authored
django 4 support (#37)
* Added django 4 alpha to tests * Updated test project URLs * Added separate tests for pre release * 0.9.0 release prep
1 parent 676badf commit 3bd6255

File tree

6 files changed

+51
-13
lines changed

6 files changed

+51
-13
lines changed

.github/workflows/test.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ jobs:
1111
python-version: [ 3.6, 3.7, 3.8, 3.9, ]
1212
django-version: [
1313
'2.2',
14-
'3.0', # Strings because otherwise 3.0 becomes 3
15-
'3.1',
16-
'3.2'
14+
'3.2',
1715
]
1816
os: [
1917
ubuntu-20.04,
@@ -37,3 +35,28 @@ jobs:
3735
3836
- name: Upload Coverage to Codecov
3937
uses: codecov/codecov-action@v1
38+
39+
pre-release:
40+
runs-on: ${{ matrix.os }}
41+
strategy:
42+
fail-fast: true
43+
matrix:
44+
os: [
45+
ubuntu-20.04,
46+
]
47+
48+
steps:
49+
- uses: actions/checkout@v2
50+
- name: Set up Python 3.9
51+
uses: actions/setup-python@v2
52+
with:
53+
python-version: 3.9
54+
- name: Install dependencies
55+
run: |
56+
python -m pip install --upgrade pip
57+
pip install --pre django bleach coverage mock
58+
python setup.py install
59+
- name: Run tests
60+
run: |
61+
cd testproject
62+
python manage.py test django_bleach

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
Version 0.9.0
2+
=============
3+
###### 28-09-2021
4+
* Drop support for django <2.2
5+
* Added support for django 4.0
6+
17
Version 0.8.0
28
=============
39
###### 18-09-2021

django_bleach/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22
__author__ = "Tim Heap & Mark Walker"
3-
__version__ = "0.8.0"
3+
__version__ = "0.9.0"
44

55
VERSION = __version__.split(".")

setup.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,16 @@ def find_variable(variable, *parts):
109109
'License :: OSI Approved :: MIT License',
110110
'Operating System :: OS Independent',
111111
'Programming Language :: Python',
112-
'Programming Language :: Python :: 3',
113-
'Framework :: Django',
112+
'Programming Language :: Python :: 3 :: Only',
113+
'Programming Language :: Python :: 3.6',
114+
'Programming Language :: Python :: 3.7',
115+
'Programming Language :: Python :: 3.8',
116+
'Programming Language :: Python :: 3.9',
117+
'Framework :: Django :: 2.2',
118+
'Framework :: Django :: 3.0',
119+
'Framework :: Django :: 3.1',
120+
'Framework :: Django :: 3.2',
121+
'Framework :: Django :: 4.0',
114122
'Development Status :: 5 - Production/Stable',
115123
],
116124
)

testproject/requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
#
55
# pip-compile
66
#
7+
--trusted-host pypi.python.org
8+
--trusted-host pypi.org
9+
--trusted-host files.pythonhosted.org
10+
711
alabaster==0.7.12
812
# via sphinx
913
asgiref==3.4.1

testproject/urls.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
try:
2-
from django.conf.urls import url
3-
except ImportError:
4-
from django.conf.urls.defaults import url
1+
from django.urls import path
52

6-
from .views import (home, model_form)
3+
from .views import home, model_form
74

85
urlpatterns = [
9-
url('^$', home, name='home'),
10-
url('^model_form$', model_form, name='model_form'),
6+
path('', home, name='home'),
7+
path('model_form/', model_form, name='model_form'),
118
]

0 commit comments

Comments
 (0)