[oe-commits] [meta-openembedded] 12/55: python3-pytest-runner: make available for both Python 2 & 3

git at git.openembedded.org git at git.openembedded.org
Wed Apr 26 07:30:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.

commit 122731cb11eedf27c6275025cb697cfe36e208c9
Author: Pascal Bach <pascal.bach at siemens.com>
AuthorDate: Fri Apr 21 15:20:16 2017 +0200

    python3-pytest-runner: make available for both Python 2 & 3
    
    Signed-off-by: Pascal Bach <pascal.bach at siemens.com>
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
 ...pytest-runner_2.11.1.bb => python-pytest-runner.inc} | 11 +++++++----
 .../python/python-pytest-runner_2.11.1.bb               | 17 ++++-------------
 .../python/python3-pytest-runner_2.11.1.bb              |  2 ++
 3 files changed, 13 insertions(+), 17 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-pytest-runner_2.11.1.bb b/meta-python/recipes-devtools/python/python-pytest-runner.inc
similarity index 56%
copy from meta-python/recipes-devtools/python/python-pytest-runner_2.11.1.bb
copy to meta-python/recipes-devtools/python/python-pytest-runner.inc
index 188ef2b..85a8de1 100644
--- a/meta-python/recipes-devtools/python/python-pytest-runner_2.11.1.bb
+++ b/meta-python/recipes-devtools/python/python-pytest-runner.inc
@@ -5,10 +5,13 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=e38b971c2b4c33b978d1b9c9ece9ae63"
 SRC_URI[md5sum] = "bdb73eb18eca2727944a2dcf963c5a81"
 SRC_URI[sha256sum] = "983a31eab45e375240e250161a556163bc8d250edaba97960909338c273a89b3"
 
+
+inherit pypi
+
 DEPENDS += " \
-    python-setuptools-scm"
+    ${PYTHON_PN}-setuptools-scm-native"
 
-RDEPENDS_${PN} = "python-py python-setuptools python-argparse python-debugger python-json \
-                  python-compiler python-io"
+RDEPENDS_${PN} = "${PYTHON_PN}-py ${PYTHON_PN}-setuptools ${PYTHON_PN}-argparse ${PYTHON_PN}-debugger ${PYTHON_PN}-json \
+                  ${PYTHON_PN}-io"
 
-inherit pypi setuptools
+BBCLASSEXTEND = "native nativesdk"
diff --git a/meta-python/recipes-devtools/python/python-pytest-runner_2.11.1.bb b/meta-python/recipes-devtools/python/python-pytest-runner_2.11.1.bb
index 188ef2b..0a5055c 100644
--- a/meta-python/recipes-devtools/python/python-pytest-runner_2.11.1.bb
+++ b/meta-python/recipes-devtools/python/python-pytest-runner_2.11.1.bb
@@ -1,14 +1,5 @@
-SUMMARY = "Invoke py.test as distutils command with dependency resolution"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=e38b971c2b4c33b978d1b9c9ece9ae63"
+inherit setuptools
+require python-pytest-runner.inc
 
-SRC_URI[md5sum] = "bdb73eb18eca2727944a2dcf963c5a81"
-SRC_URI[sha256sum] = "983a31eab45e375240e250161a556163bc8d250edaba97960909338c273a89b3"
-
-DEPENDS += " \
-    python-setuptools-scm"
-
-RDEPENDS_${PN} = "python-py python-setuptools python-argparse python-debugger python-json \
-                  python-compiler python-io"
-
-inherit pypi setuptools
+# Dependency only exists for python2
+RDEPENDS_${PN} += "python-compiler"
diff --git a/meta-python/recipes-devtools/python/python3-pytest-runner_2.11.1.bb b/meta-python/recipes-devtools/python/python3-pytest-runner_2.11.1.bb
new file mode 100644
index 0000000..df56ba6
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pytest-runner_2.11.1.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-pytest-runner.inc

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list