Skip to contentSkip to conversation

python-mock: add missing dependencies

PATCH New [email protected] 1 participant 3 messages Feb 16, 2017

lore
Share & tools
lore
#0 lore raw

v2 cover python-mock: add missing dependencies

From: Jackie Huang <[email protected]>

v2 comments:
Fixed a typo

--
The following changes since commit 044e5189549de11b2a94efd29a6009a76162b8f1:

smbnetfs gnome-disk-utility contacts kexecboot initramfs-kexecboot-klibc-image system-config-keyboard system-setup-keyboard geany geany-plugins efivar efibootmgr gimp system-config-keyboard tumbler: Blacklist (2017-02-13 20:34:21 +0100)

are available in the git repository at:

git://git.pokylinux.org/poky-contrib.git jhuang0/d_python-mock_170216_1
http://git.pokylinux.org/cgit.cgi//log/?h=jhuang0/d_python-mock_170216_1

Jackie Huang (2):
python-funcsigs: add new recipe
python-mock: add RDEPENDS on python-pbr and python-funcsigs

 .../recipes-devtools/python/python-funcsigs_1.0.2.bb   | 18 ++++++++++++++++++
 .../recipes-devtools/python/python-mock_2.0.0.bb       |  5 ++++-
 2 files changed, 22 insertions(+), 1 deletion(-)
 create mode 100644 meta-python/recipes-devtools/python/python-funcsigs_1.0.2.bb
Signature · 1 line
2.8.3
#1 lore raw

PATCH v2 1/2 python-funcsigs: add new recipe

From: Jackie Huang <[email protected]>

python-funcsigs is required by python-mock.

---
 .../recipes-devtools/python/python-funcsigs_1.0.2.bb   | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-funcsigs_1.0.2.bb
meta-python/recipes-devtools/python/python-funcsigs_1.0.2.bb new file +18 -0
new file mode 100644
index 0000000..dad15ee
@@ -0,0 +1,18 @@
+SUMMARY = "Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+"
+DESCRPTION = " \
+funcsigs is a backport of the `PEP 362`_ function signature features from \
+Python 3.3's `inspect`_ module. The backport is compatible with Python 2.6, \
+2.7 as well as 3.3 and up. 3.2 was supported by version 0.4, but with \
+setuptools and pip no longer supporting 3.2, we cannot make any statement \
+about 3.2 compatibility. \
+"
+
+HOMEPAGE = "http://funcsigs.readthedocs.org"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d6bc91dc8e5793892189fe7481a2d354"
+
+SRC_URI[md5sum] = "7e583285b1fb8a76305d6d68f4ccc14e"
+SRC_URI[sha256sum] = "a7bb0f2cf3a3fd1ab2732cb49eba4252c2af4240442415b4abce3b87022a8f50"
+
+inherit pypi setuptools
Signature · 1 line
2.8.3
#2 lore raw

PATCH v2 2/2 python-mock: add RDEPENDS on python-pbr and python-funcsigs

In reply to [email protected]

From: Jackie Huang <[email protected]>

python-pbr and python-funcsigs are required by python-mock, or it fails with:

Quoted 1 line
Quoted 1 line
Quoted 1 line

import mock

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/mock/__init__.py", line 2, in <module>
import mock.mock as _mock
File "/usr/lib64/python2.7/site-packages/mock/mock.py", line 69, in <module>
from pbr.version import VersionInfo
ImportError: No module named pbr.version

Quoted 1 line
Quoted 1 line
Quoted 1 line

import mock

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/mock/__init__.py", line 2, in <module>
import mock.mock as _mock
File "/usr/lib64/python2.7/site-packages/mock/mock.py", line 80, in <module>
import funcsigs
ImportError: No module named funcsigs

---
 meta-python/recipes-devtools/python/python-mock_2.0.0.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/python-mock_2.0.0.bb +4 -1
index b4557b7..840c36e 100644
@@ -16,4 +16,7 @@ RDEPENDS_${PN} += " \
     python-pyparsing \
     python-mccabe \
     python-pep8 \
-    python-pyflakes"
+    python-pyflakes \
+    python-pbr \
+    python-funcsigs \
+"
Signature · 1 line
2.8.3