From f888fc935a8d0aeb7837f31a7cd5dd786c5539c3 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Thu, 23 Feb 2023 12:12:55 +0100 Subject: [PATCH] Require python >=3.8 --- .github/workflows/main.yml | 2 +- plugins/auth/pyproject.toml | 2 +- plugins/auth_base/pyproject.toml | 2 +- plugins/auth_fief/pyproject.toml | 2 +- plugins/contents/pyproject.toml | 2 +- plugins/frontend/pyproject.toml | 2 +- plugins/jupyterlab/pyproject.toml | 2 +- plugins/kernels/pyproject.toml | 2 +- plugins/lab/pyproject.toml | 2 +- plugins/login/pyproject.toml | 2 +- plugins/nbconvert/pyproject.toml | 2 +- plugins/noauth/pyproject.toml | 2 +- plugins/resource_usage/pyproject.toml | 2 +- plugins/retrolab/pyproject.toml | 2 +- plugins/terminals/pyproject.toml | 2 +- plugins/yjs/pyproject.toml | 2 +- pyproject.toml | 2 +- tests/test_settings.py | 5 ----- 18 files changed, 17 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d08f86c9..cdddfd65 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,7 +20,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [ '3.7', '3.8', '3.9', '3.10' ] + python-version: [ '3.8', '3.9', '3.10', '3.11' ] steps: - name: Checkout diff --git a/plugins/auth/pyproject.toml b/plugins/auth/pyproject.toml index 1a18aade..be75444e 100644 --- a/plugins/auth/pyproject.toml +++ b/plugins/auth/pyproject.toml @@ -7,7 +7,7 @@ name = "fps_auth" description = "An FPS plugin for the authentication API" keywords = ["jupyter", "server", "fastapi", "pluggy", "plugins"] dynamic = ["version"] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps[uvicorn] >=0.0.17", "fps-lab", diff --git a/plugins/auth_base/pyproject.toml b/plugins/auth_base/pyproject.toml index 02f6fb61..3f063ca4 100644 --- a/plugins/auth_base/pyproject.toml +++ b/plugins/auth_base/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_auth_base" description = "An FPS plugin for the authentication API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = ["fps >=0.0.17"] dynamic = [ "version",] diff --git a/plugins/auth_fief/pyproject.toml b/plugins/auth_fief/pyproject.toml index 8f1d9189..7ed0d773 100644 --- a/plugins/auth_fief/pyproject.toml +++ b/plugins/auth_fief/pyproject.toml @@ -7,7 +7,7 @@ name = "fps_auth_fief" description = "An FPS plugin for the authentication API, using Fief" keywords = ["jupyter", "server", "fastapi", "pluggy", "plugins"] dynamic = ["version"] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fief-client[fastapi]", "fps >=0.0.8" diff --git a/plugins/contents/pyproject.toml b/plugins/contents/pyproject.toml index cc7e568d..6251e8aa 100644 --- a/plugins/contents/pyproject.toml +++ b/plugins/contents/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_contents" description = "An FPS plugin for the contents API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "fps-auth-base", "anyio", "watchfiles >=0.16.1,<1", "aiosqlite >=0.17.0,<1", "anyio>=3.6.2,<4"] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/frontend/pyproject.toml b/plugins/frontend/pyproject.toml index e327017d..04d8965d 100644 --- a/plugins/frontend/pyproject.toml +++ b/plugins/frontend/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_frontend" description = "An FPS plugin for the frontend related configuration" keywords = ["fastapi", "pluggy", "plugins", "fps"] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = ["fps>=0.0.8"] dynamic = ["version"] diff --git a/plugins/jupyterlab/pyproject.toml b/plugins/jupyterlab/pyproject.toml index 67facc0a..a2f1dd5c 100644 --- a/plugins/jupyterlab/pyproject.toml +++ b/plugins/jupyterlab/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_jupyterlab" description = "An FPS plugin for the JupyterLab API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "fps-auth-base", "fps-frontend", "fps-lab", "jupyterlab >=4.0.0a27",] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/kernels/pyproject.toml b/plugins/kernels/pyproject.toml index d455f94e..4a782399 100644 --- a/plugins/kernels/pyproject.toml +++ b/plugins/kernels/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_kernels" description = "An FPS plugin for the kernels API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "fps-auth-base", "fps-frontend", "fps-yjs", "pyzmq", "websockets", "python-dateutil", "watchfiles >=0.16.1,<1"] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/lab/pyproject.toml b/plugins/lab/pyproject.toml index e6982c81..5d003a4b 100644 --- a/plugins/lab/pyproject.toml +++ b/plugins/lab/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_lab" description = "An FPS plugin for the JupyterLab/RetroLab API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "fps-auth-base", "fps-frontend", "babel", "json5",] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/login/pyproject.toml b/plugins/login/pyproject.toml index 1015f5a2..d64ece00 100644 --- a/plugins/login/pyproject.toml +++ b/plugins/login/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_login" description = "An FPS plugin for the login API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8",] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/nbconvert/pyproject.toml b/plugins/nbconvert/pyproject.toml index 74da3067..cff59a7a 100644 --- a/plugins/nbconvert/pyproject.toml +++ b/plugins/nbconvert/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_nbconvert" description = "An FPS plugin for the nbconvert API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "fps-auth-base", "nbconvert",] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/noauth/pyproject.toml b/plugins/noauth/pyproject.toml index cc5c2ef3..cd428f5d 100644 --- a/plugins/noauth/pyproject.toml +++ b/plugins/noauth/pyproject.toml @@ -7,7 +7,7 @@ name = "fps_noauth" description = "An FPS plugin for an unprotected API" keywords = ["jupyter", "server", "fastapi", "pluggy", "plugins"] dynamic = ["version"] -requires-python = ">=3.7" +requires-python = ">=3.8" [[project.authors]] name = "Jupyter Development Team" diff --git a/plugins/resource_usage/pyproject.toml b/plugins/resource_usage/pyproject.toml index afd6c18b..24cbb81d 100644 --- a/plugins/resource_usage/pyproject.toml +++ b/plugins/resource_usage/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_resource_usage" description = "An FPS plugin for the resource usage API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "psutil >=5.9.4", "anyio >=3.6.2", ] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/retrolab/pyproject.toml b/plugins/retrolab/pyproject.toml index f2b76353..38ad5ac2 100644 --- a/plugins/retrolab/pyproject.toml +++ b/plugins/retrolab/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_retrolab" description = "An FPS plugin for the RetroLab API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "fps-auth-base", "fps-frontend", "fps-lab", "retrolab",] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/terminals/pyproject.toml b/plugins/terminals/pyproject.toml index 4ecabb20..18624265 100644 --- a/plugins/terminals/pyproject.toml +++ b/plugins/terminals/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_terminals" description = "An FPS plugin for the terminals API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "fps-auth-base", "websockets", "pywinpty;platform_system=='Windows'",] dynamic = [ "version",] [[project.authors]] diff --git a/plugins/yjs/pyproject.toml b/plugins/yjs/pyproject.toml index 2b69ed77..a4c247b3 100644 --- a/plugins/yjs/pyproject.toml +++ b/plugins/yjs/pyproject.toml @@ -6,7 +6,7 @@ build-backend = "hatchling.build" name = "fps_yjs" description = "An FPS plugin for the Yjs API" keywords = [ "jupyter", "server", "fastapi", "pluggy", "plugins",] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fps >=0.0.8", "fps-auth-base", diff --git a/pyproject.toml b/pyproject.toml index cf845c70..52350d19 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ name = "jupyverse" description = "A set of FPS plugins implementing a Jupyter server" keywords = ["jupyter", "server", "fastapi", "pluggy", "plugins"] dynamic = ["version"] -requires-python = ">=3.7" +requires-python = ">=3.8" dependencies = [ "fastapi>=0.87.0", "fps>=0.0.21", diff --git a/tests/test_settings.py b/tests/test_settings.py index 8742caf2..fd21f92c 100644 --- a/tests/test_settings.py +++ b/tests/test_settings.py @@ -1,5 +1,4 @@ import json -import sys import pytest @@ -7,10 +6,6 @@ @pytest.mark.parametrize("auth_mode", ("noauth",)) -@pytest.mark.skipif( - sys.platform.startswith(("linux", "darwin")) and sys.version_info < (3, 8), - reason="pytest-asyncio issue", -) def test_settings(client): # get previous theme response = client.get("/lab/api/settings/@jupyterlab/apputils-extension:themes")