Skip to content

Commit ba1bca0

Browse files
Narek MkhitaryanNarek Mkhitaryan
authored andcommitted
requirements upgrade
1 parent 5e21d9d commit ba1bca0

File tree

8 files changed

+65
-74
lines changed

8 files changed

+65
-74
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ History
77
All release highlights of this project will be documented in this file.
88

99
4.4.12 - April 23, 2023
10-
______________________
10+
_______________________
1111

1212
**Updated**
1313

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ minversion = 3.7
33
log_cli=true
44
python_files = test_*.py
55
;pytest_plugins = ['pytest_profiling']
6-
addopts = -n auto --dist=loadscope
6+
;addopts = -n auto --dist=loadscope
77

requirements.txt

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
pydicom>=2.0.0
2-
boto3>=1.14.53
1+
pydantic~=1.10
2+
aiohttp~=3.8
3+
boto3~=1.26
4+
opencv-python~=4.7
5+
packaging~=23.1
6+
plotly~=5.14
7+
email-validator~=2.0
8+
pandas~=1.3
9+
ffmpeg-python~=0.2
10+
pillow~=9.5
11+
aiofiles==0.8.0
312
requests==2.28.2
4-
requests-toolbelt>=0.9.1
5-
aiohttp>=3.8.1
613
tqdm==4.64.0
7-
pillow==9.4.0
8-
matplotlib>=3.3.1
9-
xmltodict==0.12.0
10-
opencv-python>=4.4.0.42
11-
wheel>=0.40.0
12-
packaging>=20.4
13-
plotly>=4.1.0
14-
ffmpeg-python>=0.2.0
1514
fire==0.4.0
1615
mixpanel==4.8.3
17-
pydantic>=1.10.7
18-
setuptools>=57.4.0
19-
email-validator>=1.0.3
2016
jsonschema==3.2.0
21-
pandas>=1.1.4
22-
aiofiles==0.8.0

requirements_extra.txt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
setuptools~=67.7
2+
wheel~=0.40
13
Sphinx==6.2.1
2-
Jinja2==3.1.2
3-
tox==4.4.5
4+
tox==4.5.1
45
sphinx_rtd_theme==1.2.0
5-
furo==2022.12.7
6-
jaraco.tidelift==1.5.0
6+
furo==2023.3.27
7+
jaraco.tidelift==1.5.1
78
sphinx-notfound-page==0.8.3
8-
sphinx_inline_tabs==2022.1.2b11
9-
pytest==7.2.1
10-
pytest-xdist==3.2.0
9+
sphinx_inline_tabs==2023.4.21
10+
pytest==7.3.1
11+
pytest-xdist==3.2.1
1112
pytest-parallel==0.1.1
1213
pytest-cov==4.0.0
13-
pytest-rerunfailures==10.2
14+
pytest-rerunfailures==11.1.2

src/superannotate/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
import os
33
import sys
4-
import typing
54

65
__version__ = "4.4.12"
76

src/superannotate/lib/app/interface/cli_interface.py

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ def version():
2929

