[meta-python] python3-fastapi and python3-uvicorn: add packages and dependencies

Submitted by Fagundes, Paulo on June 12, 2020, 7:54 p.m. | Patch ID: 173534

Details

Message ID 20200612195425.36226-1-paulohefagundes@gmail.com
State Changes Requested
Commit e6a44f551857b11115c8df45cda643f72a44b7f6
Headers show

Commit Message

Fagundes, Paulo June 12, 2020, 7:54 p.m.
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

Patch hide | download patch | download mbox

diff --git a/meta-python/recipes-devtools/python/python3-h11_0.9.0.bb b/meta-python/recipes-devtools/python/python3-h11_0.9.0.bb
new file mode 100644
index 000000000..6219032bb
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-h11_0.9.0.bb
@@ -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"
diff --git a/meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb b/meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb
new file mode 100644
index 000000000..cd4ac2dda
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb
@@ -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"
diff --git a/meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb b/meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb
new file mode 100644
index 000000000..4a627e2d4
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb
@@ -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"
diff --git a/meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb b/meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb
new file mode 100644
index 000000000..78b26f655
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb
@@ -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"
diff --git a/meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb b/meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb
new file mode 100644
index 000000000..c394be54f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb
@@ -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"
diff --git a/meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb b/meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb
new file mode 100644
index 000000000..9c8c8443d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb
@@ -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"
diff --git a/meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb b/meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb
new file mode 100644
index 000000000..f76346aa0
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb
@@ -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"

Comments

Fagundes, Paulo June 12, 2020, 8:01 p.m.
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
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#85094): https://lists.openembedded.org/g/openembedded-devel/message/85094
Mute This Topic: https://lists.openembedded.org/mt/74846738/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-
Tim Orling June 12, 2020, 9:46 p.m.
On Fri, Jun 12, 2020 at 1:01 PM Fagundes, Paulo <paulohefagundes@gmail.com>
wrote:

> 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.


> 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
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#85097): https://lists.openembedded.org/g/openembedded-devel/message/85097
Mute This Topic: https://lists.openembedded.org/mt/74846738/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-
Khem Raj July 23, 2020, 2:30 p.m.
On 6/12/20 12:54 PM, Fagundes, Paulo wrote:
> 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
> 

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


> diff --git a/meta-python/recipes-devtools/python/python3-h11_0.9.0.bb b/meta-python/recipes-devtools/python/python3-h11_0.9.0.bb
> new file mode 100644
> index 000000000..6219032bb
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-h11_0.9.0.bb
> @@ -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"
> diff --git a/meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb b/meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb
> new file mode 100644
> index 000000000..cd4ac2dda
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-httptools_0.1.1.bb
> @@ -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"
> diff --git a/meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb b/meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb
> new file mode 100644
> index 000000000..4a627e2d4
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-pydantic_1.5.1.bb
> @@ -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"
> diff --git a/meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb b/meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb
> new file mode 100644
> index 000000000..78b26f655
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-starlette_0.13.4.bb
> @@ -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"
> diff --git a/meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb b/meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb
> new file mode 100644
> index 000000000..c394be54f
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-uvicorn_0.11.5.bb
> @@ -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"
> diff --git a/meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb b/meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb
> new file mode 100644
> index 000000000..9c8c8443d
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-uvloop_0.14.0.bb
> @@ -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"
> diff --git a/meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb b/meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb
> new file mode 100644
> index 000000000..f76346aa0
> --- /dev/null
> +++ b/meta-python/recipes-devtools/python/python3-wsproto_0.15.0.bb
> @@ -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"
> 
> 
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#85872): https://lists.openembedded.org/g/openembedded-devel/message/85872
Mute This Topic: https://lists.openembedded.org/mt/74846738/3617530
Group Owner: openembedded-devel+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub  [oe-patchwork@oe-patch.openembedded.org]
-=-=-=-=-=-=-=-=-=-=-=-