Skip to content

Commit 8428628

Browse files
committed
no more requirements
1 parent 7c58e3d commit 8428628

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -f .installed ]
88
python3 -m pip install --user virtualenv --break-system-packages
99
python3 -m venv venv
1010
source venv/bin/activate
11-
pip3 install --upgrade -r requirements.txt
11+
python3 -m pip install -e ".[dev]"
1212
if [ $? -eq 0 ]
1313
then
1414
touch .installed

setup.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ else
2525
fi
2626

2727
# Install dependencies
28-
"$PY" -m pip install -U pip
29-
"$PY" -m pip install -r requirements.txt
28+
"$PY" -m pip install -U pip setuptools wheel
29+
"$PY" -m pip install -e ".[dev]"
3030

31-
echo "setup.sh complete."
31+
echo "setup.sh complete."

src/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import asyncio
2-
import sys
32

43
from viam.module.module import Module
54
from viam.components.camera import Camera

src/models/image_dir.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from typing import ClassVar, Mapping, Sequence, Any, Dict, Optional, Tuple, Final, List, cast
1+
from typing import ClassVar, Mapping, Any, Dict, Optional, Tuple, List
22
from typing_extensions import Self
33

4-
from typing import Any, Dict, Final, List, NamedTuple, Optional, Tuple, Union
4+
from typing import NamedTuple
55

66
from PIL import Image
77

@@ -19,10 +19,9 @@
1919
from viam.media.utils.pil import pil_to_viam_image, CameraMimeType
2020

2121
from viam.logging import getLogger
22-
from viam.errors import ViamError, NotSupportedError
22+
from viam.errors import ViamError
2323

2424
import os
25-
import io
2625
from datetime import datetime, timezone
2726

2827
import re
@@ -124,7 +123,7 @@ async def get_image(
124123
# Wrap around if we've gone past the end
125124
if image_index > max_index:
126125
image_index = 0
127-
LOGGER.info(f"Reached end of directory, wrapping to index 0")
126+
LOGGER.info("Reached end of directory, wrapping to index 0")
128127

129128
file_path = self._get_file_path(requested_dir, image_index, ext)
130129
if not os.path.isfile(file_path):

0 commit comments

Comments
 (0)