From dff944e572df2edc2933e900b0faad8bb4df263e Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 30 Aug 2022 12:54:06 +0200 Subject: [PATCH 1/7] Add Django 4.1 to test --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 6ee441da..0ff53fe5 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = flake8, py{36,37,38,39,310}-django32, py{38,39,310}-django40, + py{38,39,310}-django41, [testenv:flake8] deps = flake8 @@ -29,6 +30,7 @@ setenv = deps = django32: Django>=3.2,<3.3 django40: Django>=4.0,<4.1 + django41: Django>=4.1,<4.2 markdown<3.0 isort>=5.0 djangorestframework From 19e18cf64d5f5ddad70aaa1f4c1437650f47b073 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 30 Aug 2022 13:22:33 +0200 Subject: [PATCH 2/7] Add deprecation note to `USE_L10N` --- knox_project/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knox_project/settings.py b/knox_project/settings.py index caa79f08..d5b6c40c 100644 --- a/knox_project/settings.py +++ b/knox_project/settings.py @@ -49,7 +49,7 @@ LANGUAGE_CODE = 'en-us' TIME_ZONE = 'UTC' USE_I18N = True -USE_L10N = True +USE_L10N = True # Deprecated since django 4.0. USE_TZ = True STATIC_URL = '/static/' From 1a9d833ab6eb0151f1400cd69967a948fab9b43e Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Thu, 5 Jan 2023 15:32:44 +0100 Subject: [PATCH 3/7] Add python 3.11 to test --- .github/workflows/test.yml | 2 +- setup.py | 1 + tox.ini | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 379d39cc..d64012e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: fail-fast: false max-parallel: 5 matrix: - python-version: ['3.6', '3.7', '3.8', '3.9', '3.10'] + python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] steps: - uses: actions/checkout@v2 diff --git a/setup.py b/setup.py index a75d3689..ffcba9a2 100644 --- a/setup.py +++ b/setup.py @@ -51,6 +51,7 @@ 'Programming Language :: Python :: 3.8', 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', + 'Programming Language :: Python :: 3.11', ], # What does your project relate to? diff --git a/tox.ini b/tox.ini index 0ff53fe5..86deadc4 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,7 @@ envlist = flake8, py{36,37,38,39,310}-django32, py{38,39,310}-django40, - py{38,39,310}-django41, + py{38,39,310,311}-django41, [testenv:flake8] deps = flake8 @@ -30,7 +30,7 @@ setenv = deps = django32: Django>=3.2,<3.3 django40: Django>=4.0,<4.1 - django41: Django>=4.1,<4.2 + django41: Django>=4.1.3,<4.2 markdown<3.0 isort>=5.0 djangorestframework @@ -48,3 +48,4 @@ python = 3.8: py38 3.9: py39, isort, flake8 3.10: py310 + 3.11: py311 From 2838c5c4f8785bf09a09d3d726d376e1725695cd Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sun, 8 Jan 2023 14:25:07 +0100 Subject: [PATCH 4/7] Move isort, flake8 test to Python 3.10 --- tox.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index 86deadc4..dece6d1a 100644 --- a/tox.ini +++ b/tox.ini @@ -46,6 +46,6 @@ python = 3.6: py36 3.7: py37 3.8: py38 - 3.9: py39, isort, flake8 - 3.10: py310 + 3.9: py39 + 3.10: py310, isort, flake8 3.11: py311 From af85fc66941e2b7a3017db04f52b78d9b67cdc8e Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sun, 8 Jan 2023 14:34:05 +0100 Subject: [PATCH 5/7] Bump GH Actions versions --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d64012e9..3ddb41c2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,10 +12,10 @@ jobs: python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11'] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} @@ -25,7 +25,7 @@ jobs: echo "::set-output name=dir::$(pip cache dir)" - name: Cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ${{ steps.pip-cache.outputs.dir }} key: From 9e94bb38ecc9ac162991d17ef7868905679502b0 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Sun, 8 Jan 2023 14:48:17 +0100 Subject: [PATCH 6/7] GitHub Actions: Deprecating save-state and set-output commands https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ddb41c2..ca8a3067 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: - name: Get pip cache dir id: pip-cache run: | - echo "::set-output name=dir::$(pip cache dir)" + echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT - name: Cache uses: actions/cache@v3 From 767e7b8ed3f78daa76d2990ef58d83332e2416fd Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Fri, 13 Jan 2023 09:08:21 +0100 Subject: [PATCH 7/7] Update `markdown` dependency --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index dece6d1a..a0a846d0 100644 --- a/tox.ini +++ b/tox.ini @@ -31,7 +31,7 @@ deps = django32: Django>=3.2,<3.3 django40: Django>=4.0,<4.1 django41: Django>=4.1.3,<4.2 - markdown<3.0 + markdown>=3.0 isort>=5.0 djangorestframework freezegun