py3-beautifulsoup4-4.6.0-r0 fails with a syntax error
When I try to use beautifulsoup4 on Python 3, I get a syntax error:
$ apk info -e --verbose py3-beautifulsoup4
py3-beautifulsoup4-4.6.0-r0
$ python3 -c "import bs4"
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3.6/site-packages/bs4/__init__.py", line 53
'You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work.'<>'You need to convert the code, either by installing it (`python setup.py install`) or by running 2to3 (`2to3 -w bs4`).'
^
SyntaxError: invalid syntax
I will submit a PR with a fix.
(from redmine: issue id 8935, created on 2018-05-26, closed on 2019-05-04)
- Changesets:
- Revision cfb9a680 by Keith Maxwell on 2018-05-26T15:04:12Z:
testing/py-beautifulsoup4: add check and fix #8935
Adds a basic check (python -c "import bs4")
Follows the multi-version package example from
https://wiki.alpinelinux.org/wiki/APKBUILD_examples:Python
Fixes #8935 (https://bugs.alpinelinux.org/issues/8935)