Skip to content

Commit

Permalink
Add support for Django 4.0 and Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
dyve committed Nov 3, 2021
1 parent 60a6353 commit 6acba0b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
max-parallel: 5
matrix:
python-version: [ 3.6, 3.7, 3.8, 3.9 ]
python-version: [ "3.6", "3.7", "3.8", "3.9", "3.10" ]

steps:
- name: Checkout code
Expand Down Expand Up @@ -74,4 +74,4 @@ jobs:
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true
parallel-finished: true
19 changes: 12 additions & 7 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ envlist =
docs
{py36}-{django22,django31,django32}
{py37}-{django22,django31,django32}
{py38}-{django31,django32,djangomain}
{py39}-{django31,django32,djangomain}
{py38}-{django31,django32,django40,djangomain}
{py39}-{django31,django32,django40,djangomain}
{py310}-{django32,django40,djangomain}
check-description
check-manifest

Expand All @@ -21,10 +22,18 @@ deps =
django22: Django==2.2.*
django31: Django==3.1.*
django32: Django==3.2.*
django40: Django==4.0.a1
djangomain: https://github.com/django/django/archive/main.tar.gz
coverage[toml]
coveralls

[testenv:coverage]
depends =
py36,py37,py38,py39,py310
commands =
coverage combine
coverage report

[testenv:lint]
commands =
make lint
Expand All @@ -37,9 +46,6 @@ commands =
deps =
-r{toxinidir}/docs/requirements.txt

# Packaging checks.
################################################################################

# Builds the package and runs 'twine check' to ensure it will render
# correctly when uploaded to the Python Package Index, or fail if not.
[testenv:check-description]
Expand All @@ -49,8 +55,7 @@ changedir = {toxinidir}
skip_install = true
deps =
twine
# In this environment we always want latest wheel in addition to
# latest pip.
# In this environment we always want latest wheel in addition to latest pip.
commands_pre =
{envpython} -m pip install --upgrade pip setuptools wheel
commands =
Expand Down

0 comments on commit 6acba0b

Please sign in to comment.