All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-python][PATCH 1/3] python3-matplotlib: don't use PYTHON_PN
@ 2022-08-03 18:28 Bartosz Golaszewski
  2022-08-03 18:28 ` [meta-python][PATCH 2/3] python3-matplotlib: add packaging to RDEPENDS Bartosz Golaszewski
  2022-08-03 18:28 ` [meta-python][PATCH 3/3] python3-matplotlib: bump to 3.5.2 Bartosz Golaszewski
  0 siblings, 2 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2022-08-03 18:28 UTC (permalink / raw)
  To: Khem Raj, Bruce Ashfield, openembedded-devel; +Cc: Bartosz Golaszewski

We only support python3 so using PYTHON_PN is redundant.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
 .../python/python3-matplotlib_3.5.1.bb        | 24 +++++++++----------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb b/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
index cd05b455d..7dfe46f3c 100644
--- a/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
+++ b/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
@@ -14,11 +14,11 @@ LIC_FILES_CHKSUM = "\
 DEPENDS = "\
     freetype \
     libpng \
-    ${PYTHON_PN}-numpy-native \
-    ${PYTHON_PN}-pip-native \
-    ${PYTHON_PN}-dateutil-native \
-    ${PYTHON_PN}-pytz-native \
-    ${PYTHON_PN}-certifi-native \
+    python3-numpy-native \
+    python3-pip-native \
+    python3-dateutil-native \
+    python3-pytz-native \
+    python3-certifi-native \
 "
 
 SRC_URI[sha256sum] = "b2e9810e09c3a47b73ce9cab5a72243a1258f61e7900969097a817232246ce1c"
@@ -44,13 +44,13 @@ LDFLAGS:remove:toolchain-clang:mips = "-fuse-ld=lld"
 RDEPENDS:${PN} = "\
     freetype \
     libpng \
-    ${PYTHON_PN}-numpy \
-    ${PYTHON_PN}-pyparsing \
-    ${PYTHON_PN}-cycler \
-    ${PYTHON_PN}-dateutil \
-    ${PYTHON_PN}-kiwisolver \
-    ${PYTHON_PN}-pytz \
-    ${PYTHON_PN}-pillow \
+    python3-numpy \
+    python3-pyparsing \
+    python3-cycler \
+    python3-dateutil \
+    python3-kiwisolver \
+    python3-pytz \
+    python3-pillow \
 "
 
 ENABLELTO:toolchain-clang:riscv64 = "echo enable_lto = False >> ${S}/mplsetup.cfg"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [meta-python][PATCH 2/3] python3-matplotlib: add packaging to RDEPENDS
  2022-08-03 18:28 [meta-python][PATCH 1/3] python3-matplotlib: don't use PYTHON_PN Bartosz Golaszewski
@ 2022-08-03 18:28 ` Bartosz Golaszewski
  2022-08-03 18:28 ` [meta-python][PATCH 3/3] python3-matplotlib: bump to 3.5.2 Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2022-08-03 18:28 UTC (permalink / raw)
  To: Khem Raj, Bruce Ashfield, openembedded-devel; +Cc: Bartosz Golaszewski

matplotlib needs python3-packaging at runtime. Add it to the package's
RDEPENDS.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
 meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb b/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
index 7dfe46f3c..e3e5d85eb 100644
--- a/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
+++ b/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
@@ -51,6 +51,7 @@ RDEPENDS:${PN} = "\
     python3-kiwisolver \
     python3-pytz \
     python3-pillow \
+    python3-packaging \
 "
 
 ENABLELTO:toolchain-clang:riscv64 = "echo enable_lto = False >> ${S}/mplsetup.cfg"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [meta-python][PATCH 3/3] python3-matplotlib: bump to 3.5.2
  2022-08-03 18:28 [meta-python][PATCH 1/3] python3-matplotlib: don't use PYTHON_PN Bartosz Golaszewski
  2022-08-03 18:28 ` [meta-python][PATCH 2/3] python3-matplotlib: add packaging to RDEPENDS Bartosz Golaszewski
@ 2022-08-03 18:28 ` Bartosz Golaszewski
  1 sibling, 0 replies; 3+ messages in thread
From: Bartosz Golaszewski @ 2022-08-03 18:28 UTC (permalink / raw)
  To: Khem Raj, Bruce Ashfield, openembedded-devel; +Cc: Bartosz Golaszewski

There's a bug in 3.5.1 that makes importing matplotlib impossible in
some environments:

>>> import matplotlib
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/matplotlib/__init__.py", line 895, in <module>
    defaultParams = rcsetup.defaultParams = {
  File "/usr/lib/python3.10/site-packages/matplotlib/__init__.py", line 898, in <dictcomp>
    rcParamsDefault[key]),
  File "/usr/lib/python3.10/site-packages/matplotlib/__init__.py", line 674, in __getitem__
    return dict.__getitem__(self, key)
KeyError: 'webagg.port'

This is fixed in 3.5.2.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
---
 ...{python3-matplotlib_3.5.1.bb => python3-matplotlib_3.5.2.bb} | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-python/recipes-devtools/python/{python3-matplotlib_3.5.1.bb => python3-matplotlib_3.5.2.bb} (96%)

diff --git a/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb b/meta-python/recipes-devtools/python/python3-matplotlib_3.5.2.bb
similarity index 96%
rename from meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
rename to meta-python/recipes-devtools/python/python3-matplotlib_3.5.2.bb
index e3e5d85eb..eaa144719 100644
--- a/meta-python/recipes-devtools/python/python3-matplotlib_3.5.1.bb
+++ b/meta-python/recipes-devtools/python/python3-matplotlib_3.5.2.bb
@@ -21,7 +21,7 @@ DEPENDS = "\
     python3-certifi-native \
 "
 
-SRC_URI[sha256sum] = "b2e9810e09c3a47b73ce9cab5a72243a1258f61e7900969097a817232246ce1c"
+SRC_URI[sha256sum] = "48cf850ce14fa18067f2d9e0d646763681948487a8080ec0af2686468b4607a2"
 
 inherit pypi setuptools3 pkgconfig
 
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-03 18:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 18:28 [meta-python][PATCH 1/3] python3-matplotlib: don't use PYTHON_PN Bartosz Golaszewski
2022-08-03 18:28 ` [meta-python][PATCH 2/3] python3-matplotlib: add packaging to RDEPENDS Bartosz Golaszewski
2022-08-03 18:28 ` [meta-python][PATCH 3/3] python3-matplotlib: bump to 3.5.2 Bartosz Golaszewski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.