Skip to contentSkip to conversation

python3-fastapi and python3-uvicorn: add packages and dependencies

PATCH In review Fagundes, Paulo 3 participants 4 messages Jun 12, 2020 – Jul 23, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python3-fastapi and python3-uvicorn: add packages and dependencies

fastapi depends on
- pydantic
- starlette

uvicorn depends on
- click
- h11
- httptools
- uvloop
- websockets
- wsproto

---
 .../python/python3-h11_0.9.0.bb                 |  8 ++++++++
 .../python/python3-httptools_0.1.1.bb           |  8 ++++++++
 .../python/python3-pydantic_1.5.1.bb            | 12 ++++++++++++
 .../python/python3-starlette_0.13.4.bb          |  8 ++++++++
 .../python/python3-uvicorn_0.11.5.bb            | 17 +++++++++++++++++
 .../python/python3-uvloop_0.14.0.bb             |  8 ++++++++
 .../python/python3-wsproto_0.15.0.bb            |  8 ++++++++
 7 files changed, 69 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-h11_0.9.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb
meta-python/recipes-devtools/python/python3-h11_0.9.0.bb new file +8 -0
new file mode 100644
index 000000000..6219032bb
@@ -0,0 +1,8 @@
+SUMMARY = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
+HOMEPAGE = "https://github.com/python-hyper/h11"
+LICENSE = "MIT"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "53affae306153388512040e038519fa3"
+SRC_URI[sha256sum] = "33d4bca7be0fa039f4e84d50ab00531047e53d6ee8ffbc83501ea602c169cae1"
meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb new file +8 -0
new file mode 100644
index 000000000..cd4ac2dda
@@ -0,0 +1,8 @@
+SUMMARY = "A collection of framework independent HTTP protocol utils"
+HOMEPAGE = "https://github.com/MagicStack/httptools"
+LICENSE = "MIT"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "063a9b6f8c79cf5f11592e7a49715275"
+SRC_URI[sha256sum] = "41b573cf33f64a8f8f3400d0a7faf48e1888582b6f6e02b82b9bd4f0bf7497ce"
meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb new file +12 -0
new file mode 100644
index 000000000..4a627e2d4
@@ -0,0 +1,12 @@
+SUMMARY = "Data validation and settings management using python 3.6 type hinting"
+HOMEPAGE = "https://github.com/samuelcolvin/pydantic"
+LICENSE = "MIT"
+RDEPENDS_${PN} += "\
+    python3-image \
+    python3-typing \
+"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "866774950cb506f15c309875b7297240"
+SRC_URI[sha256sum] = "f0018613c7a0d19df3240c2a913849786f21b6539b9f23d85ce4067489dfacfa"
meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb new file +8 -0
new file mode 100644
index 000000000..78b26f655
@@ -0,0 +1,8 @@
+SUMMARY = "The little ASGI library that shines"
+HOMEPAGE = "https://www.starlette.io/"
+LICENSE = "BSD"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "888aa6af0a42e5d1f2aeea4941e8102d"
+SRC_URI[sha256sum] = "04fe51d86fd9a594d9b71356ed322ccde5c9b448fc716ac74155e5821a922f8d"
meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb new file +17 -0
new file mode 100644
index 000000000..c394be54f
@@ -0,0 +1,17 @@
+SUMMARY = "The lightning-fast ASGI server"
+HOMEPAGE = "https://www.uvicorn.org/"
+LICENSE = "BSD"
+RDEPENDS_${PN} += "\
+    python3-click \
+    python3-h11 \
+    python3-httptools \
+    python3-typing \
+    python3-uvloop \
+    python3-websockets \
+    python3-wsproto \
+"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "9f82b3674ced119596afe3b7b977f82c"
+SRC_URI[sha256sum] = "596eaa8645b6dbc24d6610e335f8ddf5f925b4c4b86fdc7146abb0bf0da65d17"
meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb new file +8 -0
new file mode 100644
index 000000000..9c8c8443d
@@ -0,0 +1,8 @@
+SUMMARY = "Fast implementation of asyncio event loop on top of libuv"
+HOMEPAGE = "http://github.com/MagicStack/uvloop"
+LICENSE = "MIT"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "a2f82abb676756f11f544c6b51caf171"
+SRC_URI[sha256sum] = "123ac9c0c7dd71464f58f1b4ee0bbd81285d96cdda8bc3519281b8973e3a461e"
meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb new file +8 -0
new file mode 100644
index 000000000..f76346aa0
@@ -0,0 +1,8 @@
+SUMMARY = "WebSockets state-machine based protocol implementation"
+HOMEPAGE = "https://github.com/python-hyper/wsproto/"
+LICENSE = "MIT"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "7d85f66da7ca9945b8bbfb8134900057"
+SRC_URI[sha256sum] = "614798c30e5dc2b3f65acc03d2d50842b97621487350ce79a80a711229edfa9d"
Signature · 1 line
2.27.0
#1 lore raw

this is only my second upstream patch to this project, so I'm still learning about email patches and about the standards. I'm not sure if it's ok to add multiple recipes to a single commit, but I added these because I added fastapi and uvicorn to our project and all of these dependencies were needed.

another thing to note is that some of my peers were having trouble building uvloop.
I was able to build uvloop just fine on my Arch Linux system, but my peers on Ubuntu 18.04 LTS got errors in the compile stage when uvloop tried to call ./configure

So if anyone can check that it works for them that would be great

Let me know if this patch is ok and if we need to separate it into different patches for each recipe let me know. Thanks

#2 lore raw
Quoted 6 lines · Paulo

