From 040ab92fde439fae9aef047c8d5c06d56e8875c2 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Tue, 8 Oct 2024 14:46:00 +0200 Subject: [PATCH] [MAINT] Drop python 3.8 and support 3.13 (#646) * drop python 3.8 and support 3.13 * support prerelease * fix --- .github/workflows/pull-request.yml | 3 ++- .github/workflows/type_checks.yml | 3 ++- pyproject.toml | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 50dc06f7..2bc63178 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-22.04 strategy: matrix: - python-version: ['3.12', '3.11', '3.10', '3.9', '3.8'] + python-version: ['3.13', '3.12', '3.11', '3.10', '3.9'] fail-fast: false steps: - name: Install Apptainer @@ -36,6 +36,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install neurodocker run: python -m pip install --editable .[dev] - name: Run python tests diff --git a/.github/workflows/type_checks.yml b/.github/workflows/type_checks.yml index f325bb8e..dd9feeb2 100644 --- a/.github/workflows/type_checks.yml +++ b/.github/workflows/type_checks.yml @@ -19,7 +19,7 @@ jobs: strategy: matrix: - python-version: ['3.12', '3.11', '3.10', '3.9', '3.8'] + python-version: ['3.13', '3.12', '3.11', '3.10', '3.9'] steps: - uses: actions/checkout@v4 @@ -28,6 +28,7 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} + allow-prereleases: true - name: Install neurodocker run: python -m pip install . mypy diff --git a/pyproject.toml b/pyproject.toml index 43eaa8f2..de958264 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,11 +13,11 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "Topic :: Software Development", "Topic :: Software Development :: Libraries :: Python Modules" ] @@ -36,7 +36,7 @@ license = {text = "Apache License, 2.0"} maintainers = [{name = "Jakub Kaczmarzyk", email = "jakub.kaczmarzyk@gmail.com"}] name = "neurodocker" readme = "README.md" -requires-python = ">=3.8" +requires-python = ">=3.9" [project.optional-dependencies] all = ["neurodocker[minify,dev,doc]"] @@ -68,7 +68,7 @@ Homepage = "https://www.repronim.org/neurodocker/" [tool.black] line-length = 88 -target-version = ['py38'] +target-version = ['py39'] [tool.codespell] # didi -- some name Dear to someone