From 7692942b509304d7b9f7dd3b9305454c50f1b2f9 Mon Sep 17 00:00:00 2001 From: Will Barton Date: Tue, 4 Aug 2020 09:59:33 -0400 Subject: [PATCH] Add support for Django 3.1 --- .github/workflows/test.yml | 6 ++++++ README.md | 2 +- setup.py | 5 +++-- tox.ini | 3 ++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3d46e0c..821365f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,17 +34,23 @@ jobs: toxenv: - py36-dj22 - py36-dj30 + - py36-dj31 - py38-dj22 - py38-dj30 + - py38-dj31 include: - toxenv: py36-dj22 python-version: 3.6 - toxenv: py36-dj30 python-version: 3.6 + - toxenv: py36-dj31 + python-version: 3.6 - toxenv: py38-dj22 python-version: 3.8 - toxenv: py38-dj30 python-version: 3.8 + - toxenv: py38-dj31 + python-version: 3.8 steps: - uses: actions/checkout@v1 diff --git a/README.md b/README.md index b7fc7d9..0b25a31 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Feature flags allow you to toggle functionality in both Django code and the Djan ## Dependencies - Python 3.6+ -- Django 2.2, 3.0 +- Django 2.2-3.1 ## Installation diff --git a/setup.py b/setup.py index af7e92c..9c320e5 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import find_packages, setup -install_requires = ["Django>=1.11,<3.1"] +install_requires = ["Django>=1.11,<3.2"] testing_extras = [ "coverage>=3.7.0", @@ -24,7 +24,7 @@ long_description=open("README.md", "r", encoding="utf-8").read(), long_description_content_type="text/markdown", license="CC0", - version="5.0.0", + version="5.0.1", include_package_data=True, packages=find_packages(), python_requires=">=3.6", @@ -34,6 +34,7 @@ "Framework :: Django", "Framework :: Django :: 2.2", "Framework :: Django :: 3.0", + "Framework :: Django :: 3.1", "License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication", "License :: Public Domain", "Programming Language :: Python", diff --git a/tox.ini b/tox.ini index b871dcb..16ba393 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] skipsdist=True -envlist=lint,py{36,38}-dj{22,30} +envlist=lint,py{36,38}-dj{22,30,31} [testenv] install_command=pip install -e ".[testing]" -U {opts} {packages} @@ -18,6 +18,7 @@ basepython= deps= dj22: Django>=2.2,<2.3 dj30: Django>=3.0,<3.1 + dj31: Django>=3.1,<3.2 [testenv:lint] basepython=python3.6