3030
@staticmethod
3131
def init(
32-
token: str,
33-
logging_level: str = "INFO",
34-
logging_path: str = constances.LOG_FILE_LOCATION,
32+
token: str,
33+
logging_level: str = "INFO",
34+
logging_path: str = constances.LOG_FILE_LOCATION,
3535
):
3636
"""
3737
To initialize CLI (and SDK) with team token
@@ -53,7 +53,7 @@ def init(
5353
if Path(constances.CONFIG_INI_FILE_LOCATION).exists():
5454
operation = "updated"
5555
if not input(
56-
f"File {constances.CONFIG_INI_FILE_LOCATION} exists. Do you want to overwrite? [y/n] : "
56+
f"File {constances.CONFIG_INI_FILE_LOCATION} exists. Do you want to overwrite? [y/n] : "
5757
).lower() in ("y", "yes"):
5858
return
5959
else:
@@ -84,14 +84,14 @@ def create_folder(self, project: str, name: str):
8484
sys.exit(0)
8585

8686
def upload_images(
87-
self,
88-
project: str,
89-
folder: str,
90-
extensions: str = constances.DEFAULT_IMAGE_EXTENSIONS,
91-
set_annotation_status: str = constances.AnnotationStatus.NOT_STARTED.name,
92-
exclude_file_patterns=constances.DEFAULT_FILE_EXCLUDE_PATTERNS,
93-
recursive_subfolders=False,
94-
image_quality_in_editor=None,
87+
self,
88+
project: str,
89+
folder: str,
90+
extensions: str = constances.DEFAULT_IMAGE_EXTENSIONS,
91+
set_annotation_status: str = constances.AnnotationStatus.NOT_STARTED.name,
92+
exclude_file_patterns=constances.DEFAULT_FILE_EXCLUDE_PATTERNS,
93+
recursive_subfolders=False,
94+
image_quality_in_editor=None,
9595
):
9696
"""
9797
To upload images from folder to project use:
@@ -115,12 +115,12 @@ def upload_images(
115115
sys.exit(0)
116116

117117
def export_project(
118-
self,
119-
project,
120-
folder,
121-
include_fuse=False,
122-
disable_extract_zip_contents=False,
123-
annotation_statuses=None,
118+
self,
119+
project,
120+
folder,
121+
include_fuse=False,
122+
disable_extract_zip_contents=False,
123+
annotation_statuses=None,
124124
):
125125
project_name, folder_name = split_project_path(project)
126126
folders = None
@@ -146,7 +146,7 @@ def export_project(
146146
sys.exit(0)
147147

148148
def upload_annotations(
149-
self, project, folder, dataset_name=None, task=None, format=None
149+
self, project, folder, dataset_name=None, task=None, format=None
150150
):
151151
"""
152152
To upload annotations from folder to project use
@@ -196,10 +196,10 @@ def _upload_annotations(self, project, folder, format, dataset_name, task):
196196
sys.exit(0)
197197

198198
def attach_image_urls(
199-
self,
200-
project: str,
201-
attachments: str,
202-
annotation_status: Optional[Any] = "NotStarted",
199+
self,
200+
project: str,
201+
attachments: str,
202+
annotation_status: Optional[Any] = "NotStarted",
203203
):
204204
"""
205205
To attach image URLs to project use:
@@ -213,10 +213,10 @@ def attach_image_urls(
213213
sys.exit(0)
214214

215215
def attach_video_urls(
216-
self,
217-
project: str,
218-
attachments: str,
219-
annotation_status: Optional[Any] = "NotStarted",
216+
self,
217+
project: str,
218+
attachments: str,
219+
annotation_status: Optional[Any] = "NotStarted",
220220
):
221221
SAClient().attach_items(
222222
project=project,
@@ -227,7 +227,7 @@ def attach_video_urls(
227227

228228
@staticmethod
229229
def attach_document_urls(
230-
project: str, attachments: str, annotation_status: Optional[Any] = "NotStarted"
230+
project: str, attachments: str, annotation_status: Optional[Any] = "NotStarted"
231231
):
232232
SAClient().attach_items(
233233
project=project,
@@ -237,15 +237,15 @@ def attach_document_urls(
237237
sys.exit(0)
238238

239239
def upload_videos(
240-
self,
241-
project,
242-
folder,
243-
target_fps=None,
244-
recursive=False,
245-
extensions=constances.DEFAULT_VIDEO_EXTENSIONS,
246-
set_annotation_status=constances.AnnotationStatus.NOT_STARTED.name,
247-
start_time=0.0,
248-
end_time=None,
240+
self,
241+
project,
242+
folder,
243+
target_fps=None,
244+
recursive=False,
245+
extensions=constances.DEFAULT_VIDEO_EXTENSIONS,
246+
set_annotation_status=constances.AnnotationStatus.NOT_STARTED.name,
247+
start_time=0.0,
248+
end_time=None,
249249
):
250250
"""
251251
To upload videos from folder to project use

tests/integration/test_cli.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,6 @@ def test_attach_document_urls(self):
199199
)
200200
self.assertEqual(3, len(sa.search_items(self.PROJECT_NAME)))
201201

202-
def test_create_server(self):
203-
with tempfile.TemporaryDirectory() as temp_dir:
204-
self._cli.create_server("test", temp_dir)
205-
# self._cli.create_server('testo', '/Users/vaghinak.basentsyan/www/for_fun')
206-
assert (Path(temp_dir) / "test" / "app.py").exists()
207-
assert (Path(temp_dir) / "test" / "wsgi.py").exists()
208-
209202
def test_init(self):
210203
_token = "asd=123"
211204
with tempfile.TemporaryDirectory() as config_dir:

tests/unit/test_classes_serialization.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ def test_empty_multiselect_bool_serializer(self):
5050
annotation_class = AnnotationClassEntity(
5151
name="asd",
5252
color="blue",
53-
attribute_groups=[AttributeGroup(name="sad", is_multiselect="True")], # noqa
53+
attribute_groups=[
54+
AttributeGroup(name="sad", is_multiselect="True")
55+
], # noqa
5456
)
5557
serializer_data = json.loads(json.dumps(annotation_class, cls=PydanticEncoder))
5658
assert {
@@ -66,7 +68,9 @@ def test_group_type_wrong_arg(self):
6668
name="asd",
6769
color="blue",
6870
attribute_groups=[
69-
AttributeGroup(name="sad", is_multiselect=True, group_type="asd") # noqa
71+
AttributeGroup(
72+
name="sad", is_multiselect=True, group_type="asd"
73+
) # noqa
7074
],
7175
)
7276
except ValidationError as e:

0 commit comments

Comments
 (0)