From 7d3864e3ec3bfe782a87919ebd35a01b38c7d180 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Wed, 5 Jun 2024 15:29:46 +0000 Subject: [PATCH] update supported python versions (#181) --- .github/workflows/test_and_deploy.yml | 19 ++++++++++--------- pyproject.toml | 13 +++++++------ 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 1541b5c..259627c 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -28,16 +28,17 @@ jobs: strategy: fail-fast: false matrix: - # Run across a mixture of Python versions and operating systems + # Run all supported Python versions on linux + os: [ubuntu-latest] + python-version: ["3.10", "3.11", "3.12"] + # Include one windows and two macOS (intel based and arm based) runs include: - - os: ubuntu-latest - python-version: "3.11" - - os: macos-13 # Intel Mac - python-version: "3.10" - - os: macos-latest # ARM Mac - python-version: "3.10" - - os: windows-latest - python-version: "3.9" + - os: macos-13 + python-version: "3.12" + - os: macos-latest + python-version: "3.12" + - os: windows-latest + python-version: "3.12" steps: - name: Cache brainglobe directory diff --git a/pyproject.toml b/pyproject.toml index 84182cb..a097155 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,11 +12,12 @@ classifiers = [ "Intended Audience :: Science/Research", "Operating System :: OS Independent", "Programming Language :: Python", - "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] -requires-python = ">=3.9" +requires-python = ">=3.10" dependencies = [ "brainglobe-atlasapi >=2.0.1", "brainglobe-napari-io >=0.3.0", @@ -73,7 +74,7 @@ include = ["brainglobe_segmentation*"] [tool.setuptools_scm] [tool.black] -target-version = ['py39', 'py310', 'py311'] +target-version = ['py310','py311', 'py312'] skip-string-normalization = false line-length = 79 @@ -89,13 +90,13 @@ select = ["I", "E", "F"] legacy_tox_ini = """ # For more information about tox, see https://tox.readthedocs.io/en/latest/ [tox] -envlist = py{38,39,310} +envlist = py{310,311,312} [gh-actions] python = - 3.8: py38 - 3.9: py39 3.10: py310 + 3.11: py311 + 3.12: py312 [testenv] passenv =