diff --git a/docs/requirements.txt b/docs/requirements.txt index b1c3d39d..3ffe7dad 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -5,7 +5,7 @@ numpy>=1.21.6 Pillow==10.3.0 pyautogui==0.9.54 pyperclip==1.8.2 -pytesseract==0.3.10 +pytesseract>=0.3.13 pytest==7.2.2 hdbscan==0.8.40 python_Levenshtein==0.20.9 @@ -13,5 +13,5 @@ colorama==0.4.6 opencv-python==4.10.0.84 mss==9.0.1 qat==1.1.2 -pyyaml==5.4.1 +pyyaml>=5.4.1 pyscreeze==0.1.21 \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 2da11522..d0277a4b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,6 @@ readme = "README.md" requires-python = ">=3.9" classifiers = [ "Programming Language :: Python :: 3", - "License :: OSI Approved :: MIT License", ] dependencies = [ 'pyautogui', diff --git a/requirements.txt b/requirements.txt index 7e714278..dc94e920 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,7 @@ numpy>=1.21.6 Pillow==10.3.0 pyautogui==0.9.54 pyperclip==1.8.2 -pytesseract==0.3.10 +pytesseract>=0.3.13 pytest==7.2.2 hdbscan==0.8.40 python_Levenshtein==0.20.9 @@ -10,5 +10,5 @@ colorama==0.4.6 opencv-python==4.10.0.84 mss==9.0.1 qat==1.1.2 -pyyaml==5.3.1 +pyyaml>=5.4 pyscreeze==0.1.21 \ No newline at end of file diff --git a/tests/find/gen.py b/tests/find/gen.py index 9e674a78..6055deae 100644 --- a/tests/find/gen.py +++ b/tests/find/gen.py @@ -23,7 +23,6 @@ def wrapper(): def gen(filename, w, h, font='', size=16, text='', crop=False): - global count img = Image.open(f'tests/find/background/{filename}.jpg') if crop: img = crop_image(img, 600, 600) diff --git a/tests/test_pygats.py b/tests/test_pygats.py index 3593860f..35025040 100644 --- a/tests/test_pygats.py +++ b/tests/test_pygats.py @@ -95,10 +95,10 @@ def test_random_string(string_length, character_set, expectation): ("pygats/failed.png", pytest.raises(pyg.TestException)), ] ) -def test_locate_on_screen(img_path, expectation, ctx_formatter, gen_photo): +def test_locate_on_screen(img_path, expectation, ctx_formatter): """Test locate_on_screen""" ctx = ctx_formatter - gen_photo + dummy = gen_photo with expectation: print("Проверяем изображение:", img_path) if not os.path.exists(img_path):