Skip to content
Snippets Groups Projects
Commit 67920b0f authored by mio's avatar mio Committed by Celeste
Browse files

community/py3-readability-lxml: add py3-lxml-html-clean to depends

Fix test failure due to missing import.

```
ImportError: Failed to import test module: test_article_only
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 137, in loadTestsFromName
    module = __import__(module_name)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/build/tests/py3-readability-lxml/src/python-readability-0.8.1/tests/test_article_only.py", line 4, in <module>
    from readability import Document
  File "/home/build/tests/py3-readability-lxml/src/python-readability-0.8.1/readability/__init__.py", line 3, in <module>
    from .readability import Document
  File "/home/build/tests/py3-readability-lxml/src/python-readability-0.8.1/readability/readability.py", line 11, in <module>
    from .cleaners import clean_attributes
  File "/home/build/tests/py3-readability-lxml/src/python-readability-0.8.1/readability/cleaners.py", line 3, in <module>
    from lxml.html.clean import Cleaner
  File "/usr/lib/python3.12/site-packages/lxml/html/clean.py", line 18, in <module>
    raise ImportError(
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.
```
parent 8a90084f
No related branches found
No related tags found
1 merge request!74003community/py3-readability-lxml: add py3-lxml-html-clean to depends
Pipeline #267787 skipped
# Maintainer:
pkgname=py3-readability-lxml
pkgver=0.8.1
pkgrel=5
pkgrel=6
pkgdesc="fast python port of arc90's readability tool, updated to match latest readability.js!"
url="https://github.com/buriy/python-readability"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-chardet py3-lxml py3-cssselect"
depends="python3 py3-chardet py3-lxml py3-lxml-html-clean py3-cssselect"
makedepends="py3-setuptools"
checkdepends="py3-timeout-decorator"
# pypi version doesn't have tests
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment