From 1c90d9a4a4164193a6e590a116a18c4d7313bba8 Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Mon, 23 Dec 2024 13:45:33 -0300 Subject: [PATCH 1/2] add httpx recipe --- pythonforandroid/recipes/httpx/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 pythonforandroid/recipes/httpx/__init__.py diff --git a/pythonforandroid/recipes/httpx/__init__.py b/pythonforandroid/recipes/httpx/__init__.py new file mode 100644 index 0000000000..ed301987c8 --- /dev/null +++ b/pythonforandroid/recipes/httpx/__init__.py @@ -0,0 +1,12 @@ +from pythonforandroid.recipe import PyProjectRecipe + + +class HttpxRecipe(PyProjectRecipe): + name = "httpx" + version = "0.28.1" + url = ( + "https://pypi.python.org/packages/source/h/httpx/httpx-{version}.tar.gz" + ) + depends = ["httpcore", "h11", "certifi", "idna", "sniffio"] + +recipe = HttpxRecipe() From 054c5f3fb96e372c01bdf4f132644ee883da874e Mon Sep 17 00:00:00 2001 From: Dexer <73297572+DexerBR@users.noreply.github.com> Date: Mon, 23 Dec 2024 15:26:42 -0300 Subject: [PATCH 2/2] flake8 fix --- pythonforandroid/recipes/httpx/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonforandroid/recipes/httpx/__init__.py b/pythonforandroid/recipes/httpx/__init__.py index ed301987c8..60b34a8c46 100644 --- a/pythonforandroid/recipes/httpx/__init__.py +++ b/pythonforandroid/recipes/httpx/__init__.py @@ -9,4 +9,5 @@ class HttpxRecipe(PyProjectRecipe): ) depends = ["httpcore", "h11", "certifi", "idna", "sniffio"] + recipe = HttpxRecipe()