diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 99cbbd5..3580098 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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: | diff --git a/.github/workflows/python-ci.yml b/.github/workflows/python-ci.yml index 72a05fa..5334741 100644 --- a/.github/workflows/python-ci.yml +++ b/.github/workflows/python-ci.yml @@ -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: | diff --git a/.github/workflows/python-packages.yml b/.github/workflows/python-packages.yml index 5751acd..c5035c7 100644 --- a/.github/workflows/python-packages.yml +++ b/.github/workflows/python-packages.yml @@ -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: | diff --git a/.github/workflows/winbuild.yml b/.github/workflows/winbuild.yml index 1c15da5..4cac0d8 100644 --- a/.github/workflows/winbuild.yml +++ b/.github/workflows/winbuild.yml @@ -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: | diff --git a/README.rst b/README.rst index 2c73bfc..b46d226 100644 --- a/README.rst +++ b/README.rst @@ -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:** diff --git a/noxfile.py b/noxfile.py index f1b9a1c..e502a6e 100644 --- a/noxfile.py +++ b/noxfile.py @@ -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(".") diff --git a/pyproject.toml b/pyproject.toml index 7795d0b..046beac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [tool.black] line-length = 79 -target-version = ['py37'] +target-version = ['py38']