Closed gitauto-for-dev[bot] closed 1 month ago
Resolves #1
This feature replaces PyQt5 with PyQt6 across the project.
Upgrading to PyQt6 ensures that the project stays current with the latest developments in the Qt framework. PyQt6 provides:
Staying updated reduces technical debt and simplifies future maintenance.
Think step by step.
Update Dependency Files:
requirements.txt
requirements.pytorch.txt
PyQt5
PyQt6
Adjust Import Statements:
from PyQt5
from PyQt6
QtWidgets
QtCore
QtGui
Modify Code for API Changes:
QtCore.Qt.AlignmentFlag.AlignCenter
print
Update Signal and Slot Connections:
@QtCore.pyqtSlot
@QtCore.pyqtSignal
Test the Application Thoroughly:
Update Documentation:
Docker and Deployment Configurations:
docker-compose
docker
Do we need to keep backward compatibility?
Compatibility with Older Python Versions:
Third-Party Dependencies:
User Impact:
Conclusion:
git checkout -b gitauto-wes/issue-#1-daefcda9-3d7c-42a8-9c60-4c800bf0e075 git pull origin gitauto-wes/issue-#1-daefcda9-3d7c-42a8-9c60-4c800bf0e075
Resolves #1
What is the feature
This feature replaces PyQt5 with PyQt6 across the project.
Why we need the feature
Upgrading to PyQt6 ensures that the project stays current with the latest developments in the Qt framework. PyQt6 provides:
Staying updated reduces technical debt and simplifies future maintenance.
How to implement and why
Think step by step.
Update Dependency Files:
requirements.txt
andrequirements.pytorch.txt
to replacePyQt5
withPyQt6
.Adjust Import Statements:
from PyQt5
and replace them withfrom PyQt6
.QtWidgets
,QtCore
,QtGui
).Modify Code for API Changes:
QtCore.Qt.AlignmentFlag.AlignCenter
).print
function is no longer a builtin in some PyQt6 modules; ensure all print statements are compatible with Python 3.Update Signal and Slot Connections:
@QtCore.pyqtSlot
and@QtCore.pyqtSignal
decorators where appropriate.Test the Application Thoroughly:
Update Documentation:
Docker and Deployment Configurations:
docker-compose
files are updated to include PyQt6.docker
directory that reference PyQt5.About backward compatibility
Do we need to keep backward compatibility?
Compatibility with Older Python Versions:
Third-Party Dependencies:
User Impact:
Conclusion:
Test these changes locally