Skip to contentSkip to conversation

python-pyparted: Add recipe

PATCH Superseded Sujith H 3 participants 4 messages Aug 21, 2014 – Aug 22, 2014

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Sujith H

author
#0 lore raw

PATCH 1/1 python-pyparted: Add recipe

From: Sujith H <[email protected]>

This recipe will provide a set of Python modules that provide Python programmers an interface to libparted, the GNU parted library for disk partitioning and filesystem manipulation.

---
 .../python-pyparted/python-pyparted_3.9.bb          | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb
meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb new file +21 -0
new file mode 100644
index 0000000..db1b936
@@ -0,0 +1,21 @@
+DESCRIPTION = "pyparted is a set of Python modules that provide Python programmers \
+an interface to libparted, the GNU parted library for disk partitioning and \
+filesystem manipulation."
+SUMMARY = "Python bindings for libparted"
+HOMEPAGE = "https://fedorahosted.org/pyparted/"
+LICENSE = "GPL-2.0+"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
+    file://src/_pedmodule.c;startline=10;endline=22;md5=70c62bd73782a03f56a0571a9f08ea46 \
+"
+DEPENDS += "parted"
+RDEPENDS_${PN} += "python-stringold python-codecs python-math"
+
+S="${WORKDIR}/pyparted-${PV}"
+SRC_URI = "https://fedorahosted.org/releases/p/y/pyparted/pyparted-${PV}.tar.gz"
+SRC_URI[md5sum] = "f16c7ef7f5fa4a43fcb2a4654b487e39"
+SRC_URI[sha256sum] = "a56712e3d058ce3d859c158236dbbf45224018919efd3d880ea80f9e0d0bebbb"
+
+inherit distutils
+
+BBCLASSEXTEND += "native"
Signature · 1 line
1.8.4
#1 lore raw

Hi Sujith,

I think this recipe is almost there, just some minor tweaks:

Quoted 34 lines · On Thursday 21 August 2014 12:16:47 Sujith H wrote:

From: Sujith H <[email protected]>

This recipe will provide a set of Python modules that provide Python programmers an interface to libparted, the GNU parted library for disk partitioning and filesystem manipulation.

---
 .../python-pyparted/python-pyparted_3.9.bb          | 21
+++++++++++++++++++++ 1 file changed, 21 insertions(+)
 create mode 100644

meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb

diff --git a/meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb b/meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb new file mode 100644
index 0000000..db1b936

meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb new file +1 -0
@@ -0,0 +1,21 @@
+DESCRIPTION = "pyparted is a set of Python modules that provide Python

programmers \ +an interface to libparted, the GNU parted library for disk partitioning and \ +filesystem manipulation."

meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb new file +6 -0
+SUMMARY = "Python bindings for libparted"
+HOMEPAGE = "https://fedorahosted.org/pyparted/"
+LICENSE = "GPL-2.0+"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
+   

file://src/_pedmodule.c;startline=10;endline=22;md5=70c62bd73782a03f56a0571 a9f08ea46 \ +"

meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb line 12

Quoted 2 lines
meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb new file +2 -0
+DEPENDS += "parted"
+RDEPENDS_${PN} += "python-stringold python-codecs python-math"

Could you please move the RDEPENDS line down to just before the BBCLASSEXTEND line? (i.e. where any other definitions that concern packaging would appear).

meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb line 14

Quoted 2 lines
meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb new file +2 -0
+
+S="${WORKDIR}/pyparted-${PV}"

Please move this after the SRC_URI / checksums and add spaces around the = .

if you could also please ensure that your next version is marked [PATCH v3] (if it will be the third version of this patch) rather than just [PATCH] so that it's clear that it supersedes an earlier version.

Thanks,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
Tested-by
#2 lore raw
Quoted 15 lines · Paul Eggleton

Hi Sujith,

I think this recipe is almost there, just some minor tweaks:

Quoted 9 lines · On Thursday 21 August 2014 12:16:47 Sujith H wrote:

From: Sujith H <[email protected]>

This recipe will provide a set of Python modules that provide Python programmers an interface to libparted, the GNU parted library for disk partitioning and filesystem manipulation.

(qemuarm, core-image-sato)

NOTES:
(1) In order to get help for this module, IMAGE_INSTALL_append = " python-pyparted python-pydoc python-pkgutil python-io"

$ python
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

import parted
help(parted)

(2) I used the examples (list_devices.py, list_partitions.py) from the following to test:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692503

Quoted 42 lines

---

Quoted 8 lines
 .../python-pyparted/python-pyparted_3.9.bb          | 21
+++++++++++++++++++++ 1 file changed, 21 insertions(+)
 create mode 100644

meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb

diff --git a/meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb b/meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb

new

meta-python/recipes-extended/python-pyparted/

Quoted 4 lines

file mode 100644
index 0000000..db1b936

meta-python/recipes-extended/python-pyparted/ new file +0 -0

python-pyparted_3.9.bb

