Drop Python 2.6 support

This commit is contained in:
peterjc
2016-08-26 17:38:42 +01:00
parent d35d3508a7
commit e4703cab0b
3 changed files with 12 additions and 6 deletions

View File

@ -19,8 +19,8 @@ Release 1.62, with advance notice in the release notes for Release 1.61.
Python 2.6
==========
Still supported but deprecated as of Release 1.66, triggering a warning
at installation time.
No longer supported as of Release 1.69, having triggered a warning with
release 1.66 onwards.
Python 3.0, 3.1, 3.2
====================

8
NEWS
View File

@ -8,6 +8,14 @@ http://news.open-bio.org/news/category/obf-projects/biopython/
The latest news is at the top of this file.
===================================================================
(In progress, not yet released) Biopython 1.69
This release of Biopython supports Python 2.7, 3.3, 3.4 and 3.5 (we have now
dropped support for Python 2.6). It has also been tested on PyPy 5.0, PyPy3
version 2.4, and Jython 2.7.
===================================================================
25 August 2016: Biopython 1.68

View File

@ -138,12 +138,10 @@ def get_yes_or_no(question, default):
# Make sure we have the right Python version.
if sys.version_info[:2] < (2, 6):
print("Biopython requires Python 2.6 or 2.7 (or Python 3.3 or later). "
if sys.version_info[:2] < (2, 7):
print("Biopython requires Python 2.7, or Python 3.3 or later. "
"Python %d.%d detected" % sys.version_info[:2])
sys.exit(1)
elif sys.version_info[:2] == (2, 6):
print("WARNING: Biopython support for Python 2.6 is now deprecated.")
elif is_pypy() and sys.version_info[0] == 3 and sys.version_info[:2] == (3, 2):
# PyPy3 2.4.0 is compatibile with Python 3.2.5 plus unicode literals
# so ought to work with Biopython