Skip to content

Commit

Permalink
Update test matrix for Django 4 and Python 3.10 (#9)
Browse files Browse the repository at this point in the history
* Update test matrix for Django 4 and Python 3.10

* Fix Python versions in workflow

* Update pyproject.toml for Django 4

* Fix tox config
  • Loading branch information
mixxorz authored Dec 17, 2021
1 parent 2586e17 commit af8b8b1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,5 +138,6 @@ dmypy.json
cython_debug/
{"mode":"full","isActive":false}

.python-version
.vim
.nvimrc
9 changes: 4 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "slippers"
version = "0.3.0"
version = "0.3.1"
description = "Build reusable components in Django without writing a single line of Python."
authors = ["Mitchel Cabuloy <[email protected]>"]
keywords = ["django", "components"]
Expand All @@ -15,17 +15,16 @@ classifiers = [
"Operating System :: OS Independent",
"Framework :: Django",
"Framework :: Django :: 2.2",
"Framework :: Django :: 3.0",
"Framework :: Django :: 3.1",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.0",
]
include = [
"LICENSE",
]

[tool.poetry.dependencies]
python = "^3.6.2"
Django = ">=2.2, <4.0"
python = "^3.7.0"
Django = ">=2.2, <4.1"
PyYAML = "^5.4.1"

[tool.poetry.dev-dependencies]
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ known_third_party = yaml

[flake8]
max-line-length = 120
extend-exclude = dist/
12 changes: 6 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ envlist =
flake8
black
isort
py36-django{22,31,32}
py37-django{22,31,32}
py38-django{22,31,32}
py39-django{22,31,32}
py37-django{22,32}
py38-django{22,32,40}
py39-django{22,32,40}
py310-django{22,32,40}

[gh-actions]
python =
3.6: py36
3.7: py37
3.8: py38
3.9: py39, flake8, black, isort
3.10: py310, flake8, black, isort

[testenv]
deps =
django22: Django>=2.2,<2.3
django31: Django>=3.1,<3.2
django32: Django>=3.2,<3.3
django40: Django>=4.0,<4.1
commands =
python runtests.py

Expand Down

0 comments on commit af8b8b1

Please sign in to comment.