From f2bdcda4e5c692f8e7f77205615cfa5e510ac0e6 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Wed, 28 Feb 2024 20:15:46 +0100 Subject: [PATCH] churn: remove unused dependencies, only using aiohttp anymore --- DEPENDENCIES | 4 +- otterdog/providers/github/auth/__init__.py | 4 +- poetry.lock | 69 +++------------------- pyproject.toml | 2 - 4 files changed, 9 insertions(+), 70 deletions(-) diff --git a/DEPENDENCIES b/DEPENDENCIES index 81848419..8d192072 100644 --- a/DEPENDENCIES +++ b/DEPENDENCIES @@ -9,7 +9,6 @@ pypi/pypi/-/async-timeout/4.0.3 pypi/pypi/-/attrs/23.2.0 pypi/pypi/-/babel/2.14.0 pypi/pypi/-/blinker/1.7.0 -pypi/pypi/-/cattrs/23.2.3 pypi/pypi/-/certifi/2024.2.2 pypi/pypi/-/cffi/1.16.0 pypi/pypi/-/charset-normalizer/3.3.2 @@ -60,7 +59,7 @@ pypi/pypi/-/playwright/1.41.2 pypi/pypi/-/ply/3.11 pypi/pypi/-/priority/2.0.0 pypi/pypi/-/pycparser/2.21 -pypi/pypi/-/pydantic/2.6.2 +pypi/pypi/-/pydantic/2.6.3 pypi/pypi/-/pydantic-core/2.16.3 pypi/pypi/-/pyee/11.0.1 pypi/pypi/-/pygments/2.17.2 @@ -83,7 +82,6 @@ pypi/pypi/-/redis/4.6.0 pypi/pypi/-/referencing/0.33.0 pypi/pypi/-/regex/2023.12.25 pypi/pypi/-/requests/2.31.0 -pypi/pypi/-/requests-cache/1.2.0 pypi/pypi/-/rpds-py/0.18.0 pypi/pypi/-/six/1.16.0 pypi/pypi/-/taskgroup/0.0.0a4 diff --git a/otterdog/providers/github/auth/__init__.py b/otterdog/providers/github/auth/__init__.py index 3592d6e4..5b6252bb 100644 --- a/otterdog/providers/github/auth/__init__.py +++ b/otterdog/providers/github/auth/__init__.py @@ -10,10 +10,8 @@ from collections.abc import MutableMapping from typing import Any -from requests.auth import AuthBase - -class AuthImpl(AuthBase): +class AuthImpl: @abstractmethod def update_headers_with_authorization(self, headers: MutableMapping[str, Any]) -> None: ... diff --git a/poetry.lock b/poetry.lock index 4bfadc82..a2c37dc6 100644 --- a/poetry.lock +++ b/poetry.lock @@ -278,31 +278,6 @@ files = [ {file = "blinker-1.7.0.tar.gz", hash = "sha256:e6820ff6fa4e4d1d8e2747c2283749c3f547e4fee112b98555cdcdae32996182"}, ] -[[package]] -name = "cattrs" -version = "23.2.3" -description = "Composable complex class support for attrs and dataclasses." -optional = false -python-versions = ">=3.8" -files = [ - {file = "cattrs-23.2.3-py3-none-any.whl", hash = "sha256:0341994d94971052e9ee70662542699a3162ea1e0c62f7ce1b4a57f563685108"}, - {file = "cattrs-23.2.3.tar.gz", hash = "sha256:a934090d95abaa9e911dac357e3a8699e0b4b14f8529bcc7d2b1ad9d51672b9f"}, -] - -[package.dependencies] -attrs = ">=23.1.0" -exceptiongroup = {version = ">=1.1.1", markers = "python_version < \"3.11\""} -typing-extensions = {version = ">=4.1.0,<4.6.3 || >4.6.3", markers = "python_version < \"3.11\""} - -[package.extras] -bson = ["pymongo (>=4.4.0)"] -cbor2 = ["cbor2 (>=5.4.6)"] -msgpack = ["msgpack (>=1.0.5)"] -orjson = ["orjson (>=3.9.2)"] -pyyaml = ["pyyaml (>=6.0)"] -tomlkit = ["tomlkit (>=0.11.8)"] -ujson = ["ujson (>=5.7.0)"] - [[package]] name = "certifi" version = "2024.2.2" @@ -1769,13 +1744,13 @@ files = [ [[package]] name = "pydantic" -version = "2.6.2" +version = "2.6.3" description = "Data validation using Python type hints" optional = false python-versions = ">=3.8" files = [ - {file = "pydantic-2.6.2-py3-none-any.whl", hash = "sha256:37a5432e54b12fecaa1049c5195f3d860a10e01bdfd24f1840ef14bd0d3aeab3"}, - {file = "pydantic-2.6.2.tar.gz", hash = "sha256:a09be1c3d28f3abe37f8a78af58284b236a92ce520105ddc91a6d29ea1176ba7"}, + {file = "pydantic-2.6.3-py3-none-any.whl", hash = "sha256:72c6034df47f46ccdf81869fddb81aade68056003900a8724a4f160700016a2a"}, + {file = "pydantic-2.6.3.tar.gz", hash = "sha256:e07805c4c7f5c6826e33a1d4c9d47950d7eaf34868e2690f8594d2e30241f11f"}, ] [package.dependencies] @@ -2477,36 +2452,6 @@ urllib3 = ">=1.21.1,<3" socks = ["PySocks (>=1.5.6,!=1.5.7)"] use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] -[[package]] -name = "requests-cache" -version = "1.2.0" -description = "A persistent cache for python requests" -optional = false -python-versions = ">=3.8" -files = [ - {file = "requests_cache-1.2.0-py3-none-any.whl", hash = "sha256:490324301bf0cb924ff4e6324bd2613453e7e1f847353928b08adb0fdfb7f722"}, - {file = "requests_cache-1.2.0.tar.gz", hash = "sha256:db1c709ca343cc1cd5b6c8b1a5387298eceed02306a6040760db538c885e3838"}, -] - -[package.dependencies] -attrs = ">=21.2" -cattrs = ">=22.2" -platformdirs = ">=2.5" -requests = ">=2.22" -url-normalize = ">=1.4" -urllib3 = ">=1.25.5" - -[package.extras] -all = ["boto3 (>=1.15)", "botocore (>=1.18)", "itsdangerous (>=2.0)", "pymongo (>=3)", "pyyaml (>=6.0.1)", "redis (>=3)", "ujson (>=5.4)"] -bson = ["bson (>=0.5)"] -docs = ["furo (>=2023.3,<2024.0)", "linkify-it-py (>=2.0,<3.0)", "myst-parser (>=1.0,<2.0)", "sphinx (>=5.0.2,<6.0.0)", "sphinx-autodoc-typehints (>=1.19)", "sphinx-automodapi (>=0.14)", "sphinx-copybutton (>=0.5)", "sphinx-design (>=0.2)", "sphinx-notfound-page (>=0.8)", "sphinxcontrib-apidoc (>=0.3)", "sphinxext-opengraph (>=0.9)"] -dynamodb = ["boto3 (>=1.15)", "botocore (>=1.18)"] -json = ["ujson (>=5.4)"] -mongodb = ["pymongo (>=3)"] -redis = ["redis (>=3)"] -security = ["itsdangerous (>=2.0)"] -yaml = ["pyyaml (>=6.0.1)"] - [[package]] name = "rpds-py" version = "0.18.0" @@ -2716,13 +2661,13 @@ referencing = "*" [[package]] name = "types-pyopenssl" -version = "24.0.0.20240130" +version = "24.0.0.20240228" description = "Typing stubs for pyOpenSSL" optional = false python-versions = ">=3.8" files = [ - {file = "types-pyOpenSSL-24.0.0.20240130.tar.gz", hash = "sha256:c812e5c1c35249f75ef5935708b2a997d62abf9745be222e5f94b9595472ab25"}, - {file = "types_pyOpenSSL-24.0.0.20240130-py3-none-any.whl", hash = "sha256:24a255458b5b8a7fca8139cf56f2a8ad5a4f1a5f711b73a5bb9cb50dc688fab5"}, + {file = "types-pyOpenSSL-24.0.0.20240228.tar.gz", hash = "sha256:cd990717d8aa3743ef0e73e0f462e64b54d90c304249232d48fece4f0f7c3c6a"}, + {file = "types_pyOpenSSL-24.0.0.20240228-py3-none-any.whl", hash = "sha256:a472cf877a873549175e81972f153f44e975302a3cf17381eb5f3d41ccfb75a4"}, ] [package.dependencies] @@ -3014,4 +2959,4 @@ multidict = ">=4.0" [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "046e3f2eb31640a93555d7099540363070608f18bb2ab6ee5b0deadea4f36610" +content-hash = "96b05eb73bb1d3c1044ddf7b10adb95de51100bc08ba6d56ebaef11229f0ff88" diff --git a/pyproject.toml b/pyproject.toml index 68483f13..d0d219ec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,8 +51,6 @@ jsonschema = "^4.20" jwt = "^1.3" mintotp = "^0.3" playwright = "^1.40" -requests = "^2.31" -requests-cache = "^1.1" JSONBender = "^0.9" PyNaCl = "^1.5"