Skip to contentSkip to conversation

python-gsocketpool: add new recipe

PATCH In review Andrej Rode 2 participants 5 messages Apr 27, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/2 python-gsocketpool: add new recipe

Adds recipe for python-gsocketpool as a dependency for python-mprpc

---
 .../files/0001-fix_setup_py.patch                  | 35 ++++++++++++++++++++++
 .../python-gsocketpool/python-gsocketpool_0.1.5.bb | 16 ++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta-python/recipes-connectivity/python-gsocketpool/files/0001-fix_setup_py.patch
 create mode 100644 meta-python/recipes-connectivity/python-gsocketpool/python-gsocketpool_0.1.5.bb
meta-python/recipes-connectivity/python-gsocketpool/files/0001-fix_setup_py.patch new file +35 -0
new file mode 100644
index 0000000..a9135a3
@@ -0,0 +1,35 @@
+From 2d47a5df58802173bf90d760b1d6f520aeea76fc Mon Sep 17 00:00:00 2001
+From: Andrej Rode <[email protected]>
+Date: Mon, 10 Apr 2017 16:47:41 -0700
+Subject: [PATCH] setup: remove find_packages since that would install tests as
+ a package as well
+
+Signed-off-by: Andrej Rode <[email protected]>
+---
+ setup.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 6b37016..a1f11a7 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,6 +1,6 @@
+ # -*- coding: utf-8 -*-
+ 
+-from setuptools import setup, find_packages
++from setuptools import setup
+ 
+ setup(
+     name='gsocketpool',
+@@ -9,7 +9,7 @@ setup(
+     author='Studio Ousia',
+     author_email='[email protected]',
+     url='http://github.com/studio-ousia/gsocketpool',
+-    packages=find_packages(),
++    packages=['gsocketpool'],
+     license=open('LICENSE').read(),
+     include_package_data=True,
+     classifiers=(
+-- 
+2.10.2
+
meta-python/recipes-connectivity/python-gsocketpool/python-gsocketpool_0.1.5.bb new file +16 -0
new file mode 100644
index 0000000..f86152c
@@ -0,0 +1,16 @@
+SUMMARY = "A simple connection pool for gevent"
+DESCRIPTION = "creates a pool of connections that can be used with gevent"
+HOMEPAGE = "https://github.com/studio-ousia/gsocketpool"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4ba825394aec026b5f94edca44426859"
+DEPENDS += "python-gevent"
+RDEPENDS_${PN} += "python-gevent"
+
+SRC_URI_append = " \
+    file://0001-fix_setup_py.patch;patch=1;pnum=1 \
+"
+
+SRC_URI[md5sum] = "04f618864b18d6b06f774994f172ef49"
+SRC_URI[sha256sum] = "b6b73deab9bcbc428d4813697eebe5c3b9c40a971f62e13607b881aa749af9d0"
+
+inherit pypi setuptools
Signature · 1 line
2.10.2
#1 lore raw

PATCH v3 2/2 python-mprpc: add new recipe

Add recipe for python-mprpc, a messagepack RPC library for python

---
 .../python-mprpc/files/0001-fix_setup_py.patch     | 34 ++++++++++++++++++++++
 .../python-mprpc/python-mprpc_0.1.13.bb            | 17 +++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta-python/recipes-connectivity/python-mprpc/files/0001-fix_setup_py.patch
 create mode 100644 meta-python/recipes-connectivity/python-mprpc/python-mprpc_0.1.13.bb
meta-python/recipes-connectivity/python-mprpc/files/0001-fix_setup_py.patch new file +34 -0
new file mode 100644
index 0000000..f5df9b9
@@ -0,0 +1,34 @@
+From bda99eab9036d46e7bb06b446d11cab0b1dd8093 Mon Sep 17 00:00:00 2001
+From: Andrej Rode <[email protected]>
+Date: Mon, 10 Apr 2017 16:49:50 -0700
+Subject: [PATCH] setup: remove find_packages and only install mprpc
+
+Signed-off-by: Andrej Rode <[email protected]>
+---
+ setup.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 5001d0c..4c0ba75 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,6 +1,6 @@
+ # -*- coding: utf-8 -*-
+ 
+-from setuptools import setup, Extension, find_packages
++from setuptools import setup, Extension
+ 
+ setup(
+     name='mprpc',
+@@ -10,7 +10,7 @@ setup(
+     author='Studio Ousia',
+     author_email='[email protected]',
+     url='http://github.com/studio-ousia/mprpc',
+-    packages=find_packages(),
++    packages=['mprpc'],
+     ext_modules=[
+         Extension('mprpc.client', ['mprpc/client.c']),
+         Extension('mprpc.server', ['mprpc/server.c'])
+-- 
+2.10.2
+
meta-python/recipes-connectivity/python-mprpc/python-mprpc_0.1.13.bb new file +17 -0
new file mode 100644
index 0000000..78df00a
@@ -0,0 +1,17 @@
+SUMMARY = "A gevent based messagpack rpc library"
+DESCRIPTION = "mprpc is a fast implementation of the messagepack rpc protocol for python. \
+It is based on gevent for handling connections and enabling concurrent connections."
+HOMEPAGE = "https://github.com/studio-ousia/mprpc"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4ba825394aec026b5f94edca44426859"
+DEPENDS += "python-gevent"
+RDEPENDS_${PN} += "python-gevent python-msgpack python-gsocketpool"
+
+SRC_URI_append = " \
+    file://0001-fix_setup_py.patch;patch=1;pnum=1 \
+"
+
+SRC_URI[md5sum] = "449e6239eb5ff07b9cceb86e1ab0c2ee"
+SRC_URI[sha256sum] = "5881cc7fbb8de814e2b4aa5958bfe147c5c301e46749190f0e6abf373cf56d82"
+
+inherit pypi setuptools
Signature · 1 line
2.10.2
#2 lore raw

Re: [meta-python][PATCH v3 2/2] python-mprpc: add new recipe

Quoted 57 lines · Andrej Rode

Add recipe for python-mprpc, a messagepack RPC library for python

---
 .../python-mprpc/files/0001-fix_setup_py.patch     | 34 ++++++++++++++++++++++
 .../python-mprpc/python-mprpc_0.1.13.bb            | 17 +++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta-python/recipes-connectivity/python-mprpc/files/0001-fix_setup_py.patch
 create mode 100644 meta-python/recipes-connectivity/python-mprpc/python-mprpc_0.1.13.bb
meta-python/recipes-connectivity/python-mprpc/files/0001-fix_setup_py.patch new file +34 -0
new file mode 100644
index 0000000..f5df9b9
@@ -0,0 +1,34 @@
+From bda99eab9036d46e7bb06b446d11cab0b1dd8093 Mon Sep 17 00:00:00 2001
+From: Andrej Rode <[email protected]>
+Date: Mon, 10 Apr 2017 16:49:50 -0700
+Subject: [PATCH] setup: remove find_packages and only install mprpc
+
+Signed-off-by: Andrej Rode <[email protected]>
+---
+ setup.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 5001d0c..4c0ba75 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,6 +1,6 @@
+ # -*- coding: utf-8 -*-
+
+-from setuptools import setup, Extension, find_packages
++from setuptools import setup, Extension
+
+ setup(
+     name='mprpc',
+@@ -10,7 +10,7 @@ setup(
+     author='Studio Ousia',
+     author_email='[email protected]',
+     url='http://github.com/studio-ousia/mprpc',
+-    packages=find_packages(),
++    packages=['mprpc'],
+     ext_modules=[
+         Extension('mprpc.client', ['mprpc/client.c']),
+         Extension('mprpc.server', ['mprpc/server.c'])
+--
+2.10.2
+
meta-python/recipes-connectivity/python-mprpc/python-mprpc_0.1.13.bb new file +1 -0
new file mode 100644
index 0000000..78df00a
@@ -0,0 +1,17 @@
+SUMMARY = "A gevent based messagpack rpc library"

meta-python/recipes-connectivity/python-mprpc/python-mprpc_0.1.13.bb line 11

Quoted 10 lines
meta-python/recipes-connectivity/python-mprpc/python-mprpc_0.1.13.bb new file +10 -0
+DESCRIPTION = "mprpc is a fast implementation of the messagepack rpc protocol for python. \
+It is based on gevent for handling connections and enabling concurrent connections."
+HOMEPAGE = "https://github.com/studio-ousia/mprpc"
+LICENSE = "Apache-2.0"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=4ba825394aec026b5f94edca44426859"
+DEPENDS += "python-gevent"
+RDEPENDS_${PN} += "python-gevent python-msgpack python-gsocketpool"
+
+SRC_URI_append = " \
+    file://0001-fix_setup_py.patch;patch=1;pnum=1 \

I think you could just do SRC_URI += and remove patch=1 and pnum=1 they are defaults.

Quoted 14 lines
meta-python/recipes-connectivity/python-mprpc/python-mprpc_0.1.13.bb new file +6 -1
+"
+
+SRC_URI[md5sum] = "449e6239eb5ff07b9cceb86e1ab0c2ee"
+SRC_URI[sha256sum] = "5881cc7fbb8de814e2b4aa5958bfe147c5c301e46749190f0e6abf373cf56d82"
+
+inherit pypi setuptools
--

2.10.2

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

#3 lore raw

Re: [meta-python][PATCH v3 2/2] python-mprpc: add new recipe

Hi,

Quoted 3 lines

I think you could just do SRC_URI += and remove patch=1 and pnum=1 they are defaults.

yeah, that would be better, but as Martin pointed out all my pending patches are already merged. Sorry for resending and not checking if they are already merged.
I was looking at patchwork, but somewhat I missed that everything is already in-tree.

Cheers,
Andrej

#4 lore raw

Re: [meta-python][PATCH v3 2/2] python-mprpc: add new recipe

Quoted 11 lines · Andrej Rode

Hi,

Quoted 3 lines

I think you could just do SRC_URI += and remove patch=1 and pnum=1 they are defaults.

yeah, that would be better, but as Martin pointed out all my pending patches are already merged.
Sorry for resending and not checking if they are already merged. I was looking at patchwork, but somewhat I missed that everything is already in-tree.

thats fine. Send a follow-up

Quoted 4 lines

Cheers,
Andrej