diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index daa57b69..93556e38 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8,3.9,'3.10'] + python-version: [3.8,3.9,'3.10', '3.11'] services: postgres: image: postgres:13-alpine diff --git a/src/cities_light/apps.py b/src/cities_light/apps.py index 5339f1f1..69112766 100644 --- a/src/cities_light/apps.py +++ b/src/cities_light/apps.py @@ -1,5 +1,6 @@ from django.apps import AppConfig + class CitiesLightConfig(AppConfig): default_auto_field = 'django.db.models.AutoField' - name = 'cities_light' \ No newline at end of file + name = 'cities_light' diff --git a/tox.ini b/tox.ini index 0b2835f9..474191a8 100644 --- a/tox.ini +++ b/tox.ini @@ -1,6 +1,6 @@ [tox] envlist = - py{38,39,310}-django{30,31,32,40}{-sqlite,-mysql,-postgresql}, + py{38,39,310,3.11}-django{30,31,32,40,41}{-sqlite,-mysql,-postgresql}, checkqa, pylint, docs @@ -12,6 +12,7 @@ python = 3.8: py38, docs, checkqa, pylint, mypy 3.9: py39 3.10: py310 + 3.11: py311 [base] deps = @@ -53,6 +54,7 @@ deps = django31: Django>=3.1,<3.2 django32: Django>=3.2,<4.0 django40: Django>=4.0,<4.1 + django41: Django>=4.1,<4.2 postgresql: psycopg2-binary==2.8.6 mysql: mysqlclient setenv = @@ -70,12 +72,12 @@ setenv = passenv = TEST_* DBDIFF_* DB_* PGPASSWORD [testenv:checkqa] -basepython = python3.7 +basepython = python3.8 commands = pycodestyle --ignore=E402,E124,E128 --exclude=tests,migrations src/cities_light deps = pycodestyle [testenv:pylint] -basepython = python3.7 +basepython = python3.8 commands = pylint -j 4 --load-plugins pylint_django src/cities_light -E deps = {[test]deps} @@ -87,7 +89,7 @@ deps = {[docs]deps} {[test]deps} # all supported database backends - psycopg2-binary==2.8.6 + psycopg2-binary==2.9.2 mysqlclient # ipython ipython