From c7f571ae794da50d2d45fe8a693cdf6363c7373b Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen <645432-yan12125@users.noreply.gitlab.com> Date: Sat, 30 Nov 2024 14:23:18 +0800 Subject: [PATCH 1/3] update tests --- tests/test_android_sdk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_android_sdk.py b/tests/test_android_sdk.py index 28f9530..758e889 100644 --- a/tests/test_android_sdk.py +++ b/tests/test_android_sdk.py @@ -18,7 +18,7 @@ async def test_android_package(get_version): "android_sdk": "cmake;", "repo": "package", }) - assert version.startswith("3.30.") + assert version.startswith("3.") async def test_android_package_channel(get_version): From af7acde251cc870fb05ecba84aad9fe30eaa6616 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 30 Nov 2024 16:42:57 +0800 Subject: [PATCH 2/3] httpx_httpclient: pass None when params is empty see https://github.com/encode/httpx/discussions/3428 --- nvchecker/httpclient/httpx_httpclient.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvchecker/httpclient/httpx_httpclient.py b/nvchecker/httpclient/httpx_httpclient.py index 6604727..412eccb 100644 --- a/nvchecker/httpclient/httpx_httpclient.py +++ b/nvchecker/httpclient/httpx_httpclient.py @@ -49,7 +49,8 @@ class HttpxSession(BaseSession): method, url, json = json, content = body, headers = headers, follow_redirects = follow_redirects, - params = params, + # httpx checks for None but not () + params = params or None, ) err_cls: Optional[type] = None if r.status_code >= 500: From 3a87f920a5140bbf0fdf99a8a51c1652a517295a Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 30 Nov 2024 16:48:57 +0800 Subject: [PATCH 3/3] version 2.16 --- nvchecker/__init__.py | 2 +- setup.cfg | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nvchecker/__init__.py b/nvchecker/__init__.py index 4791cd2..bd3c7c2 100644 --- a/nvchecker/__init__.py +++ b/nvchecker/__init__.py @@ -1,4 +1,4 @@ # MIT licensed # Copyright (c) 2013-2024 lilydjwg , et al. -__version__ = '2.16dev' +__version__ = '2.16' diff --git a/setup.cfg b/setup.cfg index b395bd5..efa5296 100644 --- a/setup.cfg +++ b/setup.cfg @@ -29,6 +29,7 @@ classifiers = Programming Language :: Python :: 3.10 Programming Language :: Python :: 3.11 Programming Language :: Python :: 3.12 + Programming Language :: Python :: 3.13 Topic :: Internet Topic :: Internet :: WWW/HTTP Topic :: Software Development