Skip to contentSkip to conversation

python-cassandra-driver: add recipe for version 3.6.0

PATCH Superseded Ruben De Smet 2 participants 3 messages Nov 4, 2016

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 python-cassandra-driver: add recipe for version 3.6.0

A Python library for Apache Cassandra

---
 .../python/python-cassandra-driver.inc             | 29 ++++++++++++++++++++++
 .../python/python3-cassandra-driver_3.6.0.bb       |  7 ++++++
 2 files changed, 36 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-cassandra-driver.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb
meta-python/recipes-devtools/python/python-cassandra-driver.inc new file +29 -0
new file mode 100644
index 0000000..0e6113d
@@ -0,0 +1,29 @@
+SUMMARY = "DataStax Python Driver for Apache Cassandra"
+DESCRIPTION = "A modern, feature-rich and highly-tunable Python client \
+library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using \
+exclusively Cassandra's binary protocol and Cassandra Query Language v3."
+HOMEPAGE = "https://github.com/datastax/python-driver"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+SRCNAME = "cassandra-driver"
+
+SRC_URI[md5sum] = "756a3b235c5766c3072ed62e1083c9ef"
+SRC_URI[sha256sum] = "049c8a871e49052c7b72fddb6569f1bfe738bbfea0a562eeeb5404abeff015ab"
+
+DISTUTILS_BUILD_ARGS += " \
+    --no-libev \
+"
+DISTUTILS_INSTALL_ARGS += " \
+    --no-libev \
+"
+
+inherit pypi
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-cython \
+    ${PYTHON_PN}-multiprocessing \
+    ${PYTHON_PN}-six \
+    ${PYTHON_PN}-json \
+    libevent \
+"
meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb new file +7 -0
new file mode 100644
index 0000000..6d7ed20
@@ -0,0 +1,7 @@
+inherit setuptools3
+require python-cassandra-driver.inc
+RDEPENDS_${PN}_class-native = ""
+
+DEPENDS_${PN} += "\
+    python3-cython \
+"
Signature · 1 line
2.10.2
#1 lore raw
Quoted 51 lines · Ruben De Smet

A Python library for Apache Cassandra

---
 .../python/python-cassandra-driver.inc             | 29 ++++++++++++++++++++++
 .../python/python3-cassandra-driver_3.6.0.bb       |  7 ++++++
 2 files changed, 36 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-cassandra-driver.inc
 create mode 100644 meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb
meta-python/recipes-devtools/python/python-cassandra-driver.inc new file +29 -0
new file mode 100644
index 0000000..0e6113d
@@ -0,0 +1,29 @@
+SUMMARY = "DataStax Python Driver for Apache Cassandra"
+DESCRIPTION = "A modern, feature-rich and highly-tunable Python client \
+library for Apache Cassandra (1.2+) and DataStax Enterprise (3.1+) using \
+exclusively Cassandra's binary protocol and Cassandra Query Language v3."
+HOMEPAGE = "https://github.com/datastax/python-driver"
+SECTION = "devel/python"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2ee41112a44fe7014dce33e26468ba93"
+SRCNAME = "cassandra-driver"
+
+SRC_URI[md5sum] = "756a3b235c5766c3072ed62e1083c9ef"
+SRC_URI[sha256sum] = "049c8a871e49052c7b72fddb6569f1bfe738bbfea0a562eeeb5404abeff015ab"
+
+DISTUTILS_BUILD_ARGS += " \
+    --no-libev \
+"
+DISTUTILS_INSTALL_ARGS += " \
+    --no-libev \
+"
+
+inherit pypi
+
+RDEPENDS_${PN} += "\
+    ${PYTHON_PN}-cython \
+    ${PYTHON_PN}-multiprocessing \
+    ${PYTHON_PN}-six \
+    ${PYTHON_PN}-json \
+    libevent \
+"
meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb new file +0 -0
new file mode 100644
index 0000000..6d7ed20

meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb line 5

Quoted 5 lines
meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb new file +5 -0
@@ -0,0 +1,7 @@
+inherit setuptools3
+require python-cassandra-driver.inc
+RDEPENDS_${PN}_class-native = ""
+
+DEPENDS_${PN} += "\

Dont use PN here.

Quoted 3 lines
meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb new file +2 -0
+    python3-cython \
+"
#2 lore raw
Quoted 9 lines · Khem Raj
Quoted 7 lines

meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb line 5

Quoted 7 lines

+++ b/meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb

meta-python/recipes-devtools/python/python3-cassandra-driver_3.6.0.bb new file +5 -0
@@ -0,0 +1,7 @@
+inherit setuptools3
+require python-cassandra-driver.inc
+RDEPENDS_${PN}_class-native = ""
+
+DEPENDS_${PN} += "\

Dont use PN here.

I suppose it's more logical to have this in the inc file. This counts for Python 2 as well.

I don't see why I have that RDEPENDS_${PN}_class-native line there either; python-cython.inc has that too, I don't really see why. Does this trigger a gcc dependency or so?

I'll send a v3 with the DEPENDS in the .inc file.