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 "<stdin>", line 1, in <module>
    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 <theodore_r...@trimble.com>
Signed-off-by: Theodore A. Roth <tr...@openavr.org>
---
 ...qlalchemy_2.5.1.bb => python3-flask-sqlalchemy_3.1.1.bb} | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-flask-sqlalchemy_2.5.1.bb 
=> python3-flask-sqlalchemy_3.1.1.bb} (58%)

diff --git 
a/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.5.1.bb 
b/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_3.1.1.bb
similarity index 58%
rename from 
meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.5.1.bb
rename to meta-python/recipes-devtools/python/python3-flask-sqlalchemy_3.1.1.bb
index 3aa6303da..ecbcf16dd 100644
--- a/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_2.5.1.bb
+++ b/meta-python/recipes-devtools/python/python3-flask-sqlalchemy_3.1.1.bb
@@ -2,10 +2,10 @@ DESCRIPTION = "Adds SQLAlchemy support to your Flask 
application."
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE.rst;md5=ffeffa59c90c9c4a033c7574f8f3fb75"
 
-SRC_URI[sha256sum] = 
"2bda44b43e7cacb15d4e05ff3cc1f8bc97936cc464623424102bfc2c35e95912"
+SRC_URI[sha256sum] = 
"e4b68bb881802dda1a7d878b2fc84c06d1ee57fb40b874d3dc97dabfa36b8312"
 
-PYPI_PACKAGE = "Flask-SQLAlchemy"
+PYPI_PACKAGE = "flask_sqlalchemy"
 
-inherit pypi setuptools3
+inherit pypi python_setuptools_build_meta
 
 RDEPENDS:${PN} = "${PYTHON_PN}-sqlalchemy ${PYTHON_PN}-flask"
-- 
2.34.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#107288): 
https://lists.openembedded.org/g/openembedded-devel/message/107288
Mute This Topic: https://lists.openembedded.org/mt/103039454/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to