diff options
author | Leonard Richardson <leonardr@segfault.org> | 2020-08-31 17:10:00 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2020-08-31 17:10:00 -0400 |
commit | 2c4dcf44e97a620e8f5f735f5585b225062e3636 (patch) | |
tree | b1b407d1b69c02974de97680d8159b0697a1c69a | |
parent | bd479f6ba3ed9db76d26cf36f12f1e9744f85ce4 (diff) | |
parent | f364c4af97e19735603b1b12e6545eb54a391c26 (diff) |
Specify the soupsieve dependency in a way that complies with
PEP 508. Patch by Mike Nerone. [bug=1893696]
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | setup.py | 9 |
2 files changed, 7 insertions, 5 deletions
@@ -4,6 +4,9 @@ stack during tree building, when encountering a closing tag that had no matching opening tag. [bug=1880420] +* Specify the soupsieve dependency in a way that complies with + PEP 508. Patch by Mike Nerone. [bug=1893696] + = 4.9.1 (20200517) * Added a keyword argument 'on_duplicate_attribute' to the @@ -7,10 +7,6 @@ import sys with open("README.md", "r") as fh: long_description = fh.read() -install_requires=["soupsieve>1.2"] -if sys.version_info.major == 2: - install_requires.append("soupsieve<2.0") - setup( name="beautifulsoup4", # NOTE: We can't import __version__ from bs4 because bs4/__init__.py is Python 2 code, @@ -22,7 +18,10 @@ setup( url="http://www.crummy.com/software/BeautifulSoup/bs4/", download_url = "http://www.crummy.com/software/BeautifulSoup/bs4/download/", description="Screen-scraping library", - install_requires=install_requires, + install_requires=[ + "soupsieve >1.2; python_version>='3.0'", + "soupsieve >1.2, <2.0; python_version<'3.0'", + ], long_description=long_description, long_description_content_type="text/markdown", license="MIT", |