Skip to content

Commit

Permalink
Update supported Python versions (#309)
Browse files Browse the repository at this point in the history
* Update supported Python versions

* ignore deprecation warning
  • Loading branch information
adamltyson authored Jun 6, 2024
1 parent 1a72b02 commit cf9b7ae
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 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 @@ -26,16 +26,17 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
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.11"
- 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 atlases
Expand Down
20 changes: 13 additions & 7 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.11",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
requires-python = ">=3.10"
dependencies = [
"brainglobe-space >= 1.0.0",
"click",
Expand Down Expand Up @@ -78,11 +79,16 @@ exclude = ["tests*"]

[tool.pytest.ini_options]
addopts = "--cov=brainglobe_atlasapi"
filterwarnings = ["error"]
filterwarnings = [
"error",
"ignore::UserWarning",
# note the use of single quote below to denote "raw" strings in TOML
'ignore: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior',
]
markers = ["slow: marks tests as slow (deselect with '-m \"not slow\"')"]

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

Expand All @@ -99,13 +105,13 @@ select = ["I", "E", "F"]
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py{39,310,311}
envlist = py{310,311,312}
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[testenv]
extras =
Expand Down

0 comments on commit cf9b7ae

Please sign in to comment.