Skip to content

Commit

Permalink
Remove dep on Version in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidev committed Dec 16, 2024
1 parent 11470f9 commit 73bc8ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
9 changes: 6 additions & 3 deletions ci/generate_azure_pipelines_matrices.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
from itertools import product
from typing import Dict, Optional

from semantic_version import Version

MIRRORS = [
"https://ftp.jaist.ac.jp/pub/qtproject",
"https://ftp1.nluug.nl/languages/qt",
Expand Down Expand Up @@ -125,7 +123,12 @@ def emsdk_version_for_qt(version_of_qt: str) -> str:
if qt_major_minor in BuildJob.EMSDK_FOR_QT:
return BuildJob.EMSDK_FOR_QT[qt_major_minor]

latest_version = max(BuildJob.EMSDK_FOR_QT.keys(), key=Version)
# Find the latest version using string comparison
latest_version = "0.0"
for version in BuildJob.EMSDK_FOR_QT.keys():
if version > latest_version:
latest_version = version

return BuildJob.EMSDK_FOR_QT[latest_version]


Expand Down
1 change: 0 additions & 1 deletion tests/test_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,6 @@ def _mock_fetch_http(_, rest_of_url: str, *args, **kwargs) -> str:
return "" # Return empty HTML since we don't need it

monkeypatch.setattr("aqt.metadata.getUrl", _mock_fetch_http)
# monkeypatch.setattr("aqt.metadata.fetch_http", _mock_fetch_http)
monkeypatch.setattr(MetadataFactory, "fetch_http", _mock_fetch_http)

cli = Cli()
Expand Down

0 comments on commit 73bc8ad

Please sign in to comment.