Open gitauto-for-dev[bot] opened 2 weeks ago
▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 30% Planning how to fix the error...
Committed the Check Run build (3.10)
error fix! Running it again...
Committed the Check Run MSBuild (3.9)
error fix! Running it again...
Committed the Check Run MSBuild (3.10)
error fix! Running it again...
Resolves #1
What is the feature
Upgrade the application from using PyQt5 to PyQt6.
Why we need the feature
Upgrading to PyQt6 ensures that the application benefits from the latest features, performance improvements, and security patches provided by the newer version of the library. It also helps maintain compatibility with the latest versions of Python and Qt, ensuring long-term support and stability for the application. Additionally, moving to PyQt6 prepares the codebase for future developments and reduces technical debt associated with outdated dependencies.
How to implement and why
Update Dependency Files:
requirements.txt
andrequirements.pytorch.txt
to replacePyQt5
withPyQt6
.Update Import Statements:
game_manager
directory and any other modules that import PyQt5, update import statements.Address API Changes:
Adjust QtCore QtGui Mappings:
QtGui.QFont
might now be accessed fromQtGui
orQtWidgets
depending on the class.Test the Application:
Update Documentation:
doc
directory to reflect the changes.README.md
if there are any new setup instructions or considerations.Docker and Deployment Configurations:
docker-compose.yaml
), ensure the Docker images and containers are updated to include PyQt6.docker
directory accordingly.About backward compatibility
Upgrading to PyQt6 may introduce compatibility issues with environments that only support PyQt5 or older versions of Qt. PyQt6 requires Python 3.6 or higher and leverages newer Qt libraries. If backward compatibility is a concern for users on legacy systems, consider:
However, prioritizing the upgrade will align the application with current standards and is beneficial for future development.
Test these changes locally