Skip to content

Commit

Permalink
check for python version
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefandinno committed Jan 19, 2025
1 parent 88eed6b commit e758aaf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bibfmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@

def check_min_version():
"""
Ensure that a new enough version of bibtexparser is used.
Ensure that a new enough version of python and bibtexparser is used.
"""
if sys.version_info <= (3, 10):
raise SystemExit("The script requires at least python version 3.10.")
vers = bp.__version__.split(".")
if (int(vers[0]), int(vers[1])) < (1, 2):
raise RuntimeError("The script requires at least bibtexparser version 1.2.")
Expand Down

0 comments on commit e758aaf

Please sign in to comment.