Skip to content

Commit

Permalink
Update dependencies & supported Python versions (#56)
Browse files Browse the repository at this point in the history
* Update pyproject.toml

* Update test_and_deploy.yml

* Update pyproject.toml

* Update test_and_deploy.yml
  • Loading branch information
adamltyson authored Jun 5, 2024
1 parent 476d477 commit 21aabdc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ jobs:
strategy:
matrix:
# Run all supported Python versions on linux
python-version: ["3.9", "3.10"]
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest]
# Include one windows and macos run
include:
- os: macos-13 # Intel Mac
python-version: "3.10"
python-version: "3.12"
- os: macos-latest # ARM Mac
python-version: "3.10"
python-version: "3.12"
- os: windows-latest
python-version: "3.10"
python-version: "3.12"

steps:
# Run tests
Expand Down
18 changes: 10 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "brainglobe"
authors = [{ name = "BrainGlobe Developers", email = "[email protected]" }]
description = "Python-based tools for computational neuroanatomy."
readme = "README.md"
requires-python = ">=3.9.0"
requires-python = ">=3.10.0"
dynamic = ["version"]

license = { text = "BSD-3-Clause" }
Expand All @@ -12,23 +12,24 @@ classifiers = [
"Development Status :: 2 - Pre-Alpha",
"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",
"Operating System :: OS Independent",
"License :: OSI Approved :: BSD License",
]

dependencies = [
"brainglobe-atlasapi>=2.0.6,<3",
"brainglobe-heatmap>=0.5.2,<1",
"brainglobe-heatmap>=0.5.3,<1",
"brainglobe-napari-io>=0.3.4,<1",
"brainglobe-segmentation>=1.2.3,<2",
"brainglobe-segmentation>=1.2.4,<2",
"brainglobe-space>=1.0.2,<2",
"brainglobe-utils>=0.5.0,<1",
"brainreg[napari]>=1.0.9,<2",
"brainrender-napari>=0.0.3,<1",
"brainrender>=2.1.9,<3",
"cellfinder[napari]>=1.2.0,<2",
"cellfinder[napari]>=1.3.0,<2",
"napari[all]",
# brainglobe-napari [WIP],
]
Expand Down Expand Up @@ -69,7 +70,7 @@ exclude = ["tests*"]
addopts = "--cov=brainglobe"

[tool.black]
target-version = ['py39', 'py310']
target-version = ['py310', 'py311', 'py312']
skip-string-normalization = false
line-length = 79

Expand All @@ -93,13 +94,14 @@ fix = true
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{39,310}
envlist = py{39,310,311}
isolated_build = True
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
extras =
Expand Down

0 comments on commit 21aabdc

Please sign in to comment.