Add python3-httpx support
cover Add python3-httpx support
This series adds support for python3-httpx and its dependencies.
Richard Leitner (5):
python3-socksio: add recipe for v1.0.0
python3-anyio: add recipe for v4.2.0
python3-sniffio: add recipe for v1.3.0
python3-httpcore: add recipe for v1.0.2
python3-httpx: add recipe for v0.26.0
.../python/python3-anyio_4.2.0.bb | 23 ++++++++++ .../python/python3-httpcore_1.0.2.bb | 26 +++++++++++ .../python/python3-httpx_0.26.0.bb | 44 +++++++++++++++++++ .../python/python3-sniffio_1.3.0.bb | 12 +++++ .../0001-Unpin-flit-core-dependency.patch | 21 +++++++++ .../python/python3-socksio_1.0.0.bb | 10 +++++ 6 files changed, 136 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-anyio_4.2.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-httpcore_1.0.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-httpx_0.26.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-socksio/0001-Unpin-flit-core-dependency.patch create mode 100644 meta-python/recipes-devtools/python/python3-socksio_1.0.0.bb
Signature · 1 line
2.40.1
PATCH 1/5 python3-socksio: add recipe for v1.0.0
Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5. This recipe uses pypi as source:
https://pypi.org/project/socksio
--- .../0001-Unpin-flit-core-dependency.patch | 21 +++++++++++++++++++ .../python/python3-socksio_1.0.0.bb | 10 +++++++++ 2 files changed, 31 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-socksio/0001-Unpin-flit-core-dependency.patch create mode 100644 meta-python/recipes-devtools/python/python3-socksio_1.0.0.bb
meta-python/recipes-devtools/python/python3-socksio/0001-Unpin-flit-core-dependency.patch new file +21 -0
@@ -0,0 +1,21 @@ +From 5c50fd76e7459bb822ff8f712172a78e21b8dd04 Mon Sep 17 00:00:00 2001 +From: Theodore Ni <[email protected]> +Date: Sun, 13 Aug 2023 09:21:49 -0700 +Subject: [PATCH] Unpin flit-core dependency + +Upstream-Status: Submitted [https://github.com/sethmlarson/socksio/pull/61] +--- + pyproject.toml | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 2d6c5a3..60c63ea 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -1,5 +1,5 @@ + [build-system] +-requires = ["flit_core >=2,<3"] ++requires = ["flit_core >=2"] + build-backend = "flit_core.buildapi" + + [tool.flit.metadata]
meta-python/recipes-devtools/python/python3-socksio_1.0.0.bb new file +10 -0
@@ -0,0 +1,10 @@ +SUMMARY = "Sans-I/O implementation of SOCKS4, SOCKS4A, and SOCKS5." +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=0b4dda8edb09eec767aaded3cbf8f6b1" + +inherit pypi python_flit_core + +SRC_URI += "file://0001-Unpin-flit-core-dependency.patch" + +SRC_URI[sha256sum] = "f88beb3da5b5c38b9890469de67d0cb0f9d494b78b106ca1845f96c10b91c4ac"
Signature · 1 line
2.40.1
PATCH 2/5 python3-anyio: add recipe for v4.2.0
In reply to Richard LeitnerHigh level compatibility layer for multiple asynchronous event loop implementations.
This recipe is currently provided without trio support, as the author has no use for it and it would require to add a new python3-trio recipe.
This recipe uses pypi as source:
https://pypi.org/project/anyio
--- .../python/python3-anyio_4.2.0.bb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-anyio_4.2.0.bb
meta-python/recipes-devtools/python/python3-anyio_4.2.0.bb new file +23 -0
@@ -0,0 +1,23 @@ +SUMMARY = "High level compatibility layer for multiple asynchronous event loop implementations" +SECTION = "devel/python" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c0a769411d2af7894099e8ff75058c9f" + +inherit pypi python_setuptools_build_meta + +SRC_URI[sha256sum] = "e1875bb4b4e2de1669f4bc7869b6d3f54231cdced71605e6e64c9be77e3be50f" + +DEPENDS += " \ + python3-setuptools-scm-native \ +" + +# Don't provide "trio" PACKAGECONFIG as nothing provides "python3-trio" currently. +# If somebody needs this please feel free to add python3-trio and enable the +# packageconfig below: +#PACKAGECONFIG ??= "" +#PACKAGECONFIG[trio] = ",,,python3-trio" + +RDEPENDS:${PN} += "\ + python3-idna \ + python3-sniffio \ +"
Signature · 1 line
2.40.1
PATCH 3/5 python3-sniffio: add recipe for v1.3.0
In reply to Richard LeitnerSniff out which async library your code is running under. This recipe uses pypi as source:
https://pypi.org/project/sniffio/
--- .../recipes-devtools/python/python3-sniffio_1.3.0.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb
meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb new file +12 -0
@@ -0,0 +1,12 @@ +SUMMARY = "Sniff out which async library your code is running under" +SECTION = "devel/python" +LICENSE = "MIT | Apache-2.0" +LIC_FILES_CHKSUM = "\ + file://LICENSE;md5=fa7b86389e58dd4087a8d2b833e5fe96 \ + file://LICENSE.MIT;md5=e62ba5042d5983462ad229f5aec1576c \ + file://LICENSE.APACHE2;md5=3b83ef96387f14655fc854ddc3c6bd57 \ +" + +inherit pypi setuptools3 + +SRC_URI[sha256sum] = "e60305c5e5d314f5389259b7f22aaa33d8f7dee49763119234af3755c55b9101"
Signature · 1 line
2.40.1
PATCH 4/5 python3-httpcore: add recipe for v1.0.2
In reply to Richard LeitnerA minimal low-level HTTP client.
This recipe is currently provided without trio support, as the author has no use for it and it would require to add a new python3-trio recipe.
This recipe uses pypi as source:
https://pypi.org/project/httpcore
--- .../python/python3-httpcore_1.0.2.bb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-httpcore_1.0.2.bb
meta-python/recipes-devtools/python/python3-httpcore_1.0.2.bb new file +26 -0
@@ -0,0 +1,26 @@ +SUMMARY = "A minimal low-level HTTP client." +SECTION = "devel/python" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=1c1f23b073da202e1f4f9e426490210c" + +inherit pypi python_hatchling + +SRC_URI[sha256sum] = "9fc092e4799b26174648e54b74ed5f683132a464e95643b226e00c2ed2fa6535" + +DEPENDS += "\ + python3-hatch-fancy-pypi-readme-native \ +" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[http2] = ",,,python3-h2" +PACKAGECONFIG[socks] = ",,,python3-socksio" +PACKAGECONFIG[asyncio] = ",,,python3-anyio" +# Don't provide "trio" PACKAGECONFIG as nothing provides "python3-trio" currently. +# If somebody needs this please feel free to add python3-trio and enable the +# packageconfig below: +#PACKAGECONFIG[trio] = ",,,python3-trio" + +RDEPENDS:${PN} += "\ + python3-certifi \ + python3-h11 \ +"
Signature · 1 line
2.40.1
PATCH 5/5 python3-httpx: add recipe for v0.26.0
In reply to Richard LeitnerThe next generation HTTP client. This recipe uses pypi as source:
https://pypi.org/project/httpx
--- .../python/python3-httpx_0.26.0.bb | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-httpx_0.26.0.bb
meta-python/recipes-devtools/python/python3-httpx_0.26.0.bb new file +44 -0
@@ -0,0 +1,44 @@ +SUMMARY = "A next generation HTTP client for Python." +SECTION = "devel/python" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=c624803bdf6fc1c4ce39f5ae11d7bd05" + +inherit pypi python_hatchling + +SRC_URI[sha256sum] = "451b55c30d5185ea6b23c2c793abf9bb237d2a7dfb901ced6ff69ad37ec1dfaf" + +DEPENDS += "\ + python3-hatch-fancy-pypi-readme-native \ +" + +PACKAGECONFIG ??= "" +PACKAGECONFIG[brotli] = ",,,python3-brotli" +PACKAGECONFIG[http2] = ",,,python3-h2" +PACKAGECONFIG[socks] = ",,,python3-socksio" + +RDEPENDS:${PN} += "\ + python3-anyio \ + python3-certifi \ + python3-httpcore \ + python3-idna \ + python3-sniffio \ +" + +PACKAGES += "\ + ${PN}-cli \ +" + +RDEPENDS:${PN}-cli += "\ + ${PN} \ + python3-click \ + python3-pygments \ + python3-rich \ +" + +FILES:${PN} = "\ + /usr/lib/python${PYTHON_BASEVERSION} \ +" + +FILES:${PN}-cli = "\ + /usr/bin/httpx \ +"
Signature · 1 line
2.40.1
Quoted 3 lines · Richard Leitner via lists.openembedded.org
This series adds support for python3-httpx and its dependencies.
Can you look into adding ptest also for these new packages? It doesn't necessarily block adding them, but we don't want to keep piling on technical debt of more recipes without ptest.
Quoted 42 lines
Richard Leitner (5):
python3-socksio: add recipe for v1.0.0
python3-anyio: add recipe for v4.2.0
python3-sniffio: add recipe for v1.3.0
python3-httpcore: add recipe for v1.0.2
python3-httpx: add recipe for v0.26.0.../python/python3-anyio_4.2.0.bb | 23 ++++++++++ .../python/python3-httpcore_1.0.2.bb | 26 +++++++++++ .../python/python3-httpx_0.26.0.bb | 44 +++++++++++++++++++ .../python/python3-sniffio_1.3.0.bb | 12 +++++ .../0001-Unpin-flit-core-dependency.patch | 21 +++++++++ .../python/python3-socksio_1.0.0.bb | 10 +++++ 6 files changed, 136 insertions(+) create mode 100644 meta-python/recipes-devtools/python/ python3-anyio_4.2.0.bb create mode 100644 meta-python/recipes-devtools/python/ python3-httpcore_1.0.2.bb create mode 100644 meta-python/recipes-devtools/python/ python3-httpx_0.26.0.bb create mode 100644 meta-python/recipes-devtools/python/ python3-sniffio_1.3.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-socksio/0001-Unpin-flit-core-dependency.patch create mode 100644 meta-python/recipes-devtools/python/python3-socksio_1.0.0.bb
--
2.40.1-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#108567):
https://lists.openembedded.org/g/openembedded-devel/message/108567
Mute This Topic: https://lists.openembedded.org/mt/104175047/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 9 lines · Tim Orling
Quoted 3 lines · Richard Leitner via lists.openembedded.org
This series adds support for python3-httpx and its dependencies.
Can you look into adding ptest also for these new packages? It doesn't necessarily block adding them, but we don't want to keep piling on technical debt of more recipes without ptest.
I think this is a good idea. We run ptests for meta-python regularly as acceptance and do find issues these days. So adding ptest would be good here, perhaps for meta-python it could be made a needed thing for new recipes.
Quoted 38 lines
Quoted 23 lines
Richard Leitner (5):
python3-socksio: add recipe for v1.0.0
python3-anyio: add recipe for v4.2.0
python3-sniffio: add recipe for v1.3.0
python3-httpcore: add recipe for v1.0.2
python3-httpx: add recipe for v0.26.0.../python/python3-anyio_4.2.0.bb | 23 ++++++++++ .../python/python3-httpcore_1.0.2.bb | 26 +++++++++++ .../python/python3-httpx_0.26.0.bb | 44 +++++++++++++++++++ .../python/python3-sniffio_1.3.0.bb | 12 +++++ .../0001-Unpin-flit-core-dependency.patch | 21 +++++++++ .../python/python3-socksio_1.0.0.bb | 10 +++++ 6 files changed, 136 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-anyio_4.2.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-httpcore_1.0.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-httpx_0.26.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-socksio/0001-Unpin-flit-core-dependency.patch create mode 100644 meta-python/recipes-devtools/python/python3-socksio_1.0.0.bbQuoted 6 lines
--
2.40.1-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#108574): https://lists.openembedded.org/g/openembedded-devel/message/108574
Mute This Topic: https://lists.openembedded.org/mt/104175047/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Quoted 10 lines · Khem Raj
Quoted 4 lines · Tim Orling
On Mon, Feb 5, 2024 at 4:58 AM Richard Leitner via
Quoted 4 lines · lists.openembedded.org
Quoted 3 lines
This series adds support for python3-httpx and its dependencies.
Quoted 9 lines
Quoted 1 line
Can you look into adding ptest also for these new packages? It doesn't
necessarily block adding them, but we don't want to keep piling on technical debt of more recipes without ptest.
I think this is a good idea. We run ptests for meta-python regularly as acceptance and do find issues these days. So adding ptest would be good here, perhaps for meta-python it could be made a needed thing for new recipes.
I am definitely leaning in that direction, but I also know that some of the dependency trees get very deep very quickly. This is one of the reasons I have wished for recursive "devtool add", but that is an entirely different topic.
Quoted 51 lines
Quoted 10 lines
Quoted 10 lines
Richard Leitner (5):
python3-socksio: add recipe for v1.0.0
python3-anyio: add recipe for v4.2.0
python3-sniffio: add recipe for v1.3.0
python3-httpcore: add recipe for v1.0.2
python3-httpx: add recipe for v0.26.0Quoted 8 lines
Quoted 8 lines
.../python/python3-anyio_4.2.0.bb | 23 ++++++++++ .../python/python3-httpcore_1.0.2.bb | 26 +++++++++++ .../python/python3-httpx_0.26.0.bb | 44 +++++++++++++++++++ .../python/python3-sniffio_1.3.0.bb | 12 +++++ .../0001-Unpin-flit-core-dependency.patch | 21 +++++++++ .../python/python3-socksio_1.0.0.bb | 10 +++++ 6 files changed, 136 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-anyio_4.2.0.bb
Quoted 1 line
Quoted 1 line
create mode 100644 meta-python/recipes-devtools/python/python3-httpcore_1.0.2.bb
Quoted 1 line
Quoted 1 line
create mode 100644 meta-python/recipes-devtools/python/python3-httpx_0.26.0.bb
Quoted 1 line
Quoted 1 line
create mode 100644 meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb
Quoted 1 line
Quoted 1 line
create mode 100644
meta-python/recipes-devtools/python/python3-socksio/0001-Unpin-flit-core-dependency.patchQuoted 1 line
Quoted 1 line
create mode 100644 meta-python/recipes-devtools/python/python3-socksio_1.0.0.bb
Quoted 10 lines
Quoted 7 lines
--
2.40.1-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#108576):
https://lists.openembedded.org/g/openembedded-devel/message/108576
Mute This Topic: https://lists.openembedded.org/mt/104175047/924729
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi Tim, Hi Khem,
thanks for your feedback!
Quoted 9 lines · Khem Raj
Quoted 8 lines · Tim Orling
Quoted 3 lines · Richard Leitner via lists.openembedded.org
This series adds support for python3-httpx and its dependencies.
Quoted 6 lines
Quoted 1 line
Can you look into adding ptest also for these new packages? It doesn't necessarily block adding them, but we don't want to keep piling on technical debt of more recipes without ptest.
I think this is a good idea. We run ptests for meta-python regularly as acceptance and do find issues these days. So adding ptest would be good here, perhaps for meta-python it could be made a needed thing for new recipes.
Sure. I will add them. Basically I totally agree on adding tests wherever possible. So from my side making them a requirement (unless there is a really good reason against) would be a good thing.
Should I send a v2 or a separate series for that?
As we are talking about "defaults" for python recipes. What is the "policy" for native and nativesdk? Is there any? Or should they be just added based on user needs/gut feeling?
regards;rl
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Richard Leitner (5):
python3-socksio: add recipe for v1.0.0
python3-anyio: add recipe for v4.2.0
python3-sniffio: add recipe for v1.3.0
python3-httpcore: add recipe for v1.0.2
python3-httpx: add recipe for v0.26.0.../python/python3-anyio_4.2.0.bb | 23 ++++++++++ .../python/python3-httpcore_1.0.2.bb | 26 +++++++++++ .../python/python3-httpx_0.26.0.bb | 44 +++++++++++++++++++ .../python/python3-sniffio_1.3.0.bb | 12 +++++ .../0001-Unpin-flit-core-dependency.patch | 21 +++++++++ .../python/python3-socksio_1.0.0.bb | 10 +++++ 6 files changed, 136 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-anyio_4.2.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-httpcore_1.0.2.bb create mode 100644 meta-python/recipes-devtools/python/python3-httpx_0.26.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-socksio/0001-Unpin-flit-core-dependency.patch create mode 100644 meta-python/recipes-devtools/python/python3-socksio_1.0.0.bb--
2.40.1
Quoted 24 lines · Richard Leitner
Hi Tim, Hi Khem,
thanks for your feedback!
Quoted 5 lines · Khem Raj
Quoted 4 lines · Tim Orling
On Mon, Feb 5, 2024 at 4:58 AM Richard Leitner via
Quoted 5 lines · lists.openembedded.org
Quoted 5 lines
Quoted 3 lines
This series adds support for python3-httpx and its dependencies.
Can you look into adding ptest also for these new packages? It doesn't
necessarily block adding them, but we don't want to keep piling on technical debt of more recipes without ptest.
Quoted 5 lines
I think this is a good idea. We run ptests for meta-python regularly as acceptance and do find issues these days. So adding ptest would be good here, perhaps for meta-python it could be made a needed thing for new recipes.
Quoted 6 lines
Sure. I will add them. Basically I totally agree on adding tests wherever possible. So from my side making them a requirement (unless there is a really good reason against) would be a good thing.
Should I send a v2 or a separate series for that?
If it turns out to be "straight forward" a v2 is good. but if you get bogged down maybe let us know and khem can just merge as is.
Quoted 5 lines
As we are talking about "defaults" for python recipes. What is the "policy" for native and nativesdk? Is there any? Or should they be just added based on user needs/gut feeling?
The trick is that many folks were just adding BBCLASSEXTENDS = "native nativesdk" blindly without ever verifying that those things build. So, if you verify that all your recipes build, you can add it. But if any recipes you depend on do not currently build with "native" or "nativesdk" then you would need to go make all of those also work.
For those that don't know: "bitbake -c populate_sdk python3-<foo>" is the syntax to build the nativesdk-python3-<foo> recipe and "bitbake python3-<foo>-native" is the syntax to build the native version. If either of those has missing dependencies, then you either need to fix all the dependent recipes or do not send a patch with it enabled.
Quoted 41 lines
regards;rl
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Richard Leitner (5):
python3-socksio: add recipe for v1.0.0
python3-anyio: add recipe for v4.2.0
python3-sniffio: add recipe for v1.3.0
python3-httpcore: add recipe for v1.0.2
python3-httpx: add recipe for v0.26.0Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
.../python/python3-anyio_4.2.0.bb | 23 ++++++++++ .../python/python3-httpcore_1.0.2.bb | 26 +++++++++++ .../python/python3-httpx_0.26.0.bb | 44+++++++++++++++++++
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
.../python/python3-sniffio_1.3.0.bb | 12 +++++ .../0001-Unpin-flit-core-dependency.patch | 21 +++++++++ .../python/python3-socksio_1.0.0.bb | 10 +++++ 6 files changed, 136 insertions(+) create mode 100644 meta-python/recipes-devtools/python/python3-anyio_4.2.0.bb
Quoted 1 line
Quoted 1 line
Quoted 1 line
create mode 100644 meta-python/recipes-devtools/python/python3-httpcore_1.0.2.bb
Quoted 1 line
Quoted 1 line
Quoted 1 line
create mode 100644 meta-python/recipes-devtools/python/python3-httpx_0.26.0.bb
Quoted 1 line
Quoted 1 line
Quoted 1 line
create mode 100644 meta-python/recipes-devtools/python/python3-sniffio_1.3.0.bb
Quoted 1 line
Quoted 1 line
Quoted 1 line
create mode 100644
meta-python/recipes-devtools/python/python3-socksio/0001-Unpin-flit-core-dependency.patchQuoted 1 line
Quoted 1 line
Quoted 1 line
create mode 100644 meta-python/recipes-devtools/python/python3-socksio_1.0.0.bb
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
--
2.40.1