Skip to contentSkip to conversation

pypi.bbclass: new class to ease writing pypi recipes

PATCH New Andreas Oberritter 1 participant 5 messages Mar 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/5 pypi.bbclass: new class to ease writing pypi recipes

---
 meta-python/classes/pypi.bbclass | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 meta-python/classes/pypi.bbclass
meta-python/classes/pypi.bbclass new file +21 -0
new file mode 100644
index 0000000..41a70e2
@@ -0,0 +1,21 @@
+def pypi_package(d):
+    bpn = d.getVar('BPN', True)
+    if bpn.startswith('python-'):
+        return bpn[7:]
+    return bpn
+
+PYPI_PACKAGE ?= "${@pypi_package(d)}"
+
+def pypi_src_uri(d):
+    package = d.getVar('PYPI_PACKAGE', True)
+    pv = d.getVar('PV', True)
+    return 'https://pypi.python.org/packages/source/%s/%s/%s-%s.tar.gz' % (package[0], package, package, pv)
+
+PYPI_SRC_URI ?= "${@pypi_src_uri(d)}"
+
+HOMEPAGE ?= "https://pypi.python.org/pypi/${PYPI_PACKAGE}/"
+SECTION = "devel/python"
+SRC_URI += "${PYPI_SRC_URI}"
+S = "${WORKDIR}/${PYPI_PACKAGE}-${PV}"
+
+inherit setuptools
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/5 python-six: Python 2 and 3 compatibility library, version 1.9.0

---
 meta-python/recipes-devtools/python/python-six_1.9.0.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-six_1.9.0.bb
meta-python/recipes-devtools/python/python-six_1.9.0.bb new file +8 -0
new file mode 100644
index 0000000..aa96dc9
@@ -0,0 +1,8 @@
+SUMMARY = "Python 2 and 3 compatibility library"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=6f00d4a50713fa859858dd9abaa35b21"
+
+SRC_URI[md5sum] = "476881ef4012262dfc8adc645ee786c4"
+SRC_URI[sha256sum] = "e24052411fc4fbd1f672635537c3fc2330d9481b18c0317695b46259512c91d5"
+
+inherit pypi
Signature · 1 line
1.9.1
#2 lore raw

PATCH 3/5 python-enum34: backport of Python 3.4's enum package, version 1.0.4

In reply to Andreas Oberritter
---
 meta-python/recipes-devtools/python/python-enum34_1.0.4.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-enum34_1.0.4.bb
meta-python/recipes-devtools/python/python-enum34_1.0.4.bb new file +8 -0
new file mode 100644
index 0000000..2ef5df1
@@ -0,0 +1,8 @@
+SUMMARY = "backport of Python 3.4's enum package"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://enum/LICENSE;md5=0a97a53a514564c20efd7b2e8976c87e"
+
+SRC_URI[md5sum] = "ac80f432ac9373e7d162834b264034b6"
+SRC_URI[sha256sum] = "d3c19f26a6a34629c18c775f59dfc5dd595764c722b57a2da56ebfb69b94e447"
+
+inherit pypi
Signature · 1 line
1.9.1
#3 lore raw

PATCH 4/5 python-pycparser: Parser of the C language, written in pure Python, version 2.10

In reply to Andreas Oberritter
---
 meta-python/recipes-devtools/python/python-pycparser_2.10.bb | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-pycparser_2.10.bb
meta-python/recipes-devtools/python/python-pycparser_2.10.bb new file +8 -0
new file mode 100644
index 0000000..bee4052
@@ -0,0 +1,8 @@
+SUMMARY = "Parser of the C language, written in pure Python"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=d29d3ce07825100c58ca57eea171ab65"
+
+SRC_URI[md5sum] = "d87aed98c8a9f386aa56d365fe4d515f"
+SRC_URI[sha256sum] = "957d98b661c0b64b580ab6f94b125e09b6714154ee51de40bca16d3f0076b86c"
+
+inherit pypi
Signature · 1 line
1.9.1
#4 lore raw

PATCH 5/5 python-cffi: Foreign Function Interface for Python calling C code, version 0.9.2

In reply to Andreas Oberritter
---
 meta-python/recipes-devtools/python/python-cffi_0.9.2.bb | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python-cffi_0.9.2.bb
meta-python/recipes-devtools/python/python-cffi_0.9.2.bb new file +9 -0
new file mode 100644
index 0000000..6c34b67
@@ -0,0 +1,9 @@
+SUMMARY = "Foreign Function Interface for Python calling C code"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=5677e2fdbf7cdda61d6dd2b57df547bf"
+DEPENDS = "libffi python-pycparser"
+
+SRC_URI[md5sum] = "b1bf4625ae07a8a932f2f1a2eb200c54"
+SRC_URI[sha256sum] = "1988ce7ff9c64ecd5077776175e90fd8f0a8c827cb241a23647175ce08126bb2"
+
+inherit pypi
Signature · 1 line
1.9.1