Skip to content

Commit

Permalink
update supported python versions (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson authored Jun 5, 2024
1 parent a6ebcd4 commit 7d3864e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 7 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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

Expand All @@ -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 =
Expand Down

0 comments on commit 7d3864e

Please sign in to comment.