From 0bec0253c256fcf59add5874e256872de2d1da44 Mon Sep 17 00:00:00 2001 From: auronandace Date: Wed, 22 Jul 2026 13:29:09 +0100 Subject: [PATCH] package python3-urllib3 and python3-requests --- recipes/tests/wasi-testsuite/recipe.toml | 4 +-- .../dev/python/python3-requests/recipe.toml | 24 ++++++++++++++++++ .../dev/python/python3-urllib3/recipe.toml | 25 +++++++++++++++++++ 3 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 recipes/wip/dev/python/python3-requests/recipe.toml create mode 100644 recipes/wip/dev/python/python3-urllib3/recipe.toml diff --git a/recipes/tests/wasi-testsuite/recipe.toml b/recipes/tests/wasi-testsuite/recipe.toml index 67bf73cd1..a4598290b 100644 --- a/recipes/tests/wasi-testsuite/recipe.toml +++ b/recipes/tests/wasi-testsuite/recipe.toml @@ -1,4 +1,3 @@ -# TODO compiles but fails to find request module when running tests [source] git = "https://github.com/WebAssembly/wasi-testsuite" branch = "prod/testsuite-base" @@ -13,5 +12,6 @@ cp -rv "${COOKBOOK_SOURCE}"/* "${COOKBOOK_STAGE}/home/user/wasi-testsuite" [package] dependencies = [ "python312", - "python3-colorama" + "python3-colorama", + "python3-requests", ] diff --git a/recipes/wip/dev/python/python3-requests/recipe.toml b/recipes/wip/dev/python/python3-requests/recipe.toml new file mode 100644 index 000000000..1d1b984ec --- /dev/null +++ b/recipes/wip/dev/python/python3-requests/recipe.toml @@ -0,0 +1,24 @@ +# TODO compiles but requires testing +# FIXME remove --no-deps when pip dependency handling works properly +[source] +git = "https://github.com/psf/requests" +rev = "v2.34.2" +shallow_clone = true + +[build] +template = "python" +pipflags = ["--no-deps"] +dev-dependencies = [ + "host:python312", + "python312", + "python3-setuptools", +] + +[package] +dependencies = [ + "python312", + "python3-charset_normalizer", + "python3-idna", + "python3-urllib3", + "python-certifi", +] diff --git a/recipes/wip/dev/python/python3-urllib3/recipe.toml b/recipes/wip/dev/python/python3-urllib3/recipe.toml new file mode 100644 index 000000000..9ba1e705c --- /dev/null +++ b/recipes/wip/dev/python/python3-urllib3/recipe.toml @@ -0,0 +1,25 @@ +# TODO compiles but requires testing +[source] +git = "https://github.com/urllib3/urllib3" +rev = "2.7.0" +shallow_clone = true + +[build] +template = "python" +dev-dependencies = [ + "host:python312", + "python312", + "python3-hatchling", + "python3-hatch-vcs", + "python3-setuptools-scm", + "python3-pathspec", + "python3-pluggy", + "python3-vcs-versioning", + "python3-packaging", + "python3-trove-classifiers", +] + +[package] +dependencies = [ + "python312" +]