Skip to contentSkip to conversation

python-caldav: New reciep - CalDAV rfc4791 client

PATCH Superseded Lars Michelsen 2 participants 3 messages Jan 22, 2011

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 python-caldav: New reciep - CalDAV rfc4791 client

This patch adds a new reciep for the python caldav client library module.

---
 recipes/python/python-caldav_0.1.6.bb |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 recipes/python/python-caldav_0.1.6.bb
recipes/python/python-caldav_0.1.6.bb new file +16 -0
new file mode 100644
index 0000000..ecf8e39
@@ -0,0 +1,16 @@
+DESCRIPTION = "This project is a CalDAV (RFC4791) client library for Python."
+SECTION = "devel/python"
+PRIORITY = "optional"
+LICENSE = "GPL"
+HOMEPAGE = "http://bitbucket.org/cyrilrbt/caldav"
+SRCNAME = "caldav"
+PR = "r0"
+DEPENDS = "python python-lxml python-vobject"
+
+SRC_URI  = "http://pypi.python.org/packages/source/c/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}"
+
+inherit setuptools
+
+SRC_URI[md5sum] = "e5eace7a3b6b7f511a1929a539e6a15d"
+SRC_URI[sha256sum] = "4a3b1855000feb8023ab05f8c9e0cfa1648a9abab9ca65ad3e933c22bab61310"
Signature · 1 line
1.7.1
#1 lore raw

Am Samstag, den 22.01.2011, 16:39 +0100 schrieb Lars Michelsen:

Quoted 1 line

This patch adds a new reciep for the python caldav client library module.

s/reciep/recipe/ (also in commit summary)

It is not policy, but I like also to have a note in the commit message, what distribution and architecture this recipe was build tested with. And if it was tested.

Quoted 13 lines
---
 recipes/python/python-caldav_0.1.6.bb |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 recipes/python/python-caldav_0.1.6.bb
recipes/python/python-caldav_0.1.6.bb new file +1 -0
new file mode 100644
index 0000000..ecf8e39
@@ -0,0 +1,16 @@
+DESCRIPTION = "This project is a CalDAV (RFC4791) client library for Python."

recipes/python/python-caldav_0.1.6.bb line 11

Quoted 10 lines
recipes/python/python-caldav_0.1.6.bb new file +10 -0
+SECTION = "devel/python"
+PRIORITY = "optional"
+LICENSE = "GPL"
+HOMEPAGE = "http://bitbucket.org/cyrilrbt/caldav"
+SRCNAME = "caldav"
+PR = "r0"
+DEPENDS = "python python-lxml python-vobject"
+
+SRC_URI  = "http://pypi.python.org/packages/source/c/${SRCNAME}/${SRCNAME}-${PV}.tar.gz"
+S = "${WORKDIR}/${SRCNAME}-${PV}"

I did not know of ${SRCNAME} before. I think ${PN} is more common (since it is shorter?). Now I see that you defined it in the beginning. You can use ${PN}.

recipes/python/python-caldav_0.1.6.bb line 16

Quoted 4 lines
recipes/python/python-caldav_0.1.6.bb new file +4 -0
+inherit setuptools
+
+SRC_URI[md5sum] = "e5eace7a3b6b7f511a1929a539e6a15d"
+SRC_URI[sha256sum] = "4a3b1855000feb8023ab05f8c9e0cfa1648a9abab9ca65ad3e933c22bab61310"

I think these are put right below the first occurrence of SRC_URI. But the style guide [1] does not mention it explicitly.

Thanks,

Paul

[1] http://wiki.openembedded.org/index.php/Styleguide

#2 lore raw

Hello Paul,

thanks for your review.

Quoted 8 lines · Paul Menzel

Am Samstag, den 22.01.2011, 16:39 +0100 schrieb Lars Michelsen:

Quoted 1 line

This patch adds a new reciep for the python caldav client library module.

s/reciep/recipe/ (also in commit summary)

It is not policy, but I like also to have a note in the commit message, what distribution and architecture this recipe was build tested with. And if it was tested.

Ok, will add those notes in the next patches.

Quoted 3 lines

I did not know of ${SRCNAME} before. I think ${PN} is more common (since it is shorter?). Now I see that you defined it in the beginning. You can use ${PN}.

I just copied most parts from other python-* recipes. The most of them seem to use SRCNAME.

PN containes the whole package name, right? Means 'python-caldav' in this case while SRCNAME only contains the module name 'caldav'.

Quoted 8 lines

recipes/python/python-caldav_0.1.6.bb line 16

Quoted 5 lines
recipes/python/python-caldav_0.1.6.bb new file +4 -0
+inherit setuptools
+
+SRC_URI[md5sum] = "e5eace7a3b6b7f511a1929a539e6a15d"
+SRC_URI[sha256sum] = "4a3b1855000feb8023ab05f8c9e0cfa1648a9abab9ca65ad3e933c22bab61310"

I think these are put right below the first occurrence of SRC_URI. But the style guide [1] does not mention it explicitly.

Same here. Seam a lot of python-* packages have it at the end of the file. While creating/editing such a file it is more intuitive to have these definitions right below SRC_URI. So I aggree with you and will move these lines.

I just posted a 2nd version of the patch.

Thanks & Regards,
Lars