diff --git a/evo_downloader/gui.py b/evo_downloader/gui.py index a566176..3a5c941 100644 --- a/evo_downloader/gui.py +++ b/evo_downloader/gui.py @@ -1,4 +1,5 @@ -from PyQt6.QtWidgets import ( +from PyQt5.QtCore import pyqtSignal +from qtpy.QtWidgets import ( QApplication, QWidget, QVBoxLayout, @@ -10,7 +11,7 @@ QProgressBar, QTextEdit, ) -from PyQt6.QtCore import Qt, QThread, pyqtSignal +from qtpy.QtCore import QThread import sys import os from evo_downloader.downloader import Downloader diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..814cca2 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +qt_api=pyqt5 \ No newline at end of file diff --git a/requirements-test.txt b/requirements-test.txt index b6918b0..cd5c914 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -9,5 +9,5 @@ codecov mypy gitchangelog mkdocs -pyqt6 +pyqt5 pytest-qt diff --git a/setup.py b/setup.py index 48d716c..9f42250 100644 --- a/setup.py +++ b/setup.py @@ -37,5 +37,5 @@ def read_requirements(path): packages=find_packages(exclude=["tests", ".github"]), install_requires=read_requirements("requirements.txt"), entry_points={"console_scripts": ["edownload = evo_downloader.__main__:main"]}, - extras_require={"test": read_requirements("requirements-test.txt"), "full": ["pyqt6"]}, + extras_require={"test": read_requirements("requirements-test.txt"), "full": ["pyqt5"]}, ) diff --git a/tests/test_gui.py b/tests/test_gui.py index c5edf8c..c1e66c9 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -1,8 +1,6 @@ -import sys import unittest -from PyQt6.QtCore import Qt -from PyQt6.QtWidgets import QApplication +from PyQt5.QtCore import Qt from evo_downloader.gui import DownloaderGUI