diff --git a/README.md b/README.md index 2938839..87b39d2 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,10 @@ pysenz uses the `restapi`, `openid`, and `offline_access` scope, this is set as ```python from asyncio import run from pysenz import SENZAuth, SENZAPI -import httpx +import httpx2 async def main(): - async with httpx.AsyncClient() as httpx_client: + async with httpx2.AsyncClient() as httpx_client: senz_auth = SENZAuth( httpx_client, "YOUR_CLIENT_ID", diff --git a/pysenz/auth.py b/pysenz/auth.py index 6ef570f..41160e4 100644 --- a/pysenz/auth.py +++ b/pysenz/auth.py @@ -23,7 +23,7 @@ from authlib.integrations.httpx_client import AsyncOAuth2Client from authlib.oauth2.rfc6749 import OAuth2Token -from httpx import AsyncClient, Response +from httpx2 import AsyncClient, Response AUTHORIZATION_ENDPOINT = "https://id.senzthermostat.chemelex.com/connect/authorize" TOKEN_ENDPOINT = "https://id.senzthermostat.chemelex.com/connect/token" diff --git a/requirements-dev.txt b/requirements-dev.txt index 1d1f386..fd87a3c 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,4 @@ -httpx +httpx2 build bump2version==1.0.1 diff --git a/setup.cfg b/setup.cfg index b1fc2fb..26081c0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = pysenz -version = 1.1.2 +version = 1.2.0 url = https://github.com/nordicopen/pysenz author = Åke Strandberg author_email = ake@strandberg.eu @@ -25,8 +25,8 @@ project_urls = [options] packages = find: install_requires = - httpx - authlib<1.8.0 + httpx2 + authlib python_requires = >=3.10 include_package_data = True