From c211cefc548bccc106a2aa17a83c77042b4ea728 Mon Sep 17 00:00:00 2001 From: Jawayria <39649635+Jawayria@users.noreply.github.com> Date: Fri, 9 Jul 2021 19:10:17 +0500 Subject: [PATCH] feat: Added support for django3.2 (#75) --- .github/workflows/ci.yml | 4 ++-- lang_pref_middleware/__init__.py | 2 +- setup.py | 1 + tox.ini | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 213ca26..b2aa9f6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: Python CI on: push: - branches: [ master ] + branches: [master] pull_request: branches: - '**' @@ -16,7 +16,7 @@ jobs: matrix: os: [ubuntu-20.04] python-version: ['3.8'] - toxenv: ['django22','django30','django31','quality'] + toxenv: [django22, django30, django31, django32, quality] steps: - uses: actions/checkout@v1 diff --git a/lang_pref_middleware/__init__.py b/lang_pref_middleware/__init__.py index 1e9784c..d096b2b 100644 --- a/lang_pref_middleware/__init__.py +++ b/lang_pref_middleware/__init__.py @@ -1,3 +1,3 @@ """Init module for lang_pref_middleware.""" -__version__ = '1.0.0' +__version__ = '1.1.0' diff --git a/setup.py b/setup.py index acfcdae..268d108 100644 --- a/setup.py +++ b/setup.py @@ -64,6 +64,7 @@ def get_version(*file_paths): "Framework :: Django :: 2.2", "Framework :: Django :: 3.0", "Framework :: Django :: 3.1", + "Framework :: Django :: 3.2", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.8", ] diff --git a/tox.ini b/tox.ini index bce0da0..1dfed47 100644 --- a/tox.ini +++ b/tox.ini @@ -1,11 +1,12 @@ [tox] -envlist = py38-django{22,30,31},quality +envlist = py38-django{22,30,31,32},quality [testenv] 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 -r{toxinidir}/requirements/test.txt setenv = DJANGO_SETTINGS_MODULE=settings @@ -15,6 +16,5 @@ commands = pytest --cov-branch --cov-report=html:build/coverage/html --cov-repo commands = pycodestyle --config=.pep8 lang_pref_middleware pylint --rcfile=.pylintrc lang_pref_middleware - # Ignore module level docstrings and all test files pep257 --ignore=D100,D203 --match='(?!test).*py' lang_pref_middleware