[oe-commits] =?UTF-8?Q?Dominic=20Sacr=C3=A9=20?=: python3-decorator: Add new recipe

git at git.openembedded.org git at git.openembedded.org
Mon Aug 31 18:20:04 UTC 2015


Module: meta-openembedded.git
Branch: master-next
Commit: 4058807b84c52438b6dbda967875ab1a74b35655
URL:    http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=4058807b84c52438b6dbda967875ab1a74b35655

Author: Dominic Sacré <dominic.sacre at gmx.de>
Date:   Mon Aug 24 17:27:55 2015 +0200

python3-decorator: Add new recipe

Use a common .inc file for the python-decorator and python3-decorator
recipes.

Signed-off-by: Dominic Sacré <dominic.sacre at gmx.de>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 .../recipes-devtools/python/python-decorator.inc   | 20 ++++++++++++++++++++
 .../python/python-decorator_4.0.2.bb               | 22 +---------------------
 .../python/python3-decorator_4.0.2.bb              |  2 ++
 3 files changed, 23 insertions(+), 21 deletions(-)

diff --git a/meta-python/recipes-devtools/python/python-decorator.inc b/meta-python/recipes-devtools/python/python-decorator.inc
new file mode 100644
index 0000000..2c230ff
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-decorator.inc
@@ -0,0 +1,20 @@
+SUMMARY = "Python decorator utilities"
+HOMEPAGE = "http://pypi.python.org/pypi/decorator/"
+DESCRIPTION = "\
+The aim of the decorator module it to simplify the usage of decorators \
+for the average programmer, and to popularize decorators by showing \
+various non-trivial examples. Of course, as all techniques, decorators \
+can be abused and you should not try to solve every problem with a \
+decorator, just because you can."
+
+SECTION = "devel/python"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=41e24e0e235a97e60cdb5c4137fa2cd0"
+
+SRCNAME = "decorator"
+
+SRC_URI = "https://pypi.python.org/packages/source/d/decorator/decorator-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+SRC_URI[md5sum] = "033c9563af492c4ce2680ee6ca481fa7"
+SRC_URI[sha256sum] = "1a089279d5de2471c47624d4463f2e5b3fc6a2cf65045c39bf714fc461a25206"
diff --git a/meta-python/recipes-devtools/python/python-decorator_4.0.2.bb b/meta-python/recipes-devtools/python/python-decorator_4.0.2.bb
index bda0d71..f262168 100644
--- a/meta-python/recipes-devtools/python/python-decorator_4.0.2.bb
+++ b/meta-python/recipes-devtools/python/python-decorator_4.0.2.bb
@@ -1,22 +1,2 @@
-SUMMARY = "Python decorator utilities"
-HOMEPAGE = "http://pypi.python.org/pypi/decorator/"
-DESCRIPTION = "\
-The aim of the decorator module it to simplify the usage of decorators \
-for the average programmer, and to popularize decorators by showing \
-various non-trivial examples. Of course, as all techniques, decorators \
-can be abused and you should not try to solve every problem with a \
-decorator, just because you can."
-
-SECTION = "devel/python"
-LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=41e24e0e235a97e60cdb5c4137fa2cd0"
-
-SRCNAME = "decorator"
-
-SRC_URI = "https://pypi.python.org/packages/source/d/decorator/decorator-${PV}.tar.gz"
-S = "${WORKDIR}/${SRCNAME}-${PV}"
-
 inherit setuptools
-
-SRC_URI[md5sum] = "033c9563af492c4ce2680ee6ca481fa7"
-SRC_URI[sha256sum] = "1a089279d5de2471c47624d4463f2e5b3fc6a2cf65045c39bf714fc461a25206"
+require python-decorator.inc
diff --git a/meta-python/recipes-devtools/python/python3-decorator_4.0.2.bb b/meta-python/recipes-devtools/python/python3-decorator_4.0.2.bb
new file mode 100644
index 0000000..844cbdc
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-decorator_4.0.2.bb
@@ -0,0 +1,2 @@
+inherit setuptools3
+require python-decorator.inc



More information about the Openembedded-commits mailing list