diff options
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", |