diff options
author | Leonard Richardson <leonardr@segfault.org> | 2019-10-06 10:22:20 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2019-10-06 10:22:20 -0400 |
commit | 1f9a6b293b45532ab3531ad7d22dee5b99f088d2 (patch) | |
tree | c60998872740702fcae69c843409a98d04305d0d | |
parent | 5b7212298f17a6c3c33f79b49e36a730b45fd19d (diff) |
Right, that's why I didn't import __version__ from bs4 to begin with.
-rw-r--r-- | setup.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -3,14 +3,15 @@ from setuptools import ( find_packages, ) -from bs4 import __version__ - with open("README.md", "r") as fh: long_description = fh.read() setup( name="beautifulsoup4", - version = __version__, + # NOTE: We can't import __version__ from bs4 because bs4/__init__.py is Python 2 code, + # and converting it to Python 3 means going through this code to run 2to3. + # So we have to specify it twice for the time being. + version = '4.8.1', author="Leonard Richardson", author_email='leonardr@segfault.org', url="http://www.crummy.com/software/BeautifulSoup/bs4/", |