diff options
author | Leonard Richardson <leonardr@segfault.org> | 2021-09-07 20:09:32 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2021-09-07 20:09:32 -0400 |
commit | 9d68e443978afda17f59f0ff9e73af2b9b0921c2 (patch) | |
tree | c23b00ad1379e3c10212c048ef84fc40c9321da3 /setup.py | |
parent | 70f546b1e689a70e2f103795efce6d261a3dadf7 (diff) |
Goodbye, Python 2. [bug=1942919]
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -4,23 +4,22 @@ from setuptools import ( ) import sys +from bs4 import __version__ + with open("README.md", "r") as fh: long_description = fh.read() setup( name="beautifulsoup4", - # 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.9.3', + version = __version__, author="Leonard Richardson", author_email='leonardr@segfault.org', url="http://www.crummy.com/software/BeautifulSoup/bs4/", download_url = "http://www.crummy.com/software/BeautifulSoup/bs4/download/", description="Screen-scraping library", + python_requires='>3.0.0', install_requires=[ - "soupsieve >1.2; python_version>='3.0'", - "soupsieve >1.2, <2.0; python_version<'3.0'", + "soupsieve >1.2", ], long_description=long_description, long_description_content_type="text/markdown", @@ -30,12 +29,10 @@ setup( 'lxml' : [ 'lxml'], 'html5lib' : ['html5lib'], }, - use_2to3 = True, classifiers=["Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", - "Programming Language :: Python :: 2.7", 'Programming Language :: Python :: 3', "Topic :: Text Processing :: Markup :: HTML", "Topic :: Text Processing :: Markup :: XML", |