Skip to content

Commit

Permalink
Move to Python 3.7 minimum #241
Browse files Browse the repository at this point in the history
Merge pull request #255 from terrier-org/py37
  • Loading branch information
cmacdonald authored Dec 20, 2021
2 parents 0414f71 + 34adca3 commit 545ee52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions pyterrier/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.7.2"
__version__ = "0.8.0-alpha"

import os
from .bootstrap import _logging, setup_terrier, setup_jnius, is_windows
Expand Down Expand Up @@ -78,8 +78,7 @@ def init(version=None, mem=None, packages=[], jvm_opts=[], redirect_io=True, log
import platform
from packaging.version import Version
if Version(platform.python_version()) < Version('3.7.0'):
from warnings import warn
warn("From PyTerrier 0.8, Python 3.7 will be required, you currently have %s" % platform.python_version())
raise RuntimeError("From PyTerrier 0.8, Python 3.7 minimum is required, you currently have %s" % platform.python_version())

set_tqdm(tqdm)

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import sys

assert sys.version_info[0] > 2, "Pyterrier requires Python 3.6"
assert sys.version_info[0] > 2, "PyTerrier requires Python 3.7 minimum"

import os
try:
Expand Down Expand Up @@ -65,5 +65,5 @@ def get_version(rel_path):
"Operating System :: OS Independent",
],
install_requires=requirements,
python_requires='>=3.6',
python_requires='>=3.7',
)

0 comments on commit 545ee52

Please sign in to comment.