Skip to contentSkip to conversation

Python library additions/improvements

PATCH In review Paul Eggleton 2 participants 10 messages Feb 8, 2013 – Feb 19, 2013

lore
Share & tools
lore
#0 lore raw

cover Python library additions/improvements

Some additional recipes and updates for some Python libraries, in preparation for supporting an Ajenti recipe (which will be sent separately.)

Kevin Strasser <[email protected]> helped to test and improve these.

The following changes since commit 61911b23099c2658186179504ded318c987b5276:

ttf: introduce update-fonts bbclass and change all ttf recipes to use it (2013-02-06 15:16:01 +0100)

are available in the git repository at:

git://git.openembedded.org/meta-openembedded-contrib paule/python-bits
http://cgit.openembedded.org/cgit.cgi/meta-openembedded-contrib/log/?h=paule/python-bits

Paul Eggleton (6):
python-feedparser: add new recipe for version 5.1.3
python-greenlet: add new recipe for version 0.3.4
python-gevent: add new recipe for version 0.13.8
python-psutil: add new recipe for version 0.6.1
python-pyopenssl: tweak recipe
python-lxml: update to 3.0.2 and tweak

 .../python/python-feedparser_5.1.3.bb               |   14 ++++++++++++++
 .../recipes-devtools/python/python-gevent_0.13.8.bb |   19 +++++++++++++++++++
 .../python/python-greenlet_0.3.4.bb                 |   14 ++++++++++++++
 .../{python-lxml_2.2.8.bb => python-lxml_3.0.2.bb}  |   13 ++++++-------
 .../recipes-devtools/python/python-psutil_0.6.1.bb  |   14 ++++++++++++++
 .../python/python-pyopenssl_0.13.bb                 |    4 ++--
 6 files changed, 69 insertions(+), 9 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb
 create mode 100644 meta-oe/recipes-devtools/python/python-gevent_0.13.8.bb
 create mode 100644 meta-oe/recipes-devtools/python/python-greenlet_0.3.4.bb
 rename meta-oe/recipes-devtools/python/{python-lxml_2.2.8.bb => python-lxml_3.0.2.bb} (76%)
 create mode 100644 meta-oe/recipes-devtools/python/python-psutil_0.6.1.bb
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/6 python-feedparser: add new recipe for version 5.1.3

---
 .../recipes-devtools/python/python-feedparser_5.1.3.bb   |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb
meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb new file +14 -0
new file mode 100644
index 0000000..86e4fd6
@@ -0,0 +1,14 @@
+SUMMARY = "Python Atom and RSS feed parser"
+HOMEPAGE = "http://code.google.com/p/feedparser"
+SECTION = "devel/python"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=39082dbc030b4a3ee3e48e162eab408e"
+
+SRC_URI = "http://feedparser.googlecode.com/files/feedparser-${PV}.tar.bz2"
+SRC_URI[md5sum] = "f8790accd379b578261cb5b0047bd20c"
+SRC_URI[sha256sum] = "91a28a76b5cbaf7457a22e47e04347568a1f21fac85c806867ac72d32aabe718"
+
+S = "${WORKDIR}/feedparser-${PV}"
+
+inherit distutils
+
Signature · 1 line
1.7.10.4
#2 lore raw

Re: [meta-oe][PATCH 1/6] python-feedparser: add new recipe for version 5.1.3

Quoted 15 lines · Paul Eggleton
---
 .../recipes-devtools/python/python-feedparser_5.1.3.bb   |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb
meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb new file +3 -0
new file mode 100644
index 0000000..86e4fd6
@@ -0,0 +1,14 @@
+SUMMARY = "Python Atom and RSS feed parser"
+HOMEPAGE = "http://code.google.com/p/feedparser"
+SECTION = "devel/python"

meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb line 13

Quoted 10 lines
meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb new file +10 -0
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=39082dbc030b4a3ee3e48e162eab408e"
+
+SRC_URI = "http://feedparser.googlecode.com/files/feedparser-${PV}.tar.bz2"
+SRC_URI[md5sum] = "f8790accd379b578261cb5b0047bd20c"
+SRC_URI[sha256sum] = "91a28a76b5cbaf7457a22e47e04347568a1f21fac85c806867ac72d32aabe718"
+
+S = "${WORKDIR}/feedparser-${PV}"
+
+inherit distutils

