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"
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
- name: "Install Python dependencies"
run: |

View File

@ -8,7 +8,7 @@ jobs:
strategy:
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"
runs-on: ubuntu-latest
@ -25,10 +25,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: "Install Nox"
- name: "Install Python dependencies"
run: |
pip3 install setuptools
pip3 install nox
pip install setuptools nox
- name: "Lint with flake8, Black and codespell"
run: |

View File

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

View File

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

View File

@ -57,7 +57,9 @@ Changelog
* **[NEXT]** (changes on ``master`` that have not been released yet):
* 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:**

View File

@ -42,7 +42,7 @@ def black_fix(session):
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):
session.install("pytest")
session.install(".")

View File

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