Skip to contentSkip to conversation

python3-vcversioner: add recipe

PATCH New Mikko Ylinen 1 participant 2 messages Aug 30, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 python3-vcversioner: add recipe

python3-vcversioner is needed by other python3 modules so it's good to have a recipe for it.

---
 .../python/python3-vcversioner_2.16.0.0.bb         | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-vcversioner_2.16.0.0.bb
meta-python/recipes-devtools/python/python3-vcversioner_2.16.0.0.bb new file +24 -0
new file mode 100644
index 0000000..189a65a
@@ -0,0 +1,24 @@
+SUMMARY = "Python vcversioner, automagically update the project's version"
+HOMEPAGE = "https://github.com/habnabit/vcversioner"
+
+LICENSE = "ISC"
+LIC_FILES_CHKSUM = "file://PKG-INFO;md5=827a7a91a8d20d3c666b665cd96db8e3"
+
+SRC_URI[md5sum] = "aab6ef5e0cf8614a1b1140ed5b7f107d"
+SRC_URI[sha256sum] = "dae60c17a479781f44a4010701833f1829140b1eeccd258762a74974aa06e19b"
+
+inherit pypi setuptools3
+
+do_compile_append() {
+    ${PYTHON} setup.py -q bdist_egg --dist-dir ./
+}
+
+do_install_append() {
+    install -m 0644 ${S}/vcversioner*.egg ${D}/${PYTHON_SITEPACKAGES_DIR}/
+}
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-subprocess \
+    "
+
+BBCLASSEXTEND = "native"
Signature · 1 line
2.9.3
#1 lore raw

PATCH 2/2 python3-jsonschema: set dependency to vcversioner

The recently added python3-jsonschema depends on vcversioner. The setuptools tries to fetch it but fails with bitbake if run behind proxies. Explicitly set DEPENDS to ensure the dependency is installed before running setup.py for python3-jsonschema.

---
 meta-python/recipes-devtools/python/python3-jsonschema_2.5.1.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-python/recipes-devtools/python/python3-jsonschema_2.5.1.bb +2 -0
index 5aaee68..53b8839 100644
@@ -1,6 +1,8 @@
 inherit pypi setuptools3
 require python-jsonschema.inc
 
+DEPENDS += "python3-vcversioner"
+
 RDEPENDS_${PN} += " \
     ${PYTHON_PN}-misc \
 "
Signature · 1 line
2.9.3