From 83d24a1a7fe905d6164c3f4f2fdf37b3fe39542c Mon Sep 17 00:00:00 2001 From: Valentin <49414886+waldeck-dev@users.noreply.github.com> Date: Mon, 1 Apr 2024 09:10:31 +0200 Subject: [PATCH] Use dependency `lxml[html_clean]` (#39) * Use dependency `lxml[html_clean]` Fixes #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 * Update pyproject.toml --------- Signed-off-by: Valentin Co-authored-by: Matthias Kestenholz --- .github/workflows/test.yml | 2 +- pyproject.toml | 2 +- tox.ini | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 08c90f6..4ee9c74 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: | diff --git a/pyproject.toml b/pyproject.toml index bb45f67..4564272 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dynamic = [ ] dependencies = [ "beautifulsoup4", - "lxml>=4.9.1", + "lxml[html_clean]>=5.2.0", ] [project.urls] Homepage = "https://github.com/matthiask/html-sanitizer/" diff --git a/tox.ini b/tox.ini index ad5370a..a1ab64d 100644 --- a/tox.ini +++ b/tox.ini @@ -1,7 +1,7 @@ [testenv] deps = wheel - lxml + lxml[html_clean] beautifulsoup4 coverage changedir = {toxinidir}