Skip to content

Commit

Permalink
Force string comparison of platform_release
Browse files Browse the repository at this point in the history
Ideally this would use 'platform_version >= 6.2' (Windows 7 is version
6.1) but that, and 'platform_release != 7', cause InvalidVersion errors
with pip >= 24.1 (see pypa/packaging#774).
  • Loading branch information
jim-easterbrook committed Sep 18, 2024
1 parent 62ab309 commit 7c1a776
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ PyQt6-linux = [
"PyQt6-WebEngine-Qt6 < 6.3; python_version == '3.6.*'",
]
PyQt6-windows = [
"PyQt6 >= 6.2; platform_release != '7'",
"PyQt6-WebEngine >= 6.2; platform_release != '7'",
"PyQt6 >= 6.2; platform_release not in '7'",
"PyQt6-WebEngine >= 6.2; platform_release not in '7'",
]
PyQt6-darwin = [
"PyQt6-Qt6 >= 6.2, != 6.6.1",
Expand All @@ -97,7 +97,7 @@ PySide6 = [
"photini[PySide6-darwin]; platform_system == 'Darwin'",
]
PySide6-linux = ["PySide6 >= 6.2"]
PySide6-windows = ["PySide6 >= 6.2; platform_release != '7'"]
PySide6-windows = ["PySide6 >= 6.2; platform_release not in '7'"]
PySide6-darwin = ["PySide6 >= 6.2, != 6.6.1"]
gpxpy = ["gpxpy >= 1.3.5, != 1.6.0"]
Pillow = []
Expand Down

0 comments on commit 7c1a776

Please sign in to comment.