Provide an easier way to change PyQt version

Due to the issue mentioned in Anki 25.07/08 Beta 1-2 - #21 by vaibhav (issue introduced in pyqt-qt6 v6.8.2), I am using the latest Anki release with an older Qt by altering the pyproject.toml file as follows:

[project]
name = "anki-launcher"
version = "1.0.0"
description = "UV-based launcher for Anki."
requires-python = ">=3.9"
dependencies = [
  "anki==25.07.3",
  "aqt==25.07.3",
  "anki-audio",
  "pyqt6-qt6==6.8.1",
  "pyqt6-webengine-qt6==6.8.2"
]

However, this means that I have to manually update the file in order to get newer versions of Anki. An easier way to change the PyQt version would be appreciated.

Changing the Qt version is fairly advanced, so I’m not sure it’s general enough to support. Please note you can remove the anki/aqt version numbers, and then the version will be updated each time you synchronize your version. You may need to modify the pyproject.toml file to allow that option to be shown.

I removed the version numbers and chose “Sync project changes”. However, Anki still remained on 25.07.3 (i.e., not upgraded to 25.07.4).

Edit: I just realized that 25.07.4 is not uploaded to PyPI yet.

It’s been uploaded now. How does it go for you?

Works fine now. Thank you for the suggestion.

To update the modification time of the toml file on Windows, one can use this in PowerShell after replacing path-to-file with the actual path to the pyproject.toml file.

(ls path-to-file).LastWriteTime = Get-Date

or, if you have WSL, you can use this from the WSL side after replacing <username> with your username :

touch /mnt/c/Users/<username>/AppData/Local/AnkiProgramFiles/pyproject.toml

Of course, full path is not required if you first cd into the folder.

With this information, I would like to re-activate this request because the need to manually update the version every time makes beta testing difficult.