this is only my second upstream patch to this project, so I'm still learning about email patches and about the standards. I'm not sure if it's ok to add multiple recipes to a single commit, but I added these because I added fastapi and uvicorn to our project and all of these dependencies were needed.

It’s very hard to review multiple additions in one email. Instead, stage the dependencies first (each as a separate commit) and then add the depending recipe.

This also makes handling patch review changes much easier, as each new recipe becomes atomic.

Quoted 12 lines

another thing to note is that some of my peers were having trouble building uvloop.
I was able to build uvloop just fine on my Arch Linux system, but my peers on Ubuntu 18.04 LTS got errors in the compile stage when uvloop tried to call ./configure

So if anyone can check that it works for them that would be great

Let me know if this patch is ok and if we need to separate it into different patches for each recipe let me know. Thanks

#3 lore raw
In reply to Fagundes, Paulo
Quoted 11 lines · Paulo

fastapi depends on
- pydantic
- starlette

uvicorn depends on
- click
- h11
- httptools
- uvloop
- websockets
- wsproto

Quoted 17 lines
---
 .../python/python3-h11_0.9.0.bb                 |  8 ++++++++
 .../python/python3-httptools_0.1.1.bb           |  8 ++++++++
 .../python/python3-pydantic_1.5.1.bb            | 12 ++++++++++++
 .../python/python3-starlette_0.13.4.bb          |  8 ++++++++
 .../python/python3-uvicorn_0.11.5.bb            | 17 +++++++++++++++++
 .../python/python3-uvloop_0.14.0.bb             |  8 ++++++++
 .../python/python3-wsproto_0.15.0.bb            |  8 ++++++++
 7 files changed, 69 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-h11_0.9.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb

all the recipes are also missing LIC_FILES_CHKSUM so when you address other comments in v2 consider this too

Quoted 115 lines
meta-python/recipes-devtools/python/python3-h11_0.9.0.bb new file +8 -0
new file mode 100644
index 000000000..6219032bb
@@ -0,0 +1,8 @@
+SUMMARY = "A pure-Python, bring-your-own-I/O implementation of HTTP/1.1"
+HOMEPAGE = "https://github.com/python-hyper/h11"
+LICENSE = "MIT"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "53affae306153388512040e038519fa3"
+SRC_URI[sha256sum] = "33d4bca7be0fa039f4e84d50ab00531047e53d6ee8ffbc83501ea602c169cae1"
meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb new file +8 -0
new file mode 100644
index 000000000..cd4ac2dda
@@ -0,0 +1,8 @@
+SUMMARY = "A collection of framework independent HTTP protocol utils"
+HOMEPAGE = "https://github.com/MagicStack/httptools"
+LICENSE = "MIT"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "063a9b6f8c79cf5f11592e7a49715275"
+SRC_URI[sha256sum] = "41b573cf33f64a8f8f3400d0a7faf48e1888582b6f6e02b82b9bd4f0bf7497ce"
meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb new file +12 -0
new file mode 100644
index 000000000..4a627e2d4
@@ -0,0 +1,12 @@
+SUMMARY = "Data validation and settings management using python 3.6 type hinting"
+HOMEPAGE = "https://github.com/samuelcolvin/pydantic"
+LICENSE = "MIT"
+RDEPENDS_${PN} += "\
+    python3-image \
+    python3-typing \
+"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "866774950cb506f15c309875b7297240"
+SRC_URI[sha256sum] = "f0018613c7a0d19df3240c2a913849786f21b6539b9f23d85ce4067489dfacfa"
meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb new file +8 -0
new file mode 100644
index 000000000..78b26f655
@@ -0,0 +1,8 @@
+SUMMARY = "The little ASGI library that shines"
+HOMEPAGE = "https://www.starlette.io/"
+LICENSE = "BSD"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "888aa6af0a42e5d1f2aeea4941e8102d"
+SRC_URI[sha256sum] = "04fe51d86fd9a594d9b71356ed322ccde5c9b448fc716ac74155e5821a922f8d"
meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb new file +17 -0
new file mode 100644
index 000000000..c394be54f
@@ -0,0 +1,17 @@
+SUMMARY = "The lightning-fast ASGI server"
+HOMEPAGE = "https://www.uvicorn.org/"
+LICENSE = "BSD"
+RDEPENDS_${PN} += "\
+    python3-click \
+    python3-h11 \
+    python3-httptools \
+    python3-typing \
+    python3-uvloop \
+    python3-websockets \
+    python3-wsproto \
+"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "9f82b3674ced119596afe3b7b977f82c"
+SRC_URI[sha256sum] = "596eaa8645b6dbc24d6610e335f8ddf5f925b4c4b86fdc7146abb0bf0da65d17"
meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb new file +8 -0
new file mode 100644
index 000000000..9c8c8443d
@@ -0,0 +1,8 @@
+SUMMARY = "Fast implementation of asyncio event loop on top of libuv"
+HOMEPAGE = "http://github.com/MagicStack/uvloop"
+LICENSE = "MIT"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "a2f82abb676756f11f544c6b51caf171"
+SRC_URI[sha256sum] = "123ac9c0c7dd71464f58f1b4ee0bbd81285d96cdda8bc3519281b8973e3a461e"
meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb new file +8 -0
new file mode 100644
index 000000000..f76346aa0
@@ -0,0 +1,8 @@
+SUMMARY = "WebSockets state-machine based protocol implementation"
+HOMEPAGE = "https://github.com/python-hyper/wsproto/"
+LICENSE = "MIT"
+
+inherit pypi setuptools3
+
+SRC_URI[md5sum] = "7d85f66da7ca9945b8bbfb8134900057"
+SRC_URI[sha256sum] = "614798c30e5dc2b3f65acc03d2d50842b97621487350ce79a80a711229edfa9d"