From b2215a9906a49db8246e63b32dcfbf51b37ede59 Mon Sep 17 00:00:00 2001 From: "A.Shpak" Date: Mon, 9 Dec 2024 23:42:08 +0300 Subject: [PATCH] Minor fixes for httpx 0.28.x --- .github/workflows/ci.yml | 6 +++--- httpx_socks/_async_transport.py | 1 - httpx_socks/_sync_transport.py | 1 - requirements.txt | 2 +- setup.py | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42647fa..b0b3659 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,9 +16,9 @@ jobs: os: [ubuntu-latest] steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -34,7 +34,7 @@ jobs: # run: python -m pytest tests --cov=./httpx_socks --cov-report term-missing -s run: python -m pytest tests --cov=./httpx_socks --cov-report xml - name: Upload coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v5 with: file: ./coverage.xml flags: unit diff --git a/httpx_socks/_async_transport.py b/httpx_socks/_async_transport.py index b15405b..5b9c332 100644 --- a/httpx_socks/_async_transport.py +++ b/httpx_socks/_async_transport.py @@ -34,7 +34,6 @@ def __init__( verify=verify, cert=cert, trust_env=trust_env, - http2=kwargs.get('http2', False), ) self._pool = AsyncProxy( diff --git a/httpx_socks/_sync_transport.py b/httpx_socks/_sync_transport.py index 179f86b..0d9e208 100644 --- a/httpx_socks/_sync_transport.py +++ b/httpx_socks/_sync_transport.py @@ -35,7 +35,6 @@ def __init__( verify=verify, cert=cert, trust_env=trust_env, - http2=kwargs.get('http2', False), ) self._pool = SyncProxy( diff --git a/requirements.txt b/requirements.txt index b698a37..cace48c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -httpx>=0.21.0,<0.28.0 +httpx>=0.21.0,<0.29.0 httpcore>=0.17.3,<2.0 anyio==3.* python-socks>=2.0.0 diff --git a/setup.py b/setup.py index a1c571e..f1bf30d 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ def get_long_description(): packages=['httpx_socks'], keywords='httpx asyncio socks socks5 socks4 http proxy', install_requires=[ - 'httpx>=0.21.0,<0.28.0', + 'httpx>=0.21.0,<0.29.0', 'httpcore>=0.17.3,<2.0', 'python-socks>=2.0.0', ],