~leonardr/beautifulsoup/bs4

« back to all changes in this revision

Viewing changes to README.md

  • Committer: Leonard Richardson
  • Date: 2021-09-08 00:09:32 UTC
  • Revision ID: leonardr@segfault.org-20210908000932-fernpoi4ky2dg3mg
Goodbye, Python 2. [bug=1942919]

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
 
54
54
# Note on Python 2 sunsetting
55
55
 
56
 
Since 2012, Beautiful Soup has been developed as a Python 2 library
57
 
which is automatically converted to Python 3 code as necessary. This
58
 
makes it impossible to take advantage of some features of Python
59
 
3.
60
 
 
61
 
For this reason, I plan to discontinue Beautiful Soup's Python 2
62
 
support at some point after December 31, 2020: one year after the
63
 
sunset date for Python 2 itself. Beyond that point, new Beautiful Soup
64
 
development will exclusively target Python 3. Of course, older
65
 
releases of Beautiful Soup, which support both versions, will continue
66
 
to be available.
 
56
Beautiful Soup's support for Python 2 was discontinued on December 31,
 
57
2020: one year after the sunset date for Python 2 itself. From this
 
58
point onward, new Beautiful Soup development will exclusively target
 
59
Python 3. The final release of Beautiful Soup 4 to support Python 2
 
60
was 4.9.3.
67
61
 
68
62
# Supporting the project
69
63
 
93
87
```
94
88
 
95
89
```
96
 
$ python -m unittest discover -s bs4
 
90
$ python3 -m unittest discover -s bs4
97
91
```
98
 
 
99
 
If you checked out the source tree, you should see a script in the
100
 
home directory called test-all-versions. This script will run the unit
101
 
tests under Python 2, then create a temporary Python 3 conversion of
102
 
the source and run the unit tests again under Python 3.