Skip to content

Commit 2c4a9fd

Browse files
authored
Merge pull request #64 from JonathanWillitts/add/tests-for-py39-django32
Add tests for py39-django32 & fix failing py36-flake8 tests
2 parents f3f9429 + 74b8bb2 commit 2c4a9fd

6 files changed

Lines changed: 21 additions & 5 deletions

File tree

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
- python: 3.8
1717
dist: xenial
1818
sudo: true
19+
- python: 3.9
20+
dist: xenial
21+
sudo: true
1922

2023
install:
2124
- pip install -U packaging # fix for Python3.4 build

CHANGELOG.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ v1.0.7 - Unreleased
66
===================
77

88
* Add tests for Django 3.1.
9+
* Add tests for Django 3.2 LTS.
10+
* Test on Python 3.9 (for Django versions 2.2 LTS to present (3.2 LTS))
911
* Fix failing tests for Django 2.2.
12+
* Fix failing lint test
1013

1114

1215
v1.0.6 - 23/04/2020

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Originally based on: `Django snippet 2484 <http://djangosnippets.org/snippets/24
1212
Supported versions
1313
==================
1414

15-
* Django 3.1, 3.0, 2.2, 2.1, 2.0, 1.11, 1.10, 1.9, 1.8
16-
* Python 3.8, 3.7, 3.6, 3.5, 3.4, 2.7
15+
* Django 3.2, 3.1, 3.0, 2.2, 2.1, 2.0, 1.11, 1.10, 1.9, 1.8
16+
* Python 3.9, 3.8, 3.7, 3.6, 3.5, 3.4, 2.7
1717

1818

1919
Installation

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
'Framework :: Django :: 2.2',
4242
'Framework :: Django :: 3.0',
4343
'Framework :: Django :: 3.1',
44+
'Framework :: Django :: 3.2',
4445
'Intended Audience :: Developers',
4546
'License :: OSI Approved :: ISC License (ISCL)',
4647
'Natural Language :: English',
@@ -53,5 +54,6 @@
5354
'Programming Language :: Python :: 3.6',
5455
'Programming Language :: Python :: 3.7',
5556
'Programming Language :: Python :: 3.8',
57+
'Programming Language :: Python :: 3.9',
5658
],
5759
)

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import random
2+
13
from django.conf import settings
24

35

@@ -34,4 +36,8 @@ def pytest_configure():
3436
],
3537
},
3638
}],
39+
SECRET_KEY=''.join(
40+
random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)")
41+
for _ in range(50)
42+
),
3743
)

tox.ini

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[tox]
22
envlist =
3-
{py38,py37,py36}-django31,
4-
{py38,py37,py36}-django30,
5-
{py38,py37,py36,py35}-django22,
3+
{py39,py38,py37,py36}-django32,
4+
{py39,py38,py37,py36}-django31,
5+
{py39,py38,py37,py36}-django30,
6+
{py39,py38,py37,py36,py35}-django22,
67
{py37,py36,py35}-django21,
78
{py37,py36,py35,py34}-django20,
89
{py37,py36,py35,py34,py27}-{django111},
@@ -20,6 +21,7 @@ deps =
2021
django22: Django>=2.2,<2.3
2122
django30: Django>=3.0,<3.1
2223
django31: Django>=3.1,<3.2
24+
django32: Django>=3.2,<3.3
2325
coverage
2426
pytest
2527
pytest-cov

0 commit comments

Comments
 (0)