From 9d68e443978afda17f59f0ff9e73af2b9b0921c2 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Tue, 7 Sep 2021 20:09:32 -0400 Subject: Goodbye, Python 2. [bug=1942919] --- README.md | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 92dd339..884f9eb 100644 --- a/README.md +++ b/README.md @@ -53,17 +53,11 @@ To go beyond the basics, [comprehensive documentation is available](http://www.c # Note on Python 2 sunsetting -Since 2012, Beautiful Soup has been developed as a Python 2 library -which is automatically converted to Python 3 code as necessary. This -makes it impossible to take advantage of some features of Python -3. - -For this reason, I plan to discontinue Beautiful Soup's Python 2 -support at some point after December 31, 2020: one year after the -sunset date for Python 2 itself. Beyond that point, new Beautiful Soup -development will exclusively target Python 3. Of course, older -releases of Beautiful Soup, which support both versions, will continue -to be available. +Beautiful Soup's support for Python 2 was discontinued on December 31, +2020: one year after the sunset date for Python 2 itself. From this +point onward, new Beautiful Soup development will exclusively target +Python 3. The final release of Beautiful Soup 4 to support Python 2 +was 4.9.3. # Supporting the project @@ -93,10 +87,5 @@ $ nosetests ``` ``` -$ python -m unittest discover -s bs4 +$ python3 -m unittest discover -s bs4 ``` - -If you checked out the source tree, you should see a script in the -home directory called test-all-versions. This script will run the unit -tests under Python 2, then create a temporary Python 3 conversion of -the source and run the unit tests again under Python 3. -- cgit v1.2.3