Skip to content

Commit

Permalink
Use dependency lxml[html_clean]
Browse files Browse the repository at this point in the history
Fixes matthiask#38

New verion of `lxml` (5.2.0) extracted the `lxml.html.clean` implementation into a separate library.
This commit switches dependency from `lxml` to `lxml[html_clean]`.

Signed-off-by: Valentin <valentin@waldeck.dev>
  • Loading branch information
waldeck-dev committed Mar 31, 2024
1 parent 5d7a451 commit 4149747
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install beautifulsoup4 lxml
python -m pip install beautifulsoup4 lxml[html_clean]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ dynamic = [
]
dependencies = [
"beautifulsoup4",
"lxml>=4.9.1",
"lxml[html_clean]>=4.9.1",
]
[project.urls]
Homepage = "https://github.com/matthiask/html-sanitizer/"
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[testenv]
deps =
wheel
lxml
lxml[html_clean]
beautifulsoup4
coverage
changedir = {toxinidir}
Expand Down

0 comments on commit 4149747

Please sign in to comment.