Skip to content

Commit

Permalink
Add support for Django 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dduong42 committed Apr 6, 2021
1 parent 9b2187a commit 73e4eda
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 16 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,17 @@ jobs:
matrix:
toxenv:
- py36-dj22
- py36-dj30
- py36-dj31
- py36-dj32
- py38-dj22
- py38-dj30
- py38-dj31
- py38-dj32
include:
- toxenv: py36-dj22
python-version: 3.6
- toxenv: py36-dj30
python-version: 3.6
- toxenv: py36-dj31
- toxenv: py36-dj32
python-version: 3.6
- toxenv: py38-dj22
python-version: 3.8
- toxenv: py38-dj30
python-version: 3.8
- toxenv: py38-dj31
- toxenv: py38-dj32
python-version: 3.8

steps:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Feature flags allow you to toggle functionality in both Django code and the Djan
## Dependencies

- Python 3.6+
- Django 2.2-3.1
- Django 2.2-3.2

## Installation

Expand Down
7 changes: 7 additions & 0 deletions docs/releasenotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Release Notes

## 5.0.5

### What's new?

- Added Django 3.2 support


## 5.0.4

### What's new?
Expand Down
1 change: 1 addition & 0 deletions flags/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@


class DjangoFlagsConfig(AppConfig):
default_auto_field = "django.db.models.AutoField"
name = "flags"
verbose_name = "Django Flags"
1 change: 1 addition & 0 deletions flags/tests/testapp/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
default_app_config = "flags.tests.testapp.apps.TestAppConfig"
6 changes: 6 additions & 0 deletions flags/tests/testapp/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class TestAppConfig(AppConfig):
default_auto_field = "django.db.models.AutoField"
name = "flags.tests.testapp"
5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import find_packages, setup


install_requires = ["Django>=1.11,<3.2"]
install_requires = ["Django>=1.11,<3.3"]

testing_extras = [
"coverage>=3.7.0",
Expand All @@ -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.4",
version="5.0.5",
include_package_data=True,
packages=find_packages(),
python_requires=">=3.6",
Expand All @@ -35,6 +35,7 @@
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"License :: Public Domain",
"Programming Language :: Python",
Expand Down
5 changes: 2 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
skipsdist=True
envlist=lint,py{36,38}-dj{22,30,31}
envlist=lint,py{36,38}-dj{22,32}

[testenv]
install_command=pip install -e ".[testing]" -U {opts} {packages}
Expand All @@ -17,8 +17,7 @@ basepython=

deps=
dj22: Django>=2.2,<2.3
dj30: Django>=3.0,<3.1
dj31: Django>=3.1,<3.2
dj32: Django>=3.2,<3.3

[testenv:lint]
basepython=python3.8
Expand Down

0 comments on commit 73e4eda

Please sign in to comment.