Can you please check if the checksum was changed?

ERROR: Fetcher failure for URL: 'http://feedparser.googlecode.com/files/feedparser-5.1.3.tar.bz2'. Checksum mismatch!
File: '/home/jenkins/oe/shr-core-branches/shr-core/downloads/feedparser-5.1.3.tar.bz2' has md5 checksum 6fb6372a1dc2f56d4d79d740b8f49f25 when f8790accd379b578261cb5b0047bd20c was expected
File: '/home/jenkins/oe/shr-core-branches/shr-core/downloads/feedparser-5.1.3.tar.bz2' has sha256 checksum 7f6507d400d07edfd1ea8205da36808009b0c539f5b8a6e0ab54337b955e6dc3 when 91a28a76b5cbaf7457a22e47e04347568a1f21fac85c806867ac72d32aabe718 was expected If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "6fb6372a1dc2f56d4d79d740b8f49f25"
SRC_URI[sha256sum] = "7f6507d400d07edfd1ea8205da36808009b0c539f5b8a6e0ab54337b955e6dc3"

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#3 lore raw

Re: [meta-oe][PATCH 1/6] python-feedparser: add new recipe for version 5.1.3

Quoted 23 lines · On Saturday 16 February 2013 05:51:38 Martin Jansa wrote:
Quoted 22 lines · Paul Eggleton

---

 .../recipes-devtools/python/python-feedparser_5.1.3.bb   |   14
 ++++++++++++++ 1 file changed, 14 insertions(+)
 create mode 100644

meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb>

(quoted diff) +0 -0

b/meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb new file mode 100644
index 0000000..86e4fd6

meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb new file +7 -0
@@ -0,0 +1,14 @@
+SUMMARY = "Python Atom and RSS feed parser"
+HOMEPAGE = "http://code.google.com/p/feedparser"
+SECTION = "devel/python"
+LICENSE = "BSD-2-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=39082dbc030b4a3ee3e48e162eab408e"
+
+SRC_URI =

"http://feedparser.googlecode.com/files/feedparser-${PV}.tar.bz2"

Quoted 8 lines

meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb line 13

Quoted 6 lines
meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb new file +2 -0
+SRC_URI[md5sum] = "f8790accd379b578261cb5b0047bd20c"
+SRC_URI[sha256sum] =

"91a28a76b5cbaf7457a22e47e04347568a1f21fac85c806867ac72d32aabe718" +

meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb new file +3 -0
+S = "${WORKDIR}/feedparser-${PV}"
+
+inherit distutils

Can you please check if the checksum was changed?

Oops - it appears I never built this version of the recipe as the LIC_FILES_CHKSUM was also changed (copyright date changed). I have build- tested all recipes again and pushed a new branch with the python-feedparser recipe fixed.

Sorry about that.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#4 lore raw

PATCH 2/6 python-greenlet: add new recipe for version 0.3.4

In reply to Paul Eggleton
---
 meta-oe/recipes-devtools/python/python-greenlet_0.3.4.bb |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/python/python-greenlet_0.3.4.bb
meta-oe/recipes-devtools/python/python-greenlet_0.3.4.bb new file +14 -0
new file mode 100644
index 0000000..4a240fa
@@ -0,0 +1,14 @@
+SUMMARY = "Python lightweight in-process concurrent programming"
+HOMEPAGE = "http://pypi.python.org/pypi/greenlet"
+SECTION = "devel/python"
+LICENSE = "MIT & PSF"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=03143d7a1a9f5d8a0fee825f24ca9c36 \
+                    file://LICENSE.PSF;md5=c106931d9429eda0492617f037b8f69a"
+SRC_URI = "http://pypi.python.org/packages/source/g/greenlet/greenlet-${PV}.zip"
+SRC_URI[md5sum] = "530a69acebbb0d66eb5abd83523d8272"
+SRC_URI[sha256sum] = "259ed0f34de9b0c948f42bdaffe378ea53d210d38377c6dcb0c6b728fccad1b0"
+
+S = "${WORKDIR}/greenlet-${PV}"
+
+inherit distutils
+
Signature · 1 line
1.7.10.4
#5 lore raw

PATCH 3/6 python-gevent: add new recipe for version 0.13.8

In reply to Paul Eggleton
---
 .../recipes-devtools/python/python-gevent_0.13.8.bb |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/python/python-gevent_0.13.8.bb
