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

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


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

python-versiontools is a smart replacement for plain
tuple used in __version__.

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 meta-python/recipes-devtools/python/python-versiontools.inc    | 10 ++++++++++
 .../recipes-devtools/python/python-versiontools_1.9.1.bb       |  2 ++
 .../recipes-devtools/python/python3-versiontools_1.9.1.bb      |  2 ++
 3 files changed, 14 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-versiontools.inc
 create mode 100644 meta-python/recipes-devtools/python/python-versiontools_1.9.1.bb
 create mode 100644 meta-python/recipes-devtools/python/python3-versiontools_1.9.1.bb

diff --git a/meta-python/recipes-devtools/python/python-versiontools.inc b/meta-python/recipes-devtools/python/python-versiontools.inc
new file mode 100644
index 0000000..b0e696f
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-versiontools.inc
@@ -0,0 +1,10 @@
+SUMMARY = "Smart replacement for plain tuple used in __version__"
+SECTION = "devel/python"
+HOMEPAGE = "https://launchpad.net/versiontools"
+LICENSE = "LGPLv3"
+LIC_FILES_CHKSUM = "file://setup.py;beginline=3;endline=20;md5=02193721a38fd8a05a4ddeb7df8e294d"
+
+inherit pypi
+
+SRC_URI[md5sum] = "602b7db8eea30dd29a1d451997adf251"
+SRC_URI[sha256sum] = "a969332887a18a9c98b0df0ea4d4ca75972f24ca94f06fb87d591377e83414f6"
diff --git a/meta-python/recipes-devtools/python/python-versiontools_1.9.1.bb b/meta-python/recipes-devtools/python/python-versiontools_1.9.1.bb
new file mode 100644
index 0000000..6bfe82e
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-versiontools_1.9.1.bb
@@ -0,0 +1,2 @@
+inherit setuptools
+require python-versiontools.inc
diff --git a/meta-python/recipes-devtools/python/python3-versiontools_1.9.1.bb b/meta-python/recipes-devtools/python/python3-versiontools_1.9.1.bb
new file mode 100644
index 0000000..e8d6b7d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-versiontools_1.9.1.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-versiontools.inc
-- 
2.7.4



More information about the Openembedded-devel mailing list