Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update supported Python versions #436

Merged
merged 1 commit into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"

Expand All @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_include_guard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "."
Expand Down
10 changes: 5 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
Loading