Skip to content

Commit

Permalink
Update dependency_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cockroacher authored Jan 29, 2025
1 parent 8e5de00 commit 35ce6b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions helpers/dependency_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ def check_python():
print('\t- Python:', 'ERROR: Unable to get version')
return

version = version.Version(version)
version = packaging.version.Version(version)

# Define acceptable versions
acceptable_versions = [version.Version('3.10'), version.Version('3.11'),
version.Version('3.12'), version.Version('3.13')]
acceptable_versions = [packaging.version.Version('3.10'), packaging.version.Version('3.11'),
packaging.version.Version('3.12'), packaging.version.Version('3.13')]

if version not in acceptable_versions:
print('\t- Python:', 'WARNING: version not in supported range (3.10-3.13)')
Expand Down

0 comments on commit 35ce6b3

Please sign in to comment.