diff mbox series

[meta-python,033/105] python3-flask-user: upgrade 0.6.19 -> 1.0.2.2

Message ID 20261116175359.342679-33-khem.raj@oss.qualcomm.com
State New
Headers show
Series [meta-python,001/105] python3-absl: upgrade 2.1.0 -> 2.5.1 | expand

Commit Message

Khem Raj Nov. 16, 2026, 5:52 p.m. UTC
Drop Flask-Login from setup_requires, which made setuptools try to fetch
it from PyPI at build time, and add the new runtime dependencies
(bcrypt, cryptography, Flask-SQLAlchemy).

License-Update: Upstream relicensed from BSD-2-Clause to MIT in 1.0;
LICENSE updated to MIT.

Changes:
- BREAKING: v1.0 is not compatible with 0.6; UserManager properties and
  methods are now overridden or extended by subclassing. Custom form
  class attributes renamed (register_form -> RegisterFormClass).
- Password hashing is configurable through passlib CryptContext
  settings; minimum passlib raised from 1.6 to 1.7.
- TokenManager accepts parts of the password so tokens are invalidated
  after a password change; it also accepts non-integer user IDs.
- Add MongoDB (Flask-MongoEngine) and DynamoDB (Flask-Flywheel) support
  and an EmailAdapter interface (SMTP, sendmail, SendGrid, custom).
- Remove callbacks/auth0; drop Python 2.6 and 3.3; add Slovak, Polish
  and Ukrainian translations; fix crashes with USER_ENABLE_INVITE_USER
  and with username change when USER_ENABLE_EMAIL is false.

AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
---
 ...ser_0.6.19.bb => python3-flask-user_1.0.2.2.bb} | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-flask-user_0.6.19.bb => python3-flask-user_1.0.2.2.bb} (53%)
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python3-flask-user_0.6.19.bb b/meta-python/recipes-devtools/python/python3-flask-user_1.0.2.2.bb
similarity index 53%
rename from meta-python/recipes-devtools/python/python3-flask-user_0.6.19.bb
rename to meta-python/recipes-devtools/python/python3-flask-user_1.0.2.2.bb
index 5faf74b03d..42bd50b95f 100644
--- a/meta-python/recipes-devtools/python/python3-flask-user_0.6.19.bb
+++ b/meta-python/recipes-devtools/python/python3-flask-user_1.0.2.2.bb
@@ -3,10 +3,10 @@  DESCRIPTION = "Customizable User Account Management for Flask; Register \
 Confirm email, Login, Change username, Change password, Forgot Password \
 and more."
 HOMEPAGE = "https://github.com/lingthio/Flask-User"
-LICENSE = "BSD-2-Clause"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=97de97cd9d6e23c88129d884588ce71a"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=5aabce758ead32427c145173bc555403"
 
-SRC_URI[sha256sum] = "601abcc0343dfbae0c56273d98362d5cdc266ac84d20b3f65a212e4a2c83b302"
+SRC_URI[sha256sum] = "c9785febc2fc7ca15c69cfff1c8dabc2788f25043b54a33f73a6c2a9daf7fbe4"
 
 PYPI_PACKAGE_SDIST = "Flask-User"
 
@@ -14,12 +14,20 @@  CVE_PRODUCT = "flask-user_project:flask-user"
 
 inherit pypi setuptools3
 
+# setup_requires would make setuptools fetch Flask-Login from PyPI at build time
+do_configure:prepend() {
+    sed -i -e "s/setup_requires=\['Flask-Login',\] + pytest_runner/setup_requires=pytest_runner/" ${S}/setup.py
+}
+
 RDEPENDS:${PN} = " \
     python3-babel \
+    python3-bcrypt \
     python3-blinker \
+    python3-cryptography \
     python3-flask \
     python3-flask-login \
     python3-flask-mail \
+    python3-flask-sqlalchemy \
     python3-flask-wtf \
     python3-passlib \
 "