From 3f73c094610987a56b70dea1d550e20c83172ea4 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Wed, 5 Jun 2024 16:38:18 +0100 Subject: [PATCH] Update supported python versions --- .github/workflows/test_and_deploy.yml | 16 ++++++++-------- pyproject.toml | 10 +++++----- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index a6af755..f362266 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -29,16 +29,16 @@ jobs: strategy: matrix: # Run all supported Python versions on linux - python-version: ["3.9", "3.10", "3.11"] os: [ubuntu-latest] - # Include one windows and macos run + python-version: ["3.10", "3.11", "3.12"] + # Include one windows and two macOS (intel based and arm based) runs include: - - os: macos-13 # Intel Mac - python-version: "3.11" - - os: macos-latest # ARM Mac - python-version: "3.11" - - os: windows-latest - python-version: "3.11" + - os: macos-13 + python-version: "3.12" + - os: macos-latest + python-version: "3.12" + - os: windows-latest + python-version: "3.12" steps: - name: Set up Python ${{ matrix.python-version }} diff --git a/pyproject.toml b/pyproject.toml index abfeb36..0299499 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ authors = [{ name = "Adam Tyson", email = "code@adamltyson.com" }] description = "Shared general purpose tools for the BrainGlobe project" readme = "README.md" license = { file = "LICENSE" } -requires-python = ">=3.9.0" +requires-python = ">=3.10" classifiers = [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", @@ -12,9 +12,9 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", ] dependencies = [ "brainglobe-atlasapi >= 2.0.1", @@ -98,7 +98,7 @@ filterwarnings = [ ] [tool.black] -target-version = ['py39', 'py310', 'py311'] +target-version = ['py310','py311', 'py312'] skip-string-normalization = false line-length = 79 @@ -123,14 +123,14 @@ ignore_errors = true [tool.tox] legacy_tox_ini = """ [tox] -envlist = py{39,310,311} +envlist = py{310,311,312} isolated_build = True [gh-actions] python = - 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312 [testenv] extras =