From 82c71fb67ce70f55b88d2b8707dcc2a0a36780c6 Mon Sep 17 00:00:00 2001 From: AN Long Date: Wed, 29 May 2024 19:39:51 +0800 Subject: [PATCH 1/3] add httpx and aiohttp as dev dependencies --- pyproject.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 0c3ec4f..00429a6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,6 +47,8 @@ types-freezegun = "^1.1.6" urllib3 = "< 1.27" furo = "^2023.9.10" ruff = "^0.0.292" +httpx = "^0.27.0" +aiohttp = "^3.9.5" [tool.pytest.ini_options] asyncio_mode = "auto" From 5871f11dc5983f3afcc8c16b9c3f897f704e9260 Mon Sep 17 00:00:00 2001 From: AN Long Date: Wed, 29 May 2024 20:48:11 +0800 Subject: [PATCH 2/3] remove the installation process for extra deps in CI --- .github/workflows/workflow.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index b956dd8..6485097 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -54,7 +54,7 @@ jobs: path: poetry.lock key: ${{ github.sha }}-${{ matrix.python-version }} - run: curl -sSL https://install.python-poetry.org | python3 - - - run: poetry install --extras aiohttp --extras httpx + - run: poetry install - run: poetry run pytest --verbose mypy: @@ -74,7 +74,7 @@ jobs: path: poetry.lock key: ${{ github.sha }}-${{ matrix.python-version }} - run: curl -sSL https://install.python-poetry.org | python3 - - - run: poetry install --extras aiohttp --extras httpx + - run: poetry install - run: poetry run mypy isort: @@ -91,7 +91,7 @@ jobs: path: poetry.lock key: ${{ github.sha }}-3.12 - run: curl -sSL https://install.python-poetry.org | python3 - - - run: poetry install --extras aiohttp --extras httpx + - run: poetry install - run: poetry run isort --check --diff src tests black: @@ -108,7 +108,7 @@ jobs: path: poetry.lock key: ${{ github.sha }}-3.12 - run: curl -sSL https://install.python-poetry.org | python3 - - - run: poetry install --extras aiohttp --extras httpx + - run: poetry install - run: poetry run black --check src/ tests/ ruff: @@ -125,5 +125,5 @@ jobs: path: poetry.lock key: ${{ github.sha }}-3.12 - run: curl -sSL https://install.python-poetry.org | python3 - - - run: poetry install --extras aiohttp --extras httpx + - run: poetry install - run: poetry run ruff check src/ tests/ From 4c28e5400403e4dd1e7858d656e19bf47464856a Mon Sep 17 00:00:00 2001 From: AN Long Date: Wed, 29 May 2024 21:07:07 +0800 Subject: [PATCH 3/3] align the versions in extra and dev dependencies --- pyproject.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 00429a6..e0962c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,8 +47,8 @@ types-freezegun = "^1.1.6" urllib3 = "< 1.27" furo = "^2023.9.10" ruff = "^0.0.292" -httpx = "^0.27.0" -aiohttp = "^3.9.5" +httpx = ">=0.15.0 <1.0.0" +aiohttp = "^3.6.2" [tool.pytest.ini_options] asyncio_mode = "auto"