[meta-virtualization] [RFC][PATCH 02/16] Added python-cliff recipe

David Nyström david.c.nystrom at gmail.com
Tue Dec 18 06:31:44 PST 2012


Signed-off-by: David Nyström <david.nystrom at enea.com>
---
 .../files/001-remove-distribute-dependency.patch   |   24 ++++++++++++++++
 recipes-python/cliff/python-cliff_1.3.bb           |   29 ++++++++++++++++++++
 2 files changed, 53 insertions(+)
 create mode 100644 recipes-python/cliff/files/001-remove-distribute-dependency.patch
 create mode 100644 recipes-python/cliff/python-cliff_1.3.bb

diff --git a/recipes-python/cliff/files/001-remove-distribute-dependency.patch b/recipes-python/cliff/files/001-remove-distribute-dependency.patch
new file mode 100644
index 0000000..7d6d6df
--- /dev/null
+++ b/recipes-python/cliff/files/001-remove-distribute-dependency.patch
@@ -0,0 +1,24 @@
+diff -Naur cliff-1.3.old/setup.py cliff-1.3/setup.py
+--- cliff-1.3.old/setup.py	2012-12-18 12:53:53.650202165 +0100
++++ cliff-1.3/setup.py	2012-12-18 12:55:25.046204612 +0100
+@@ -5,10 +5,6 @@
+ # Change docs/source/conf.py too!
+ VERSION = '1.3'
+ 
+-# Bootstrap installation of Distribute
+-import distribute_setup
+-distribute_setup.use_setuptools()
+-
+ from setuptools import setup, find_packages
+ 
+ from distutils.util import convert_path
+@@ -21,8 +17,7 @@
+ except IOError:
+     long_description = ''
+ 
+-install_requires = ['distribute',
+-                    'PrettyTable',
++install_requires = ['PrettyTable',
+                     'cmd2',
+                     ]
+ try:
diff --git a/recipes-python/cliff/python-cliff_1.3.bb b/recipes-python/cliff/python-cliff_1.3.bb
new file mode 100644
index 0000000..6ea8fa5
--- /dev/null
+++ b/recipes-python/cliff/python-cliff_1.3.bb
@@ -0,0 +1,29 @@
+SUMMARY="Command Line Interface Formulation Framework"
+DESCRIPTION = "cliff is a framework for building command line programs. It uses \
+	    setuptools entry points to provide subcommands, output formatters, and \
+	    other extensions"
+SECTION = "devel/python"
+LICENSE = "Apache-2"
+PR = "0"
+
+DEPENDS += "python-prettytable \
+	python-cmd2 \
+	python-argparse \
+	"
+RDEPENDS_${PN} += "python-prettytable \
+	python-cmd2 \
+	"
+
+LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
+SRC_URI = "http://pypi.python.org/packages/source/c/cliff/cliff-${PV}.tar.gz \
+	file://001-remove-distribute-dependency.patch"
+
+SRC_URI[md5sum] = "33ee5562a58f769f6cf0d9742b42d775"
+SRC_URI[sha256sum] = "762ef3046a96676a176e686a2a1cbb7e1db95f754578eca309e3c648c6a16a31"
+
+S = "${WORKDIR}/cliff-${PV}"
+
+export BUILD_SYS
+export HOST_SYS
+
+inherit setuptools
-- 
1.7.9.5




More information about the meta-virtualization mailing list