diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index e9af851c..12e74d3d 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -44,15 +44,15 @@ jobs: matrix: # Run all supported Python versions on linux os: [ubuntu-latest] - python-version: ["3.9", "3.10", "3.11"] + python-version: ["3.10", "3.11", "3.12"] # Include one windows and two macOS (intel based and arm based) runs include: - os: macos-13 - python-version: "3.11" + python-version: "3.12" - os: macos-latest - python-version: "3.11" + python-version: "3.12" - os: windows-latest - python-version: "3.11" + python-version: "3.12" steps: - name: Cache brainglobe directory @@ -98,7 +98,7 @@ jobs: # Run test suite with numba disabled - uses: neuroinformatics-unit/actions/test@v2 with: - python-version: "3.11" + python-version: "3.12" secret-codecov-token: ${{ secrets.CODECOV_TOKEN }} codecov-flags: "numba" @@ -125,10 +125,10 @@ jobs: with: repository: 'brainglobe/brainglobe-workflows' - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v3 with: - python-version: "3.11" + python-version: "3.12" - name: Install test dependencies run: | diff --git a/.github/workflows/test_include_guard.yaml b/.github/workflows/test_include_guard.yaml index a1bb8e79..b84f0e20 100644 --- a/.github/workflows/test_include_guard.yaml +++ b/.github/workflows/test_include_guard.yaml @@ -22,7 +22,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.11' + python-version: '3.12' - name: Install cellfinder via pip run: python -m pip install -e "." diff --git a/pyproject.toml b/pyproject.toml index 6f03d98d..5ff9e92c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,12 +14,12 @@ 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", "Topic :: Scientific/Engineering :: Image Recognition", ] -requires-python = ">=3.9" +requires-python = ">=3.10" dependencies = [ "brainglobe-utils>=0.5.0", "brainglobe-napari-io>=0.3.4", @@ -79,7 +79,7 @@ requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.2"] build-backend = 'setuptools.build_meta' [tool.black] -target-version = ['py39', 'py310','py311'] +target-version = ['py310','py311', 'py312'] skip-string-normalization = false line-length = 79 @@ -111,14 +111,14 @@ markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"] legacy_tox_ini = """ # For more information about tox, see https://tox.readthedocs.io/en/latest/ [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] commands = python -m pytest -v --color=yes --cov=cellfinder --cov-report=xml