Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Merge pull request boriel-basic#630 from boriel/feature/check_python_…
Browse files Browse the repository at this point in the history
…version

feat: enforce Python 3.10+
  • Loading branch information
boriel committed Nov 6, 2022
2 parents 1804109 + b0350e3 commit d6343c6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env python3

import sys

PYTHON_VERSION = 3, 10 # Minimum python version required

if tuple(sys.version_info) < PYTHON_VERSION:
print(
f"{sys.argv[0]} Error: minimum Python Version required is {'.'.join(str(x) for x in PYTHON_VERSION)}",
file=sys.stderr,
)
sys.exit(1)

0 comments on commit d6343c6

Please sign in to comment.