summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2019-10-06 10:22:20 -0400
committerLeonard Richardson <leonardr@segfault.org>2019-10-06 10:22:20 -0400
commit1f9a6b293b45532ab3531ad7d22dee5b99f088d2 (patch)
treec60998872740702fcae69c843409a98d04305d0d
parent5b7212298f17a6c3c33f79b49e36a730b45fd19d (diff)
Right, that's why I didn't import __version__ from bs4 to begin with.
-rw-r--r--setup.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/setup.py b/setup.py
index d576a96..e2523f9 100644
--- a/setup.py
+++ b/setup.py
@@ -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/",