Skip to contentSkip to conversation

pyrtm: break samples and unit tests into separate packages

PATCH New Derek Straka 1 participant 1 message Nov 29, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pyrtm: break samples and unit tests into separate packages

---
 meta-python/recipes-devtools/python/pyrtm_0.4.2.bb | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)
meta-python/recipes-devtools/python/pyrtm_0.4.2.bb +20 -1
index 72f0921..2272da9 100644
@@ -10,7 +10,26 @@ SRC_URI[sha256sum] = "b2d701b25ad3f9a1542057f3eb492c5c1d7dbe2b8d1e8f763043dcc14e
 
 inherit pypi setuptools
 
+PACKAGES =+ "${PN}-tests ${PN}-samples"
+
+FILES_${PN}-samples += " \
+    ${PYTHON_SITEPACKAGES_DIR}/rtm/samples \
+"
+
+FILES_${PN}-tests += " \
+    ${PYTHON_SITEPACKAGES_DIR}/rtm/tests \
+"
+
 RDEPENDS_${PN} += "\
     ${PYTHON_PN}-json \
     ${PYTHON_PN}-netclient \
-    "
+"
+
+RDEPENDS_${PN}-samples += " \
+    ${PN} \
+"
+
+RDEPENDS_${PN}-tests += " \
+    ${PN} \
+    ${PYTHON_PN}-unittest \
+"
Signature · 1 line
2.7.4