Skip to contentSkip to conversation

package/python-anyio: new package

PATCH In review James Hilliard 2 participants 5 messages Dec 14, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 package/python-anyio: new package

---
 package/Config.in                      |  1 +
 package/python-anyio/Config.in         |  9 +++++++++
 package/python-anyio/python-anyio.hash |  5 +++++
 package/python-anyio/python-anyio.mk   | 15 +++++++++++++++
 4 files changed, 30 insertions(+)
 create mode 100644 package/python-anyio/Config.in
 create mode 100644 package/python-anyio/python-anyio.hash
 create mode 100644 package/python-anyio/python-anyio.mk
package/Config.in +1 -0
index fcc09b07c4..c023e0ef3f 100644
@@ -976,6 +976,7 @@ menu "External python modules"
 	source "package/python-alsaaudio/Config.in"
 	source "package/python-annotated-types/Config.in"
 	source "package/python-ansicolors/Config.in"
+	source "package/python-anyio/Config.in"
 	source "package/python-apispec/Config.in"
 	source "package/python-appdirs/Config.in"
 	source "package/python-argh/Config.in"
package/python-anyio/Config.in new file +9 -0
new file mode 100644
index 0000000000..d843f37af0
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_PYTHON_ANYIO
+	bool "python-anyio"
+	select BR2_PACKAGE_PYTHON_IDNA # runtime
+	select BR2_PACKAGE_PYTHON_SNIFFIO # runtime
+	help
+	  High level compatibility layer for multiple asynchronous
+	  event loop implementations.
+
+	  https://github.com/agronholm/anyio
package/python-anyio/python-anyio.hash new file +5 -0
new file mode 100644
index 0000000000..7548563905
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/anyio/json
+md5  fd068b41b2badac98b4a12bba29c5055  anyio-4.1.0.tar.gz
+sha256  5a0bec7085176715be77df87fc66d6c9d70626bd752fcc85f57cdbee5b3760da  anyio-4.1.0.tar.gz
+# Locally computed sha256 checksums
+sha256  5361ac9dc58f2ef5fd2e9b09c68297c17f04950909bbc8023bdb82eacf22c2b0  LICENSE
package/python-anyio/python-anyio.mk new file +15 -0
new file mode 100644
index 0000000000..142681c1d3
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-anyio
+#
+################################################################################
+
+PYTHON_ANYIO_VERSION = 4.1.0
+PYTHON_ANYIO_SOURCE = anyio-$(PYTHON_ANYIO_VERSION).tar.gz
+PYTHON_ANYIO_SITE = https://files.pythonhosted.org/packages/6e/57/075e07fb01ae2b740289ec9daec670f60c06f62d04b23a68077fd5d73fab
+PYTHON_ANYIO_SETUP_TYPE = setuptools
+PYTHON_ANYIO_LICENSE = MIT
+PYTHON_ANYIO_LICENSE_FILES = LICENSE
+PYTHON_ANYIO_DEPENDENCIES = host-python-setuptools-scm
+
+$(eval $(python-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/3 package/python-starlette: new package

---
 package/Config.in                              |  1 +
 package/python-starlette/Config.in             |  7 +++++++
 package/python-starlette/python-starlette.hash |  5 +++++
 package/python-starlette/python-starlette.mk   | 15 +++++++++++++++
 4 files changed, 28 insertions(+)
 create mode 100644 package/python-starlette/Config.in
 create mode 100644 package/python-starlette/python-starlette.hash
 create mode 100644 package/python-starlette/python-starlette.mk
package/Config.in +1 -0
index c023e0ef3f..3a4bf21a2a 100644
@@ -1338,6 +1338,7 @@ menu "External python modules"
 	source "package/python-sqliteschema/Config.in"
 	source "package/python-sqlparse/Config.in"
 	source "package/python-stack-data/Config.in"
+	source "package/python-starlette/Config.in"
 	source "package/python-systemd/Config.in"
 	source "package/python-tabledata/Config.in"
 	source "package/python-tempora/Config.in"
package/python-starlette/Config.in new file +7 -0
new file mode 100644
index 0000000000..90f590689a
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_STARLETTE
+	bool "python-starlette"
+	select BR2_PACKAGE_PYTHON_ANYIO # runtime
+	help
+	  The little ASGI library that shines.
+
+	  https://github.com/encode/starlette
package/python-starlette/python-starlette.hash new file +5 -0
new file mode 100644
index 0000000000..3636a0c3f6
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/starlette/json
+md5  2146a2e81a0578bfb1f13c7975f10687  starlette-0.33.0.tar.gz
+sha256  8c21f9592451b2016300c5bbc54b181063367b62720a4048656c070319238897  starlette-0.33.0.tar.gz
+# Locally computed sha256 checksums
+sha256  dcb95677a02240243187e964f941847d19b17821cf99e5afae684fab328c19bf  LICENSE.md
package/python-starlette/python-starlette.mk new file +15 -0
new file mode 100644
index 0000000000..6e100c4ad5
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-starlette
+#
+################################################################################
+
+PYTHON_STARLETTE_VERSION = 0.33.0
+PYTHON_STARLETTE_SOURCE = starlette-$(PYTHON_STARLETTE_VERSION).tar.gz
+PYTHON_STARLETTE_SITE = https://files.pythonhosted.org/packages/33/cd/2d043173dd0e3d858828102041957d7b2290747e1371878a3bb4cc1380ec
+PYTHON_STARLETTE_SETUP_TYPE = pep517
+PYTHON_STARLETTE_LICENSE = BSD-3-Clause
+PYTHON_STARLETTE_LICENSE_FILES = LICENSE.md
+PYTHON_STARLETTE_DEPENDENCIES = host-python-hatchling
+
+$(eval $(python-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

PATCH 3/3 package/python-fastapi: new package

In reply to James Hilliard
---
 package/Config.in                          |  1 +
 package/python-fastapi/Config.in           | 12 ++++++++++++
 package/python-fastapi/python-fastapi.hash |  5 +++++
 package/python-fastapi/python-fastapi.mk   | 15 +++++++++++++++
 4 files changed, 33 insertions(+)
 create mode 100644 package/python-fastapi/Config.in
 create mode 100644 package/python-fastapi/python-fastapi.hash
 create mode 100644 package/python-fastapi/python-fastapi.mk
package/Config.in +1 -0
index 3a4bf21a2a..8a97eb2897 100644
@@ -1073,6 +1073,7 @@ menu "External python modules"
 	source "package/python-evdev/Config.in"
 	source "package/python-executing/Config.in"
 	source "package/python-falcon/Config.in"
+	source "package/python-fastapi/Config.in"
 	source "package/python-filelock/Config.in"
 	source "package/python-fire/Config.in"
 	source "package/python-flask/Config.in"
package/python-fastapi/Config.in new file +12 -0
new file mode 100644
index 0000000000..7d376d3dd7
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_FASTAPI
+	bool "python-fastapi"
+	depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-pydantic -> python-pydantic-core
+	select BR2_PACKAGE_PYTHON_ANYIO # runtime
+	select BR2_PACKAGE_PYTHON_PYDANTIC # runtime
+	select BR2_PACKAGE_PYTHON_STARLETTE # runtime
+	select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
+	help
+	  FastAPI framework, high performance, easy to learn, fast to
+	  code, ready for production.
+
+	  https://github.com/tiangolo/fastapi
package/python-fastapi/python-fastapi.hash new file +5 -0
new file mode 100644
index 0000000000..3dc1578cb7
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/fastapi/json
+md5  06bfa7c610fc9e81d05b0319eb70cae7  fastapi-0.105.0.tar.gz
+sha256  4d12838819aa52af244580675825e750ad67c9df4614f557a769606af902cf22  fastapi-0.105.0.tar.gz
+# Locally computed sha256 checksums
+sha256  4ec89ffc81485b97fec584b2d4a961032eeffe834453894fd9c1274906cc744e  LICENSE
package/python-fastapi/python-fastapi.mk new file +15 -0
new file mode 100644
index 0000000000..db86bfce30
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-fastapi
+#
+################################################################################
+
+PYTHON_FASTAPI_VERSION = 0.105.0
+PYTHON_FASTAPI_SOURCE = fastapi-$(PYTHON_FASTAPI_VERSION).tar.gz
+PYTHON_FASTAPI_SITE = https://files.pythonhosted.org/packages/77/bb/5941e6e2ce3020f64b539a49d39f49be05de17d0c47fea95012589f812a5
+PYTHON_FASTAPI_SETUP_TYPE = pep517
+PYTHON_FASTAPI_LICENSE = MIT
+PYTHON_FASTAPI_LICENSE_FILES = LICENSE
+PYTHON_FASTAPI_DEPENDENCIES = host-python-hatchling
+
+$(eval $(python-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw

Re: [Buildroot] [PATCH 3/3] package/python-fastapi: new package

Hi James,

fastapi claims to depend on starlette <0.28.0 and anyio < 4.0.0, which are not the versions that you add in this series.

As these are specifically added for fastapi, I think it's better to follow the fastapi supported versions and downgrade to starlette 0.27.0 and anyio 3.7.1

Best,
Marcus

Quoted 63 lines · James Hilliard
---
  package/Config.in                          |  1 +
  package/python-fastapi/Config.in           | 12 ++++++++++++
  package/python-fastapi/python-fastapi.hash |  5 +++++
  package/python-fastapi/python-fastapi.mk   | 15 +++++++++++++++
  4 files changed, 33 insertions(+)

create mode 100644 package/python-fastapi/Config.in create mode 100644 package/python-fastapi/python-fastapi.hash create mode 100644 package/python-fastapi/python-fastapi.mk

package/Config.in +1 -0
index 3a4bf21a2a..8a97eb2897 100644
@@ -1073,6 +1073,7 @@ menu "External python modules"
      source "package/python-evdev/Config.in"
      source "package/python-executing/Config.in"
      source "package/python-falcon/Config.in"
+     source "package/python-fastapi/Config.in"
      source "package/python-filelock/Config.in"
      source "package/python-fire/Config.in"
      source "package/python-flask/Config.in"
package/python-fastapi/Config.in new file +12 -0
new file mode 100644
index 0000000000..7d376d3dd7
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_FASTAPI
+     bool "python-fastapi"
+     depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-pydantic -> python-pydantic-core
+     select BR2_PACKAGE_PYTHON_ANYIO # runtime
+     select BR2_PACKAGE_PYTHON_PYDANTIC # runtime
+     select BR2_PACKAGE_PYTHON_STARLETTE # runtime
+     select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
+     help
+       FastAPI framework, high performance, easy to learn, fast to
+       code, ready for production.
+
+       https://github.com/tiangolo/fastapi
package/python-fastapi/python-fastapi.hash new file +5 -0
new file mode 100644
index 0000000000..3dc1578cb7
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/fastapi/json
+md5  06bfa7c610fc9e81d05b0319eb70cae7  fastapi-0.105.0.tar.gz
+sha256  4d12838819aa52af244580675825e750ad67c9df4614f557a769606af902cf22  fastapi-0.105.0.tar.gz
+# Locally computed sha256 checksums
+sha256  4ec89ffc81485b97fec584b2d4a961032eeffe834453894fd9c1274906cc744e  LICENSE
package/python-fastapi/python-fastapi.mk new file +5 -0
new file mode 100644
index 0000000000..db86bfce30
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-fastapi
+#
+################################################################################

package/python-fastapi/python-fastapi.mk line 15

Quoted 10 lines
package/python-fastapi/python-fastapi.mk new file +10 -0
+
+PYTHON_FASTAPI_VERSION = 0.105.0
+PYTHON_FASTAPI_SOURCE = fastapi-$(PYTHON_FASTAPI_VERSION).tar.gz
+PYTHON_FASTAPI_SITE = https://files.pythonhosted.org/packages/77/bb/5941e6e2ce3020f64b539a49d39f49be05de17d0c47fea95012589f812a5
+PYTHON_FASTAPI_SETUP_TYPE = pep517
+PYTHON_FASTAPI_LICENSE = MIT
+PYTHON_FASTAPI_LICENSE_FILES = LICENSE
+PYTHON_FASTAPI_DEPENDENCIES = host-python-hatchling
+
+$(eval $(python-package))

________________________________

othermo GmbH | Sitz der Gesellschaft: Alzenau | Amtsgericht Aschaffenburg: HRB 14783 | USt-IdNr.: DE319977978 | Geschäftsführung: Dr. Dennis Metz.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

Re: [Buildroot] [PATCH 3/3] package/python-fastapi: new package

Quoted 9 lines · Marcus Hoffmann

Hi James,

fastapi claims to depend on starlette <0.28.0 and anyio < 4.0.0, which are not the versions that you add in this series.

As these are specifically added for fastapi, I think it's better to follow the fastapi supported versions and downgrade to starlette 0.27.0 and anyio 3.7.1

Fixed in v2:
https://patchwork.ozlabs.org/project/buildroot/list/?series=386655

Quoted 80 lines

Best,
Marcus

Quoted 63 lines · James Hilliard
---
  package/Config.in                          |  1 +
  package/python-fastapi/Config.in           | 12 ++++++++++++
  package/python-fastapi/python-fastapi.hash |  5 +++++
  package/python-fastapi/python-fastapi.mk   | 15 +++++++++++++++
  4 files changed, 33 insertions(+)

create mode 100644 package/python-fastapi/Config.in create mode 100644 package/python-fastapi/python-fastapi.hash create mode 100644 package/python-fastapi/python-fastapi.mk

package/Config.in +1 -0
index 3a4bf21a2a..8a97eb2897 100644
@@ -1073,6 +1073,7 @@ menu "External python modules"
      source "package/python-evdev/Config.in"
      source "package/python-executing/Config.in"
      source "package/python-falcon/Config.in"
+     source "package/python-fastapi/Config.in"
      source "package/python-filelock/Config.in"
      source "package/python-fire/Config.in"
      source "package/python-flask/Config.in"
package/python-fastapi/Config.in new file +12 -0
new file mode 100644
index 0000000000..7d376d3dd7
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_PYTHON_FASTAPI
+     bool "python-fastapi"
+     depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-pydantic -> python-pydantic-core
+     select BR2_PACKAGE_PYTHON_ANYIO # runtime
+     select BR2_PACKAGE_PYTHON_PYDANTIC # runtime
+     select BR2_PACKAGE_PYTHON_STARLETTE # runtime
+     select BR2_PACKAGE_PYTHON_TYPING_EXTENSIONS # runtime
+     help
+       FastAPI framework, high performance, easy to learn, fast to
+       code, ready for production.
+
+       https://github.com/tiangolo/fastapi
package/python-fastapi/python-fastapi.hash new file +5 -0
new file mode 100644
index 0000000000..3dc1578cb7
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/fastapi/json
+md5  06bfa7c610fc9e81d05b0319eb70cae7  fastapi-0.105.0.tar.gz
+sha256  4d12838819aa52af244580675825e750ad67c9df4614f557a769606af902cf22  fastapi-0.105.0.tar.gz
+# Locally computed sha256 checksums
+sha256  4ec89ffc81485b97fec584b2d4a961032eeffe834453894fd9c1274906cc744e  LICENSE
package/python-fastapi/python-fastapi.mk new file +5 -0
new file mode 100644
index 0000000000..db86bfce30
@@ -0,0 +1,15 @@
+################################################################################
+#
+# python-fastapi
+#
+################################################################################

package/python-fastapi/python-fastapi.mk line 15

Quoted 10 lines
package/python-fastapi/python-fastapi.mk new file +10 -0
+
+PYTHON_FASTAPI_VERSION = 0.105.0
+PYTHON_FASTAPI_SOURCE = fastapi-$(PYTHON_FASTAPI_VERSION).tar.gz
+PYTHON_FASTAPI_SITE = https://files.pythonhosted.org/packages/77/bb/5941e6e2ce3020f64b539a49d39f49be05de17d0c47fea95012589f812a5
+PYTHON_FASTAPI_SETUP_TYPE = pep517
+PYTHON_FASTAPI_LICENSE = MIT
+PYTHON_FASTAPI_LICENSE_FILES = LICENSE
+PYTHON_FASTAPI_DEPENDENCIES = host-python-hatchling
+
+$(eval $(python-package))

________________________________

Quoted 1 line

othermo GmbH | Sitz der Gesellschaft: Alzenau | Amtsgericht Aschaffenburg: HRB 14783 | USt-IdNr.: DE319977978 | Geschäftsführung: Dr. Dennis Metz.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot