From 989f47a66ca2aad6c1fc48a49eef2207e09ccda0 Mon Sep 17 00:00:00 2001 From: David Stansby Date: Tue, 3 Oct 2023 10:41:28 +0200 Subject: [PATCH] Test on Python 3.11 (#49) * Use composite test action Fix use-xvfb argument * Clean tox.ini * Don't fail fast * Remove old setup steps * Clean up dev dependencies Add pyqt5 back as a dev dep * Try passing display env Put back passenv in tox * Test on Python 3.11 * Update Python versions --------- Co-authored-by: Adam Tyson --- .github/workflows/test_and_deploy.yml | 9 ++++----- pyproject.toml | 6 +++--- tox.ini | 1 - 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index 9f7040e..e074cd4 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -27,15 +27,14 @@ jobs: strategy: fail-fast: false matrix: - # Run all supported Python versions on linux - python-version: ["3.8", "3.9", "3.10"] - os: [ubuntu-latest] - # Test on Windows and macOS on only one OS to save time (and CI minutes) + # Run across a mixture of Python versions and operating systems include: + - os: ubuntu-latest + python-version: "3.11" - os: macos-latest python-version: "3.10" - os: windows-latest - python-version: "3.10" + python-version: "3.9" steps: - uses: tlambert03/setup-qt-libs@v1 diff --git a/pyproject.toml b/pyproject.toml index b34fd5e..522c2bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ name = "brainreg-napari" authors = [{name = "Adam Tyson, Stephen Lenzi", email= "code@adamltyson.com"}] description = "Multi-atlas whole-brain microscopy registration" readme = "README.md" -requires-python = ">=3.8.0" +requires-python = ">=3.9.0" dynamic = ["version"] classifiers = [ "Development Status :: 4 - Beta", @@ -13,9 +13,9 @@ classifiers = [ "Intended Audience :: Science/Research", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Operating System :: OS Independent", ] @@ -67,7 +67,7 @@ build-backend = "setuptools.build_meta" [tool.setuptools_scm] [tool.black] -target-version = ['py38', 'py39', 'py310'] +target-version = ['py39', 'py310', 'py311'] skip-string-normalization = false line-length = 79 diff --git a/tox.ini b/tox.ini index 3cd2423..f109d21 100644 --- a/tox.ini +++ b/tox.ini @@ -5,7 +5,6 @@ isolated_build = True [gh-actions] python = - 3.8: py38 3.9: py39 3.10: py310 3.11: py311