From 1f9a6b293b45532ab3531ad7d22dee5b99f088d2 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sun, 6 Oct 2019 10:22:20 -0400 Subject: Right, that's why I didn't import __version__ from bs4 to begin with. --- setup.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'setup.py') 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/", -- cgit v1.2.3