Added Python 3.12 support and dropped Python 3.7 support

This commit is contained in:
Fabien LOISON 2023-10-06 11:29:45 +02:00
parent dcd7ce3629
commit 209e3b5473
No known key found for this signature in database
GPG Key ID: FF90CA148348048E
7 changed files with 16 additions and 10 deletions

View File

@ -22,7 +22,7 @@ jobs:
- name: "Set up Python" - name: "Set up Python"
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: "3.11" python-version: "3.12"
- name: "Install Python dependencies" - name: "Install Python dependencies"
run: | run: |

View File

@ -8,7 +8,7 @@ jobs:
strategy: strategy:
matrix: matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
name: "Build and test YOGA" name: "Build and test YOGA"
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -25,10 +25,9 @@ jobs:
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
- name: "Install Nox" - name: "Install Python dependencies"
run: | run: |
pip3 install setuptools pip install setuptools nox
pip3 install nox
- name: "Lint with flake8, Black and codespell" - name: "Lint with flake8, Black and codespell"
run: | run: |

View File

@ -22,7 +22,11 @@ jobs:
- name: "Set up Python" - name: "Set up Python"
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: "3.10" python-version: "3.12"
- name: "Install python dependencies"
run: |
pip install setuptools
- name: "Build source distribution" - name: "Build source distribution"
run: | run: |

View File

@ -3,6 +3,7 @@ name: "Windows Standalone Build"
on: on:
push: push:
tags: "v[0-9]+.[0-9]+.[0-9]+" tags: "v[0-9]+.[0-9]+.[0-9]+"
branches: master
jobs: jobs:
@ -21,7 +22,7 @@ jobs:
- name: "Set up Python" - name: "Set up Python"
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: "3.11" python-version: "3.12"
- name: "Get some useful debug information" - name: "Get some useful debug information"
run: | run: |

View File

@ -57,7 +57,9 @@ Changelog
* **[NEXT]** (changes on ``master`` that have not been released yet): * **[NEXT]** (changes on ``master`` that have not been released yet):
* Code quality: more robust type comparison (@flozz) * Code quality: more robust type comparison (@flozz)
* Code quality: cleanup some Python 2.7 specific code * Code quality: cleanup some Python 2.7 specific code (@flozz)
* Added Python 3.12 support (@flozz)
* Removed Python 3.7 support (@flozz)
* **v1.2.2:** * **v1.2.2:**

View File

@ -42,7 +42,7 @@ def black_fix(session):
session.run("black", *PYTHON_FILES) session.run("black", *PYTHON_FILES)
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11"], reuse_venv=True) @nox.session(python=["3.8", "3.9", "3.10", "3.11", "3.12"], reuse_venv=True)
def test(session): def test(session):
session.install("pytest") session.install("pytest")
session.install(".") session.install(".")

View File

@ -1,3 +1,3 @@
[tool.black] [tool.black]
line-length = 79 line-length = 79
target-version = ['py37'] target-version = ['py38']