Repository: czbiohub-sf/yogo (language: python)

Issue:
yogo needs python >= 3.9, not >= 3.8
Get this with python 3.8:

> (yogo_env) paul.lebel@MacBook-Pro yogo % yogo infer --help
> Traceback (most recent call last):
>   File "/Users/paul.lebel/Documents/python_envs/yogo_env/bin/yogo", line 8, in <module>
>     sys.exit(main())
>   File "/Users/paul.lebel/Documents/GitHub/yogo/yogo/__main__.py", line 19, in main
>     p = global_parser()
>   File "/Users/paul.lebel/Documents/GitHub/yogo/yogo/utils/argparsers.py", line 84, in global_parser
>     test_parser(
>   File "/Users/paul.lebel/Documents/GitHub/yogo/yogo/utils/argparsers.py", line 263, in test_parser
>     action=argparse.BooleanOptionalAction,
> AttributeError: module 'argparse' has no attribute 'BooleanOptionalAction'

https://nono.ma/attribute-error-module-argparse-has-no-attribute-boolean-optional-action



Discussion / hints:
Thanks for the report. I'm going to double check what version of python michelle and ilakkiyan are running on bruno, will likely bump up the python ver. Thanks!

Fix patch:
diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml
index aee8075c..27cbf4dd 100644
--- a/.github/workflows/black.yml
+++ b/.github/workflows/black.yml
@@ -9,7 +9,7 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-python@v5
         with:
-          python-version: '3.8'
+          python-version: '3.10'
           architecture: x64
       - uses: psf/black@stable
         with:
diff --git a/.github/workflows/type-checking.yml b/.github/workflows/type-checking.yml
index 69befca4..f0a1db4e 100644
--- a/.github/workflows/type-checking.yml
+++ b/.github/workflows/type-checking.yml
@@ -9,7 +9,7 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-python@v5
         with:
-          python-version: '3.8'
+          python-version: '3.10'
       - name: install checking requirements
         run: |
           pip install --upgrade pip
diff --git a/pyproject.toml b/pyproject.toml
index 76906c53..f6890250 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -8,7 +8,7 @@ keywords = ["object detection", "YOGO", "YOLO", "deep learning", "PyTorch"]
 license = "BSD-3-Clause"
 
 [tool.poetry.dependencies]
-python = ">=3.8,<3.11"
+python = ">=3.9,<3.11"
 zarr = ">=2.14"
 torch = ">=1.13.1"
 torchmetrics = { version = ">=0.11.4", extras = ["detection"] }


Test patch:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 634673b3..c93c0e62 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -9,7 +9,7 @@ jobs:
       - uses: actions/checkout@v4
       - uses: actions/setup-python@v5
         with:
-          python-version: '3.8'
+          python-version: '3.10'
       - name: install checking requirements
         run: |
           pip install --upgrade pip