Skip to content

Commit 8dabf56

Browse files
Merge pull request #127 from duckietown/DTSW-7575-Create-Python-version-upper-bound-for-Duckietown-Shell
DTSW-7575-Create-Python-version-upper-bound-for-Duckietown-Shell
2 parents 18128d7 + 7f95429 commit 8dabf56

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ def get_version(filename):
2020
raise ValueError(filename)
2121
return version
2222

23-
24-
if sys.version_info < (3, 10):
25-
msg = 'duckietown-shell works with Python 3.10 and later.\nDetected %s.' % str(sys.version)
23+
version_info = sys.version_info
24+
if version_info < (3, 10) or version_info >= (3, 13):
25+
msg = 'duckietown-shell works with Python 3.10.x-3.12.x.\nDetected %s.' % sys.version
2626
sys.exit(msg)
2727

2828
distro = 'daffy'

0 commit comments

Comments
 (0)