From a93d415b7caa9bf6fce60c5daf21a0f880d45d8c Mon Sep 17 00:00:00 2001 From: moomoohk <2220203+moomoohk@users.noreply.github.com> Date: Thu, 13 Jun 2024 00:16:25 +0300 Subject: [PATCH 1/4] Add 3.12 support --- setup.py | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 2f79c58..28eb69c 100644 --- a/setup.py +++ b/setup.py @@ -49,6 +49,7 @@ 'Programming Language :: Python :: 3.9', 'Programming Language :: Python :: 3.10', 'Programming Language :: Python :: 3.11', + 'Programming Language :: Python :: 3.12', 'Topic :: Software Development :: Libraries :: Python Modules', 'Typing :: Typed', ], diff --git a/tox.ini b/tox.ini index a3ca270..ff9a86d 100644 --- a/tox.ini +++ b/tox.ini @@ -7,7 +7,7 @@ ignore = E501,E722 [tox] -envlist = pypy37, py38, py39, py310, py311 +envlist = pypy37, py38, py39, py310, py311, py312 [gh-actions] python = @@ -16,10 +16,10 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [testenv] deps = hypothesis - mock nose2 commands = nose2 {posargs} From da52b6698929e4bd2617fc5c9145a8b64825673f Mon Sep 17 00:00:00 2001 From: moomoohk <2220203+moomoohk@users.noreply.github.com> Date: Thu, 13 Jun 2024 00:31:56 +0300 Subject: [PATCH 2/4] Add 3.12 to test matrix --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 40e44d3..1170665 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -70,7 +70,7 @@ jobs: strategy: matrix: # Match versions specified in tox.ini - python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.7'] + python-version: ['3.8', '3.9', '3.10', '3.11', 'pypy-3.7', '3.12'] # Steps represent a sequence of tasks that will be executed as part of the job steps: From 6f34f48cdd2ac0e4d99981f69dd64cb770b019ea Mon Sep 17 00:00:00 2001 From: moomoohk <2220203+moomoohk@users.noreply.github.com> Date: Thu, 13 Jun 2024 00:43:05 +0300 Subject: [PATCH 3/4] Flake with 3.12 --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1170665..4f7044b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -30,10 +30,10 @@ jobs: - name: Check out code uses: actions/checkout@main - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@main with: - python-version: "3.11" + python-version: "3.12" - name: Setup flake8 annotations uses: rbialon/flake8-annotations@v1.1 From 6e569af55b270bc3306300792c913ac6eb8b179f Mon Sep 17 00:00:00 2001 From: moomoohk <2220203+moomoohk@users.noreply.github.com> Date: Thu, 13 Jun 2024 00:57:49 +0300 Subject: [PATCH 4/4] Update flake8 action --- .github/workflows/tests.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 4f7044b..d350624 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -36,12 +36,9 @@ jobs: python-version: "3.12" - name: Setup flake8 annotations - uses: rbialon/flake8-annotations@v1.1 - - - name: Lint with flake8 - run: | - pip install flake8 - flake8 setup.py dpath/ tests/ + uses: TrueBrain/actions-flake8@v2.3 + with: + path: setup.py dpath/ tests/ # Generate a common hashseed for all tests generate-hashseed: