From e351a50f8b001abe5ee3d92de5d8f173b74f758a Mon Sep 17 00:00:00 2001 From: "Theodore A. Roth" Date: Thu, 7 Dec 2023 11:11:28 -0700 Subject: python3-flask-sqlalchemy: upgrade 2.5.1 -> 3.1.1 The 2.5.1 release is not comptabile with python3-sqlalchemy 2.0.23 which is currently provided by meta-openembedded. This results in the following error: root@host:~# python3 Python 3.11.5 (main, Aug 24 2023, 12:23:19) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from flask_sqlalchemy import SQLAlchemy >>> from flask import Flask >>> app = Flask('foobar') >>> app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:////tmp/test.db' >>> db = SQLAlchemy(app) Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.11/site-packages/flask_sqlalchemy/__init__.py", line 758, in __init__ _include_sqlalchemy(self, query_class) File "/usr/lib/python3.11/site-packages/flask_sqlalchemy/__init__.py", line 112, in _include_sqlalchemy for key in module.__all__: ^^^^^^^^^^^^^^ AttributeError: module 'sqlalchemy' has no attribute '__all__'. Did you mean: '__file__'? Signed-off-by: Theodore A. Roth Signed-off-by: Theodore A. Roth Signed-off-by: Khem Raj --- .../recipes-devtools/python/python3-flask-sqlalchemy_2.5.1.bb | 11 ----------- .../recipes-devtools/python/python3-flask-sqlalchemy_3.1.1.bb | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.5.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-flask-sqlalchemy_3.1.1.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.5.1.bb b/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.5.1.bb deleted file mode 100644 index 3aa6303da7..0000000000 --- a/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.5.1.bb +++ /dev/null @@ -1,11 +0,0 @@ -DESCRIPTION = "Adds SQLAlchemy support to your Flask application." -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75" - -SRC_URI[sha256sum] = "2bda44b43e7cacb15d4e05ff3cc1f8bc97936cc464623424102bfc2c35e95912" - -PYPI_PACKAGE = "Flask-SQLAlchemy" - -inherit pypi setuptools3 - -RDEPENDS:${PN} = "${PYTHON_PN}-sqlalchemy ${PYTHON_PN}-flask" diff --git a/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_3.1.1.bb b/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_3.1.1.bb new file mode 100644 index 0000000000..ecbcf16dd0 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_3.1.1.bb @@ -0,0 +1,11 @@ +DESCRIPTION = "Adds SQLAlchemy support to your Flask application." +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75" + +SRC_URI[sha256sum] = "e4b68bb881802dda1a7d878b2fc84c06d1ee57fb40b874d3dc97dabfa36b8312" + +PYPI_PACKAGE = "flask_sqlalchemy" + +inherit pypi python_setuptools_build_meta + +RDEPENDS:${PN} = "${PYTHON_PN}-sqlalchemy ${PYTHON_PN}-flask" -- cgit v1.2.3-54-g00ecf