meta-oe/recipes-devtools/python/python-gevent_0.13.8.bb new file +19 -0
new file mode 100644
index 0000000..3fd3e7c
@@ -0,0 +1,19 @@
+SUMMARY = "A coroutine-based Python networking library"
+DESCRIPTION = "gevent is a coroutine-based Python networking library that uses greenlet to provide \
+a high-level synchronous API on top of the libevent event loop."
+HOMEPAGE = "http://www.gevent.org"
+SECTION = "devel/python"
+LICENSE = "MIT & BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=2dbb33d00e1fd31c7041460a81ac0bd2 \
+                    file://LICENSE.pyevent;md5=718070c63de243053e2c616268b00fdd"
+DEPENDS += "python-greenlet libevent"
+RDEPENDS_${PN} += "python-greenlet python-mime python-pprint python-re"
+
+SRC_URI = "http://pypi.python.org/packages/source/g/gevent/gevent-${PV}.tar.gz"
+SRC_URI[md5sum] = "ca9dcaa7880762d8ebbc266b11252960"
+SRC_URI[sha256sum] = "54b8d26300ce408c0916a3e63ef6cd3e6aca76230833558deb7de15196ed955e"
+
+S = "${WORKDIR}/gevent-${PV}"
+
+inherit setuptools
+
Signature · 1 line
1.7.10.4
#6 lore raw

PATCH 4/6 python-psutil: add new recipe for version 0.6.1

In reply to Paul Eggleton
---
 meta-oe/recipes-devtools/python/python-psutil_0.6.1.bb |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/python/python-psutil_0.6.1.bb
meta-oe/recipes-devtools/python/python-psutil_0.6.1.bb new file +14 -0
new file mode 100644
index 0000000..6e462c0
@@ -0,0 +1,14 @@
+DESCRIPTION = "A cross-platform process and system utilities module for Python"
+SECTION = "devel/python"
+HOMEPAGE = "http://code.google.com/p/psutil"
+LICENSE = "BSD"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=0f02e99f7f3c9a7fe8ecfc5d44c2be62"
+
+SRC_URI = "http://psutil.googlecode.com/files/psutil-${PV}.tar.gz"
+SRC_URI[md5sum] = "3cfcbfb8525f6e4c70110e44a85e907e"
+SRC_URI[sha256sum] = "d665a4cc58c9a5d207fb0dc9869fc0ee10f4f66ad885e84886ef6339ccce0a6f"
+
+S = "${WORKDIR}/psutil-${PV}"
+
+inherit setuptools
+
Signature · 1 line
1.7.10.4
#7 lore raw

PATCH 5/6 python-pyopenssl: tweak recipe

In reply to Paul Eggleton

* Set SUMMARY instead of DESCRIPTION
* Make LICENSE more specific

---
 meta-oe/recipes-devtools/python/python-pyopenssl_0.13.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta-oe/recipes-devtools/python/python-pyopenssl_0.13.bb +2 -2
index 181879f..01f43da 100644
@@ -1,7 +1,7 @@
-DESCRIPTION = "Simple Python wrapper around the OpenSSL library"
+SUMMARY = "Simple Python wrapper around the OpenSSL library"
 SECTION = "devel/python"
 
-LICENSE = "Apache"
+LICENSE = "Apache-2.0"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 
 SRCNAME = "pyOpenSSL"
Signature · 1 line
1.7.10.4
#8 lore raw

PATCH 6/6 python-lxml: update to 3.0.2 and tweak

In reply to Paul Eggleton

* Update to version 3.0.2
* Update LIC_FILES_CHKSUM - substance of the license did not change, but some copyright/origin notes for specific parts were added.
* Add SUMMARY
* Move packaging definitions to the end

---
 .../python/{python-lxml_2.2.8.bb => python-lxml_3.0.2.bb} |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
 rename meta-oe/recipes-devtools/python/{python-lxml_2.2.8.bb => python-lxml_3.0.2.bb} (76%)
