Skip to content

Commit

Permalink
Merge pull request #64 from JonathanWillitts/add/tests-for-py39-django32
Browse files Browse the repository at this point in the history
Add tests for py39-django32 & fix failing py36-flake8 tests
  • Loading branch information
yprez committed May 25, 2021
2 parents f3f9429 + 74b8bb2 commit 2c4a9fd
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Expand Up @@ -16,6 +16,9 @@ jobs:
- python: 3.8
dist: xenial
sudo: true
- python: 3.9
dist: xenial
sudo: true

install:
- pip install -U packaging # fix for Python3.4 build
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -6,7 +6,10 @@ v1.0.7 - Unreleased
===================

* Add tests for Django 3.1.
* Add tests for Django 3.2 LTS.
* Test on Python 3.9 (for Django versions 2.2 LTS to present (3.2 LTS))
* Fix failing tests for Django 2.2.
* Fix failing lint test


v1.0.6 - 23/04/2020
Expand Down
4 changes: 2 additions & 2 deletions README.rst
Expand Up @@ -12,8 +12,8 @@ Originally based on: `Django snippet 2484 <http://djangosnippets.org/snippets/24
Supported versions
==================

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


Installation
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Expand Up @@ -41,6 +41,7 @@
'Framework :: Django :: 2.2',
'Framework :: Django :: 3.0',
'Framework :: Django :: 3.1',
'Framework :: Django :: 3.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: ISC License (ISCL)',
'Natural Language :: English',
Expand All @@ -53,5 +54,6 @@
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)
6 changes: 6 additions & 0 deletions tests/conftest.py
@@ -1,3 +1,5 @@
import random

from django.conf import settings


Expand Down Expand Up @@ -34,4 +36,8 @@ def pytest_configure():
],
},
}],
SECRET_KEY=''.join(
random.choice("abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)")
for _ in range(50)
),
)
8 changes: 5 additions & 3 deletions tox.ini
@@ -1,8 +1,9 @@
[tox]
envlist =
{py38,py37,py36}-django31,
{py38,py37,py36}-django30,
{py38,py37,py36,py35}-django22,
{py39,py38,py37,py36}-django32,
{py39,py38,py37,py36}-django31,
{py39,py38,py37,py36}-django30,
{py39,py38,py37,py36,py35}-django22,
{py37,py36,py35}-django21,
{py37,py36,py35,py34}-django20,
{py37,py36,py35,py34,py27}-{django111},
Expand All @@ -20,6 +21,7 @@ deps =
django22: Django>=2.2,<2.3
django30: Django>=3.0,<3.1
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
coverage
pytest
pytest-cov
Expand Down

0 comments on commit 2c4a9fd

Please sign in to comment.