meta-python/recipes-extended/python-pyparted/

Quoted 11 lines
meta-python/recipes-extended/python-pyparted/ new file +1 -0
@@ -0,0 +1,21 @@
+DESCRIPTION = "pyparted is a set of Python modules that provide Python

programmers \ +an interface to libparted, the GNU parted library for disk partitioning and \ +filesystem manipulation."

meta-python/recipes-extended/python-pyparted/ new file +6 -0
+SUMMARY = "Python bindings for libparted"
+HOMEPAGE = "https://fedorahosted.org/pyparted/"
+LICENSE = "GPL-2.0+"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
+

file://src/_pedmodule.c;startline=10;endline=22;md5=70c62bd73782a03f56a0571

meta-python/recipes-extended/python-pyparted/

Quoted 3 lines

a9f08ea46 \ +"

meta-python/recipes-extended/python-pyparted/ new file +2 -0
+DEPENDS += "parted"
+RDEPENDS_${PN} += "python-stringold python-codecs python-math"

Could you please move the RDEPENDS line down to just before the BBCLASSEXTEND
line? (i.e. where any other definitions that concern packaging would appear).

meta-python/recipes-extended/python-pyparted/

Quoted 2 lines
meta-python/recipes-extended/python-pyparted/ new file +2 -0
+
+S="${WORKDIR}/pyparted-${PV}"

Please move this after the SRC_URI / checksums and add spaces around the = .

Quoted 4 lines

if you could also please ensure that your next version is marked [PATCH v3] (if it will be the third version of this patch) rather than just [PATCH] so that it's clear that it supersedes an earlier version.

I agree completely with Paul and meant to mention that on the previous patch [PATCH v2].

Regards,

Tim

author
#3 lore raw
Quoted 84 lines · Tim Orling
Quoted 15 lines · Paul Eggleton

Hi Sujith,

I think this recipe is almost there, just some minor tweaks:

Quoted 9 lines · On Thursday 21 August 2014 12:16:47 Sujith H wrote:

From: Sujith H <[email protected]>

This recipe will provide a set of Python modules that provide Python programmers an interface to libparted, the GNU parted library for disk partitioning and filesystem manipulation.

(qemuarm, core-image-sato)

NOTES:
(1) In order to get help for this module, IMAGE_INSTALL_append = " python-pyparted python-pydoc python-pkgutil python-io"

$ python
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

import parted
help(parted)

(2) I used the examples (list_devices.py, list_partitions.py) from the following to test:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=692503

Quoted 43 lines

---

Quoted 8 lines
 .../python-pyparted/python-pyparted_3.9.bb          | 21
+++++++++++++++++++++ 1 file changed, 21 insertions(+)
 create mode 100644

meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb

diff --git a/meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb b/meta-python/recipes-extended/python-pyparted/python-pyparted_3.9.bb

new

meta-python/recipes-extended/python-pyparted/

Quoted 4 lines

file mode 100644
index 0000000..db1b936

meta-python/recipes-extended/python-pyparted/ new file +0 -0

python-pyparted_3.9.bb

Quoted 3 lines
meta-python/recipes-extended/python-pyparted/ new file +1 -0
@@ -0,0 +1,21 @@
+DESCRIPTION = "pyparted is a set of Python modules that provide Python

programmers \ +an interface to libparted, the GNU parted library for

disk

meta-python/recipes-extended/python-pyparted/

Quoted 8 lines

partitioning and \ +filesystem manipulation."

meta-python/recipes-extended/python-pyparted/ new file +6 -0
+SUMMARY = "Python bindings for libparted"
+HOMEPAGE = "https://fedorahosted.org/pyparted/"
+LICENSE = "GPL-2.0+"
+LIC_FILES_CHKSUM = "\
+    file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b \
+

file://src/_pedmodule.c;startline=10;endline=22;md5=70c62bd73782a03f56a0571

meta-python/recipes-extended/python-pyparted/

Quoted 3 lines

a9f08ea46 \ +"

meta-python/recipes-extended/python-pyparted/ new file +2 -0
+DEPENDS += "parted"
+RDEPENDS_${PN} += "python-stringold python-codecs python-math"

Could you please move the RDEPENDS line down to just before the BBCLASSEXTEND
line? (i.e. where any other definitions that concern packaging would appear).

meta-python/recipes-extended/python-pyparted/

Quoted 2 lines
meta-python/recipes-extended/python-pyparted/ new file +2 -0
+
+S="${WORKDIR}/pyparted-${PV}"

Please move this after the SRC_URI / checksums and add spaces around the = .

Quoted 6 lines

if you could also please ensure that your next version is marked [PATCH v3]
(if it will be the third version of this patch) rather than just [PATCH] so
that it's clear that it supersedes an earlier version.

Quoted 3 lines

I agree completely with Paul and meant to mention that on the previous patch [PATCH v2].

Sure the next patch will be mentioned as [PATCH v3].

Thanks and Regards,

Sujith H

Signature · 5 lines
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info