[oe] [meta-python][PATCH 2/4] python-pymysql: add recipes for python2 and python3

jackie.huang at windriver.com jackie.huang at windriver.com
Sun Sep 29 05:42:39 UTC 2019


From: Jackie Huang <jackie.huang at windriver.com>

This package contains a pure-Python MySQL client library,
based on PEP 249 Most public APIs are compatible with
mysqlclient and MySQLdb.

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 meta-python/recipes-devtools/python/python-pymysql.inc | 18 ++++++++++++++++++
 .../recipes-devtools/python/python-pymysql_0.9.3.bb    |  2 ++
 .../recipes-devtools/python/python3-pymysql_0.9.3.bb   |  2 ++
 3 files changed, 22 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pymysql.inc
 create mode 100644 meta-python/recipes-devtools/python/python-pymysql_0.9.3.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-pymysql_0.9.3.bb

diff --git a/meta-python/recipes-devtools/python/python-pymysql.inc b/meta-python/recipes-devtools/python/python-pymysql.inc
new file mode 100644
index 0000000..8c7f455
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pymysql.inc
@@ -0,0 +1,18 @@
+SUMMARY = "A pure-Python MySQL client library"
+DESCRIPTION = " \
+  This package contains a pure-Python MySQL client library, based on PEP 249 \
+  Most public APIs are compatible with mysqlclient and MySQLdb. \
+  "
+SECTION = "devel/python"
+HOMEPAGE = "https://pymysql.readthedocs.io"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=528175c84163bb800d23ad835c7fa0fc"
+
+SRC_URI[md5sum] = "e5d9183cc0a775ac29f9e0365cca6556"
+SRC_URI[sha256sum] = "d8c059dcd81dedb85a9f034d5e22dcb4442c0b201908bede99e306d65ea7c8e7"
+
+inherit pypi
+
+PYPI_PACKAGE = "PyMySQL"
+
+RDEPENDS_${PN} += "${PYTHON_PN}-cryptography"
diff --git a/meta-python/recipes-devtools/python/python-pymysql_0.9.3.bb b/meta-python/recipes-devtools/python/python-pymysql_0.9.3.bb
new file mode 100644
index 0000000..27d097e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-pymysql_0.9.3.bb
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-pymysql.inc
diff --git a/meta-python/recipes-devtools/python/python3-pymysql_0.9.3.bb b/meta-python/recipes-devtools/python/python3-pymysql_0.9.3.bb
new file mode 100644
index 0000000..13774bd
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-pymysql_0.9.3.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-pymysql.inc
-- 
2.7.4



More information about the Openembedded-devel mailing list