Skip to contentSkip to conversation

python3-iso8601: add python3-numbers to RDEPENDS

PATCH Trevor Gamblin 2 participants 2 messages May 20, 2020 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Bump. I don't think this patch got picked up?

Quoted 39 lines · Trevor Gamblin

Sending v2 to fix commit message.

python3-iso8601 relies on the decimal module from the standard library, but it is not in iso8601's RDEPENDS:

root@qemux86-64:~# python3
Python 3.8.2 (default, Feb 25 2020, 10:39:28)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Quoted 1 line
Quoted 1 line
Quoted 1 line

import iso8601

Traceback (most recent call last):

   File "<stdin>", line 1, in <module>
   File "/usr/lib/python3.8/site-packages/iso8601/__init__.py", line 1, in <module>
     from .iso8601 import *
   File "/usr/lib/python3.8/site-packages/iso8601/iso8601.py", line 12, in <module>
     from decimal import Decimal

ModuleNotFoundError: No module named 'decimal'

Add it to RDEPENDS to fix the import error.

---
  meta-python/recipes-devtools/python/python-iso8601.inc | 1 +
  1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python-iso8601.inc +1 -0
index 61e9abbac..b6e021c5b 100644
@@ -8,6 +8,7 @@ SRC_URI[sha256sum] = "49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098ed
 
  RDEPENDS_${PN} += "\
      ${PYTHON_PN}-datetime \
+    ${PYTHON_PN}-numbers \
  "
 
  BBCLASSEXTEND = "native nativesdk"
#2 lore raw
Quoted 2 lines · Trevor Gamblin

Bump. I don't think this patch got picked up?

Please resend, so patchwork catches it again

Quoted 42 lines · Trevor Gamblin
Quoted 38 lines

Sending v2 to fix commit message.

python3-iso8601 relies on the decimal module from the standard library, but it is not in iso8601's RDEPENDS:

root@qemux86-64:~# python3
Python 3.8.2 (default, Feb 25 2020, 10:39:28)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Quoted 1 line
Quoted 1 line
Quoted 1 line

import iso8601

Traceback (most recent call last):

   File "<stdin>", line 1, in <module>
   File "/usr/lib/python3.8/site-packages/iso8601/__init__.py", line 1, in <module>
     from .iso8601 import *
   File "/usr/lib/python3.8/site-packages/iso8601/iso8601.py", line 12, in <module>
     from decimal import Decimal

ModuleNotFoundError: No module named 'decimal'

Add it to RDEPENDS to fix the import error.

---
  meta-python/recipes-devtools/python/python-iso8601.inc | 1 +
  1 file changed, 1 insertion(+)
meta-python/recipes-devtools/python/python-iso8601.inc +1 -0
index 61e9abbac..b6e021c5b 100644
@@ -8,6 +8,7 @@ SRC_URI[sha256sum] = "49c4b20e1f38aa5cf109ddcd39647ac419f928512c869dc01d5c7098ed
 
  RDEPENDS_${PN} += "\
      ${PYTHON_PN}-datetime \
+    ${PYTHON_PN}-numbers \
  "
 
  BBCLASSEXTEND = "native nativesdk"