[tor-commits] [stem/master] Require Python 3.6 to run tests
atagar at torproject.org
atagar at torproject.org
Sun Jan 5 21:39:28 UTC 2020
commit c73023efe24891fac4ed32ce78e2630d1caeaabc
Author: Damian Johnson <atagar at torproject.org>
Date: Thu Jan 2 11:47:22 2020 -0800
Require Python 3.6 to run tests
Now that the PSF has removed Python 2.x support we are as well...
https://www.python.org/doc/sunset-python-2/
Stem 2.x will require Python 3.x, but what version? Python 3.5 is EOL in a few
months (prior to our next release)...
https://devguide.python.org/#status-of-python-branches
So the question is 3.6 or 3.7? I'm not yet aware of a reason to pick 3.7 so for
the moment picking 3.6. This might change if we strongly desire a 3.7 feature
as we work on this branch.
https://docs.python.org/3/whatsnew/3.7.html
---
stem/prereq.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/stem/prereq.py b/stem/prereq.py
index 5e8e89dc..480f070c 100644
--- a/stem/prereq.py
+++ b/stem/prereq.py
@@ -46,8 +46,8 @@ def check_requirements():
major_version, minor_version = sys.version_info[0:2]
- if major_version < 2 or (major_version == 2 and minor_version < 6):
- raise ImportError('stem requires python version 2.6 or greater')
+ if major_version < 3 or (major_version == 3 and minor_version < 6):
+ raise ImportError('stem requires python version 3.6 or greater')
def _is_python_26():
More information about the tor-commits
mailing list