-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Python 3.10 and Django 4.0 support
Deprecate pytz and use dateutil.tz timezones
- Loading branch information
1 parent
a1cd420
commit 079732f
Showing
6 changed files
with
41 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,48 @@ | ||
[tox] | ||
envlist = | ||
py{37,38,39,py3}-dj22 | ||
py{37,38,39,310,py3}-dj32 | ||
# Django 4.0+ is not supported yet due to dependencies | ||
# py{38,39,310,py3}-dj40 | ||
# py{38,39,310}-djmain | ||
py310-djqa | ||
py37-djqa | ||
py{37,38,39,py38}-dj22 | ||
py{37,38,39,310,py38}-dj32 | ||
py{38,39,310,py38}-dj40 | ||
py{38,39,310,py38}-djmain | ||
|
||
[gh-actions] | ||
python = | ||
3.7: py37 | ||
3.8: py38 | ||
3.9: py39 | ||
3.10: py310 | ||
pypy3: pypy3 | ||
pypy-3.8: pypy38 | ||
|
||
[gh-actions:env] | ||
DJANGO = | ||
2.2: dj22 | ||
3.2: dj32 | ||
# 4.0: dj40 | ||
# main: djmain | ||
4.0: dj40 | ||
main: djmain | ||
qa: djqa | ||
|
||
[testenv] | ||
usedevelop = true | ||
setenv = | ||
PYTHONDONTWRITEBYTECODE=1 | ||
deps = | ||
coverage==5.3 | ||
dj22: django>=2.2,<2.3 | ||
dj32: django>=3.1,<3.2 | ||
# Django 4.0+ is not supported yet due to dependencies | ||
# dj40: django>=4.0,<4.1 | ||
# djmain: https://github.com/django/django/archive/main.tar.gz | ||
usedevelop = true | ||
dj40: django>=4.0,<4.1 | ||
djmain: https://github.com/django/django/archive/main.tar.gz | ||
commands = | ||
coverage run setup.py test | ||
coverage report -m | ||
setenv = | ||
PYTHONDONTWRITEBYTECODE=1 | ||
# Django development version is allowed to fail the test matrix | ||
ignore_outcome = | ||
djmain: True | ||
ignore_errors = | ||
djmain: True | ||
|
||
[testenv:py310-djqa] | ||
[testenv:py37-djqa] | ||
basepython = python3.7 | ||
ignore_errors = true | ||
basepython = python3.10 | ||
skip_install = true | ||
deps = | ||
black==20.8b1 | ||
prospector==1.3.1 | ||
skip_install = true | ||
commands = | ||
prospector | ||
black -t py38 --check --diff django_ical | ||
black -t py37 --check --diff django_ical |