meta-oe/recipes-devtools/python/python-lxml_3.0.2.bb renamed from meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb +6 -7
similarity index 76%
rename from meta-oe/recipes-devtools/python/python-lxml_2.2.8.bb
rename to meta-oe/recipes-devtools/python/python-lxml_3.0.2.bb
index a175609..5ab7b4a 100644
@@ -1,17 +1,16 @@
+SUMMARY = "Python XML bindings for libxml2 and libxslt"
 DESCRIPTION = "Powerful and Pythonic XML processing library combining \
 libxml2/libxslt with the ElementTree API."
 HOMEPAGE = "http://codespeak.net/lxml"
 LICENSE = "BSD"
-LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=7de92baeb3b7bfaebe72404155fdb346"
+LIC_FILES_CHKSUM = "file://LICENSES.txt;md5=f9f1dc24f720c143c2240df41fe5073b"
 SRCNAME = "lxml"
-PR = "r2"
 
 DEPENDS = "libxml2 libxslt"
-RDEPENDS_${PN} += "libxml2 libxslt python-compression"
 
 SRC_URI = "http://pypi.python.org/packages/source/l/${SRCNAME}/${SRCNAME}-${PV}.tar.gz;name=lxml"
-SRC_URI[lxml.md5sum] = "d6c612d63a84d79440912a1b29d3b981"
-SRC_URI[lxml.sha256sum] = "89b73925b5e3295dcf4675cb948007a20eb029fe35c9a162ae19ec11f1abafe5"
+SRC_URI[lxml.md5sum] = "38b15b0dd5e9292cf98be800e84a3ce4"
+SRC_URI[lxml.sha256sum] = "cadba4cf0e235127795f76a6f7092cb035da23a6e9ec4c93f8af43a6784cd101"
 
 S = "${WORKDIR}/${SRCNAME}-${PV}"
 
@@ -28,7 +27,7 @@ DISTUTILS_INSTALL_ARGS += " \
 "
 
 BBCLASSEXTEND = "native nativesdk"
-RDEPENDS_${PN}_virtclass-native = "libxml2-native libxslt-native"
-
 
+RDEPENDS_${PN} += "libxml2 libxslt python-compression"
+RDEPENDS_${PN}_virtclass-native = "libxml2-native libxslt-native"
 
Signature · 1 line
1.7.10.4
#9 lore raw
In reply to Paul Eggleton
Quoted 3 lines · Paul Eggleton

Some additional recipes and updates for some Python libraries, in preparation for supporting an Ajenti recipe (which will be sent separately.)

All merged now, thanks!

Quoted 43 lines

Kevin Strasser <[email protected]> helped to test and improve these.

The following changes since commit 61911b23099c2658186179504ded318c987b5276:

ttf: introduce update-fonts bbclass and change all ttf recipes to use it (2013-02-06 15:16:01 +0100)

are available in the git repository at:

git://git.openembedded.org/meta-openembedded-contrib paule/python-bits
http://cgit.openembedded.org/cgit.cgi/meta-openembedded-contrib/log/?h=paule/python-bits

Paul Eggleton (6):
python-feedparser: add new recipe for version 5.1.3
python-greenlet: add new recipe for version 0.3.4
python-gevent: add new recipe for version 0.13.8
python-psutil: add new recipe for version 0.6.1
python-pyopenssl: tweak recipe
python-lxml: update to 3.0.2 and tweak

 .../python/python-feedparser_5.1.3.bb               |   14 ++++++++++++++
 .../recipes-devtools/python/python-gevent_0.13.8.bb |   19 +++++++++++++++++++
 .../python/python-greenlet_0.3.4.bb                 |   14 ++++++++++++++
 .../{python-lxml_2.2.8.bb => python-lxml_3.0.2.bb}  |   13 ++++++-------
 .../recipes-devtools/python/python-psutil_0.6.1.bb  |   14 ++++++++++++++
 .../python/python-pyopenssl_0.13.bb                 |    4 ++--
 6 files changed, 69 insertions(+), 9 deletions(-)
 create mode 100644 meta-oe/recipes-devtools/python/python-feedparser_5.1.3.bb
 create mode 100644 meta-oe/recipes-devtools/python/python-gevent_0.13.8.bb
 create mode 100644 meta-oe/recipes-devtools/python/python-greenlet_0.3.4.bb
 rename meta-oe/recipes-devtools/python/{python-lxml_2.2.8.bb => python-lxml_3.0.2.bb} (76%)
 create mode 100644 meta-oe/recipes-devtools/python/python-psutil_0.6.1.bb
Signature · 7 lines
1.7.10.4


_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]