From f25383431ca90355ba71fea0c2487b18486d9f14 Mon Sep 17 00:00:00 2001 From: pieterlukasse Date: Fri, 3 Nov 2023 16:56:00 +0100 Subject: [PATCH 1/2] feat: upgrade python version to 3.10 in .toml file --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 8979576..878e4b3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["UchicagoZchen138 "] repository = "https://github.com/uc-cdis/argo-wrapper" [tool.poetry.dependencies] -python = "^3.8" +python = "^3.10" fastapi = "^0.71.0" uvicorn = "^0.16.0" gunicorn = "^20.0.4" From e9c6c80cc541fbfce18e7fc60a68f5336d47cd83 Mon Sep 17 00:00:00 2001 From: pieterlukasse Date: Fri, 3 Nov 2023 17:26:19 +0100 Subject: [PATCH 2/2] feat: set python version to 3.9 --- .github/workflows/ci.yaml | 4 ++-- .github/workflows/lint.yaml | 4 ++-- .github/workflows/test_coverage.yaml | 4 ++-- pyproject.toml | 2 +- src/argowrapper/routes/routes.py | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 497ab3d..9b95418 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,10 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Set up Python 3.10 + - name: Set up Python 3.9 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.9' - uses: actions/cache@preview with: path: ~/.cache/pypoetry/virtualenvs diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 15a4ee3..9ecca6d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -9,10 +9,10 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Set up Python 3.10 + - name: Set up Python 3.9 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.9' - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/test_coverage.yaml b/.github/workflows/test_coverage.yaml index 164e3ca..4e9fd2f 100644 --- a/.github/workflows/test_coverage.yaml +++ b/.github/workflows/test_coverage.yaml @@ -8,10 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - name: Set up Python 3.10 + - name: Set up Python 3.9 uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.9' - name: Install dependencies run: | diff --git a/pyproject.toml b/pyproject.toml index 878e4b3..fb75dde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,7 +6,7 @@ authors = ["UchicagoZchen138 "] repository = "https://github.com/uc-cdis/argo-wrapper" [tool.poetry.dependencies] -python = "^3.10" +python = "^3.9" fastapi = "^0.71.0" uvicorn = "^0.16.0" gunicorn = "^20.0.4" diff --git a/src/argowrapper/routes/routes.py b/src/argowrapper/routes/routes.py index d43d7b3..fb03e7b 100644 --- a/src/argowrapper/routes/routes.py +++ b/src/argowrapper/routes/routes.py @@ -1,6 +1,6 @@ import traceback from functools import wraps -from typing import Dict, List, Any +from typing import Dict, List, Any, Optional from fastapi import APIRouter, Request, Query from fastapi.responses import HTMLResponse @@ -231,7 +231,7 @@ def cancel_workflow( @check_auth_and_optional_team_projects def get_workflows( request: Request, # pylint: disable=unused-argument - team_projects: List[str] | None = Query(default=None), + team_projects: Optional[List[str]] = Query(default=None), ) -> List[str]: """returns the list of workflows the user has ran"""