Skip to contentSkip to conversation

python3-flask-babel: update to 1.0.0 and consolidate

PATCH In review akuster 2 participants 2 messages Jul 9, 2020 – Jul 12, 2020

lore
Share & tools
lore

akuster

author
#0 lore raw

PATCH 1/1 python3-flask-babel: update to 1.0.0 and consolidate

The python3-werkzeug 1.0.0 requires this package to be updated.
Fixes:
File "/usr/lib/python3.8/site-packages/flask_babel/__init__.py", line 19, in <module>
from werkzeug import ImmutableDict
ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/usr/lib/python3.8/site-packages/werkzeug/__init__.py)

https://github.com/python-babel/flask-babel/issues/162

---
 .../recipes-devtools/python/python3-flask-babel_0.12.2.bb    | 2 --
 .../{python-flask-babel.inc => python3-flask-babel_1.0.0.bb} | 5 ++---
 2 files changed, 2 insertions(+), 5 deletions(-)
 delete mode 100644 meta-python/recipes-devtools/python/python3-flask-babel_0.12.2.bb
 rename meta-python/recipes-devtools/python/{python-flask-babel.inc => python3-flask-babel_1.0.0.bb} (66%)
meta-python/recipes-devtools/python/python3-flask-babel_0.12.2.bb deleted +0 -2
deleted file mode 100644
index 104e7c28f1..0000000000
@@ -1,2 +0,0 @@
-inherit pypi setuptools3
-require python-flask-babel.inc
meta-python/recipes-devtools/python/python3-flask-babel_1.0.0.bb renamed from meta-python/recipes-devtools/python/python-flask-babel.inc +2 -3
similarity index 66%
rename from meta-python/recipes-devtools/python/python-flask-babel.inc
rename to meta-python/recipes-devtools/python/python3-flask-babel_1.0.0.bb
index 0e507f3372..d968be3ee2 100644
@@ -2,12 +2,11 @@ DESCRIPTION = "i18n and l10n support for Flask based on babel and pytz"
 LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=51917f3e8e858f5ae295a7d0e2eb3cc9"
 
-SRC_URI[md5sum] = "fcf2f360ff279d3133e40974804efd72"
-SRC_URI[sha256sum] = "316ad183e42003f3922957fa643d0a1e8e34a0f0301a88c3a8f605bc37ba5c86"
+SRC_URI[sha256sum] = "d6a70468f9a8919d59fba2a291a003da3a05ff884275dddbd965f3b98b09ab3e"
 
 PYPI_PACKAGE = "Flask-Babel"
 
-inherit pypi
+inherit pypi setuptools3
 
 RDEPENDS_${PN} += "\
     ${PYTHON_PN}-speaklater \
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · akuster

The python3-werkzeug 1.0.0 requires this package to be updated.
Fixes:
File "/usr/lib/python3.8/site-packages/flask_babel/__init__.py", line 19, in <module>
from werkzeug import ImmutableDict
ImportError: cannot import name 'ImmutableDict' from 'werkzeug' (/usr/lib/python3.8/site-packages/werkzeug/__init__.py)

https://github.com/python-babel/flask-babel/issues/162

Quoted 39 lines
---
  .../recipes-devtools/python/python3-flask-babel_0.12.2.bb    | 2 --
  .../{python-flask-babel.inc => python3-flask-babel_1.0.0.bb} | 5 ++---
  2 files changed, 2 insertions(+), 5 deletions(-)

delete mode 100644 meta-python/recipes-devtools/python/python3-flask-babel_0.12.2.bb rename meta-python/recipes-devtools/python/{python-flask-babel.inc => python3-flask-babel_1.0.0.bb} (66%)

meta-python/recipes-devtools/python/python3-flask-babel_0.12.2.bb deleted +0 -2
deleted file mode 100644
index 104e7c28f1..0000000000
@@ -1,2 +0,0 @@
-inherit pypi setuptools3
-require python-flask-babel.inc
meta-python/recipes-devtools/python/python3-flask-babel_1.0.0.bb renamed from meta-python/recipes-devtools/python/python-flask-babel.inc +2 -3
similarity index 66%
rename from meta-python/recipes-devtools/python/python-flask-babel.inc
rename to meta-python/recipes-devtools/python/python3-flask-babel_1.0.0.bb
index 0e507f3372..d968be3ee2 100644
@@ -2,12 +2,11 @@ DESCRIPTION = "i18n and l10n support for Flask based on babel and pytz"
  LICENSE = "BSD-3-Clause"
  LIC_FILES_CHKSUM = "file://LICENSE;md5=51917f3e8e858f5ae295a7d0e2eb3cc9"
 
-SRC_URI[md5sum] = "fcf2f360ff279d3133e40974804efd72"
-SRC_URI[sha256sum] = "316ad183e42003f3922957fa643d0a1e8e34a0f0301a88c3a8f605bc37ba5c86"
+SRC_URI[sha256sum] = "d6a70468f9a8919d59fba2a291a003da3a05ff884275dddbd965f3b98b09ab3e"
 
  PYPI_PACKAGE = "Flask-Babel"
 
-inherit pypi
+inherit pypi setuptools3
 
  RDEPENDS_${PN} += "\
      ${PYTHON_PN}-speaklater \