From 056ea78d60e34d958e7e1b362609875faa778c59 Mon Sep 17 00:00:00 2001 From: Rotzbua Date: Tue, 16 Apr 2024 16:13:57 +0200 Subject: [PATCH] feat: remove dependency `six` was compatibility import for python 2 --- .pre-commit-config.yaml | 2 +- extruct/uniform.py | 3 +-- requirements.txt | 1 - setup.py | 1 - 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a44c30c5..bdcb7ee9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,6 +11,6 @@ repos: rev: 5.12.0 - hooks: - id: mypy - additional_dependencies: [types-requests, types-mock, types-six, lxml-stubs] + additional_dependencies: [types-requests, types-mock, lxml-stubs] repo: https://github.com/pre-commit/mirrors-mypy rev: v0.982 diff --git a/extruct/uniform.py b/extruct/uniform.py index 8c96c4ed..fa778bb0 100644 --- a/extruct/uniform.py +++ b/extruct/uniform.py @@ -1,8 +1,7 @@ # mypy: disallow_untyped_defs=False import copy from typing import Any - -from six.moves.urllib.parse import urljoin, urlparse +from urllib.parse import urljoin, urlparse from extruct.dublincore import get_lower_attrib diff --git a/requirements.txt b/requirements.txt index 6665ca9a..c4c98ece 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,6 @@ rdflib<6.0.0; python_version<"3.7" rdflib-jsonld<=0.5.0; python_version<"3.7" pyrdfa3 mf2py>=1.1.0 -six>=1.11 w3lib html-text jstyleson diff --git a/setup.py b/setup.py index 23cb0cf4..3847595a 100644 --- a/setup.py +++ b/setup.py @@ -49,7 +49,6 @@ def get_version(): "mf2py", "w3lib", "html-text>=0.5.1", - "six", "jstyleson", ], extras_require={