Skip to contentSkip to conversation

python3-setuptools-scm: make version available for both Python 2 & 3

PATCH New Pascal Bach 1 participant 2 messages Apr 21, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-setuptools-scm: make version available for both Python 2 & 3

---
 .../recipes-devtools/python/python-setuptools-scm.inc   | 14 ++++++++++++++
 .../python/python-setuptools-scm_1.15.0.bb              | 17 ++---------------
 .../python/python3-setuptools-scm_1.15.0.bb             |  2 ++
 3 files changed, 18 insertions(+), 15 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-setuptools-scm.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-setuptools-scm_1.15.0.bb
meta-python/recipes-devtools/python/python-setuptools-scm.inc new file +14 -0
new file mode 100644
index 0000000..3249870
@@ -0,0 +1,14 @@
+SUMMARY = "the blessed package to manage your versions by scm tags"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2"
+
+SRC_URI[md5sum] = "b6916c78ed6253d6602444fad4279c5b"
+SRC_URI[sha256sum] = "daf12d05aa2155a46aa357453757ffdc47d87f839e62114f042bceac6a619e2f"
+
+PYPI_PACKAGE = "setuptools_scm"
+inherit pypi
+
+RDEPENDS_${PN}_class-target = "${PYTHON_PN}-py ${PYTHON_PN}-setuptools ${PYTHON_PN}-argparse ${PYTHON_PN}-debugger ${PYTHON_PN}-json"
+RDEPENDS_${PN}_class-native = "${PYTHON_PN}-setuptools-native"
+
+BBCLASSEXTEND = "native"
meta-python/recipes-devtools/python/python-setuptools-scm_1.15.0.bb +2 -15
index 08008ce..5f9bb0b 100644
@@ -1,15 +1,2 @@
-SUMMARY = "the blessed package to manage your versions by scm tags"
-LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://LICENSE;md5=838c366f69b72c5df05c96dff79b35f2"
-
-SRC_URI[md5sum] = "b6916c78ed6253d6602444fad4279c5b"
-SRC_URI[sha256sum] = "daf12d05aa2155a46aa357453757ffdc47d87f839e62114f042bceac6a619e2f"
-
-PYPI_PACKAGE = "setuptools_scm"
-
-RDEPENDS_${PN}_class-target = "python-py python-setuptools python-argparse python-debugger python-json"
-RDEPENDS_${PN}_class-native = "python-setuptools-native"
-
-BBCLASSEXTEND = "native"
-
-inherit pypi setuptools
+inherit setuptools
+require python-setuptools-scm.inc
meta-python/recipes-devtools/python/python3-setuptools-scm_1.15.0.bb new file +2 -0
new file mode 100644
index 0000000..5bf5983
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-setuptools-scm.inc
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 python3-pytest-runner: make available for both Python 2 & 3

---
 .../recipes-devtools/python/python-pytest-runner.inc    | 17 +++++++++++++++++
 .../python/python-pytest-runner_2.11.1.bb               | 17 ++++-------------
 .../python/python3-pytest-runner_2.11.1.bb              |  2 ++
 3 files changed, 23 insertions(+), 13 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-pytest-runner.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-pytest-runner_2.11.1.bb
meta-python/recipes-devtools/python/python-pytest-runner.inc new file +17 -0
new file mode 100644
index 0000000..85a8de1
@@ -0,0 +1,17 @@
+SUMMARY = "Invoke py.test as distutils command with dependency resolution"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e38b971c2b4c33b978d1b9c9ece9ae63"
+
+SRC_URI[md5sum] = "bdb73eb18eca2727944a2dcf963c5a81"
+SRC_URI[sha256sum] = "983a31eab45e375240e250161a556163bc8d250edaba97960909338c273a89b3"
+
+
+inherit pypi
+
+DEPENDS += " \
+    ${PYTHON_PN}-setuptools-scm-native"
+
+RDEPENDS_${PN} = "${PYTHON_PN}-py ${PYTHON_PN}-setuptools ${PYTHON_PN}-argparse ${PYTHON_PN}-debugger ${PYTHON_PN}-json \
+                  ${PYTHON_PN}-io"
+
+BBCLASSEXTEND = "native nativesdk"
meta-python/recipes-devtools/python/python-pytest-runner_2.11.1.bb +4 -13
index 188ef2b..0a5055c 100644
@@ -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"
meta-python/recipes-devtools/python/python3-pytest-runner_2.11.1.bb new file +2 -0
new file mode 100644
index 0000000..df56ba6
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-pytest-runner.inc
Signature · 1 line
2.1.4