All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/python-bluezero: new package
@ 2019-08-30 15:47 Grzegorz Blach
  2019-09-03 21:24 ` [Buildroot] [PATCH v2] " Grzegorz Blach
  0 siblings, 1 reply; 12+ messages in thread
From: Grzegorz Blach @ 2019-08-30 15:47 UTC (permalink / raw)
  To: buildroot

Python library for Bluetooth Low Energy (BLE) on Linux.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-bluezero/Config.in            |  7 +++++++
 package/python-bluezero/python-bluezero.hash |  3 +++
 package/python-bluezero/python-bluezero.mk   | 13 +++++++++++++
 5 files changed, 25 insertions(+)
 create mode 100644 package/python-bluezero/Config.in
 create mode 100644 package/python-bluezero/python-bluezero.hash
 create mode 100644 package/python-bluezero/python-bluezero.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index e50ac78ae7..f84a66ecab 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -975,6 +975,7 @@ F:	package/bluez5_utils-headers/
 F:	package/f2fs-tools/
 F:	package/pigpio/
 F:	package/python-aioblescan/
+F:	package/python-bluezero/
 F:	package/python-falcon/
 F:	package/python-ifaddr/
 F:	package/python-hiredis/
diff --git a/package/Config.in b/package/Config.in
index 710ed12be0..175d8661b8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -841,6 +841,7 @@ menu "External python modules"
 	source "package/python-bcrypt/Config.in"
 	source "package/python-beautifulsoup4/Config.in"
 	source "package/python-bitstring/Config.in"
+	source "package/python-bluezero/Config.in"
 	source "package/python-bottle/Config.in"
 	source "package/python-cached-property/Config.in"
 	source "package/python-can/Config.in"
diff --git a/package/python-bluezero/Config.in b/package/python-bluezero/Config.in
new file mode 100644
index 0000000000..e014d79237
--- /dev/null
+++ b/package/python-bluezero/Config.in
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_PYTHON_BLUEZERO
+	bool "python-bluezero"
+	select BR2_PACKAGE_PYTHON_AIOBLESCAN if BR2_PACKAGE_PYTHON3 # runtime
+	help
+	  Python library for Bluetooth Low Energy (BLE) on Linux.
+
+	  https://github.com/ukBaz/python-bluezero
diff --git a/package/python-bluezero/python-bluezero.hash b/package/python-bluezero/python-bluezero.hash
new file mode 100644
index 0000000000..e1adcf5672
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.hash
@@ -0,0 +1,3 @@
+# md5, sha256 from https://pypi.org/pypi/bluezero/json
+md5	b13fd84a5fe98ce9526a6f513c9131b1  bluezero-0.2.0.tar.gz
+sha256	d16eb9ac048665a974ad0db312b23bfd528423000b7b2983566b853d5e0d19b6  bluezero-0.2.0.tar.gz
diff --git a/package/python-bluezero/python-bluezero.mk b/package/python-bluezero/python-bluezero.mk
new file mode 100644
index 0000000000..1271b997a9
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-bluezero
+#
+################################################################################
+
+PYTHON_BLUEZERO_VERSION = 0.2.0
+PYTHON_BLUEZERO_SOURCE = bluezero-$(PYTHON_BLUEZERO_VERSION).tar.gz
+PYTHON_BLUEZERO_SITE = https://files.pythonhosted.org/packages/9c/76/8f5250e119be8aff4f7ac3acb9d91589909d8650152fdf6758bfb01f9576
+PYTHON_BLUEZERO_SETUP_TYPE = setuptools
+PYTHON_BLUEZERO_LICENSE = MIT
+
+$(eval $(python-package))
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v2] package/python-bluezero: new package
  2019-08-30 15:47 [Buildroot] [PATCH 1/1] package/python-bluezero: new package Grzegorz Blach
@ 2019-09-03 21:24 ` Grzegorz Blach
  2019-09-17 21:27   ` Thomas Petazzoni
  2019-09-19 10:42   ` [Buildroot] [PATCH v3] Python library for Bluetooth Low Energy (BLE) on Linux Grzegorz Blach
  0 siblings, 2 replies; 12+ messages in thread
From: Grzegorz Blach @ 2019-09-03 21:24 UTC (permalink / raw)
  To: buildroot

Python library for Bluetooth Low Energy (BLE) on Linux.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
Changes v1 -> v2:
  - Removed BR2_PACKAGE_PYTHON_AIOBLESCAN from runtime dependencies
    since this is an optional dependency (used only by observer.py
    module).

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-bluezero/Config.in            |  6 ++++++
 package/python-bluezero/python-bluezero.hash |  3 +++
 package/python-bluezero/python-bluezero.mk   | 13 +++++++++++++
 5 files changed, 24 insertions(+)
 create mode 100644 package/python-bluezero/Config.in
 create mode 100644 package/python-bluezero/python-bluezero.hash
 create mode 100644 package/python-bluezero/python-bluezero.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index e50ac78ae7..f84a66ecab 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -975,6 +975,7 @@ F:	package/bluez5_utils-headers/
 F:	package/f2fs-tools/
 F:	package/pigpio/
 F:	package/python-aioblescan/
+F:	package/python-bluezero/
 F:	package/python-falcon/
 F:	package/python-ifaddr/
 F:	package/python-hiredis/
diff --git a/package/Config.in b/package/Config.in
index 710ed12be0..175d8661b8 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -841,6 +841,7 @@ menu "External python modules"
 	source "package/python-bcrypt/Config.in"
 	source "package/python-beautifulsoup4/Config.in"
 	source "package/python-bitstring/Config.in"
+	source "package/python-bluezero/Config.in"
 	source "package/python-bottle/Config.in"
 	source "package/python-cached-property/Config.in"
 	source "package/python-can/Config.in"
diff --git a/package/python-bluezero/Config.in b/package/python-bluezero/Config.in
new file mode 100644
index 0000000000..297f096577
--- /dev/null
+++ b/package/python-bluezero/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_PYTHON_BLUEZERO
+	bool "python-bluezero"
+	help
+	  Python library for Bluetooth Low Energy (BLE) on Linux.
+
+	  https://github.com/ukBaz/python-bluezero
diff --git a/package/python-bluezero/python-bluezero.hash b/package/python-bluezero/python-bluezero.hash
new file mode 100644
index 0000000000..e1adcf5672
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.hash
@@ -0,0 +1,3 @@
+# md5, sha256 from https://pypi.org/pypi/bluezero/json
+md5	b13fd84a5fe98ce9526a6f513c9131b1  bluezero-0.2.0.tar.gz
+sha256	d16eb9ac048665a974ad0db312b23bfd528423000b7b2983566b853d5e0d19b6  bluezero-0.2.0.tar.gz
diff --git a/package/python-bluezero/python-bluezero.mk b/package/python-bluezero/python-bluezero.mk
new file mode 100644
index 0000000000..1271b997a9
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-bluezero
+#
+################################################################################
+
+PYTHON_BLUEZERO_VERSION = 0.2.0
+PYTHON_BLUEZERO_SOURCE = bluezero-$(PYTHON_BLUEZERO_VERSION).tar.gz
+PYTHON_BLUEZERO_SITE = https://files.pythonhosted.org/packages/9c/76/8f5250e119be8aff4f7ac3acb9d91589909d8650152fdf6758bfb01f9576
+PYTHON_BLUEZERO_SETUP_TYPE = setuptools
+PYTHON_BLUEZERO_LICENSE = MIT
+
+$(eval $(python-package))
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v2] package/python-bluezero: new package
  2019-09-03 21:24 ` [Buildroot] [PATCH v2] " Grzegorz Blach
@ 2019-09-17 21:27   ` Thomas Petazzoni
  2019-09-18  9:49     ` Grzegorz Blach
  2019-09-19 10:42   ` [Buildroot] [PATCH v3] Python library for Bluetooth Low Energy (BLE) on Linux Grzegorz Blach
  1 sibling, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2019-09-17 21:27 UTC (permalink / raw)
  To: buildroot

Hello Grzegorz,

On Tue,  3 Sep 2019 21:24:22 +0000
Grzegorz Blach <grzegorz@blach.pl> wrote:

> Python library for Bluetooth Low Energy (BLE) on Linux.
> 
> Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
> ---
> Changes v1 -> v2:
>   - Removed BR2_PACKAGE_PYTHON_AIOBLESCAN from runtime dependencies
>     since this is an optional dependency (used only by observer.py
>     module).

My understanding is that this Python module talks over D-Bus to BlueZ,
and therefore it cannot work without BlueZ. Shouldn't this package then
have some dependency on BlueZ, such as a "depends on" ?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v2] package/python-bluezero: new package
  2019-09-17 21:27   ` Thomas Petazzoni
@ 2019-09-18  9:49     ` Grzegorz Blach
  2019-09-18 18:08       ` Arnout Vandecappelle
  0 siblings, 1 reply; 12+ messages in thread
From: Grzegorz Blach @ 2019-09-18  9:49 UTC (permalink / raw)
  To: buildroot

Hello Thomas,

> On 17 Sep 2019, at 23:27, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> 
> Hello Grzegorz,
> 
> On Tue,  3 Sep 2019 21:24:22 +0000
> Grzegorz Blach <grzegorz@blach.pl> wrote:
> 
>> Python library for Bluetooth Low Energy (BLE) on Linux.
>> 
>> Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
>> ---
>> Changes v1 -> v2:
>>  - Removed BR2_PACKAGE_PYTHON_AIOBLESCAN from runtime dependencies
>>    since this is an optional dependency (used only by observer.py
>>    module).
> 
> My understanding is that this Python module talks over D-Bus to BlueZ,
> and therefore it cannot work without BlueZ. Shouldn't this package then
> have some dependency on BlueZ, such as a "depends on?

Python-bluezero has 4 main modules: central.py, peripheral.py, observer.py and broadcaster.py.
central.py, peripheral.py and broadcaster.py use BlueZ through D-BUS,
but observer.py uses python-aioblescan instead. And python-aioblescan uses AF_BLUETOOTH sockets.

So depending on what part of python-bluezero you use, it depends on D-Bus/BlueZ or python-aioblescan. 
Personally I use python-bluezero in two projects. In the first project I use only peripheral.py (D-Bus/BlueZ).
And in the second project I?m using observer.py (python-aioblescan), which means I don?t need D-Bus/BlueZ in my second project.

How to set dependencies in this situation?


> Thanks!
> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v2] package/python-bluezero: new package
  2019-09-18  9:49     ` Grzegorz Blach
@ 2019-09-18 18:08       ` Arnout Vandecappelle
  2019-09-18 19:15         ` Thomas Petazzoni
  0 siblings, 1 reply; 12+ messages in thread
From: Arnout Vandecappelle @ 2019-09-18 18:08 UTC (permalink / raw)
  To: buildroot



On 18/09/2019 11:49, Grzegorz Blach wrote:
> Hello Thomas,
> 
>> On 17 Sep 2019, at 23:27, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
>>
>> Hello Grzegorz,
>>
>> On Tue,  3 Sep 2019 21:24:22 +0000
>> Grzegorz Blach <grzegorz@blach.pl> wrote:
>>
>>> Python library for Bluetooth Low Energy (BLE) on Linux.
>>>
>>> Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
>>> ---
>>> Changes v1 -> v2:
>>>  - Removed BR2_PACKAGE_PYTHON_AIOBLESCAN from runtime dependencies
>>>    since this is an optional dependency (used only by observer.py
>>>    module).
>>
>> My understanding is that this Python module talks over D-Bus to BlueZ,
>> and therefore it cannot work without BlueZ. Shouldn't this package then
>> have some dependency on BlueZ, such as a "depends on?
> 
> Python-bluezero has 4 main modules: central.py, peripheral.py, observer.py and broadcaster.py.
> central.py, peripheral.py and broadcaster.py use BlueZ through D-BUS,
> but observer.py uses python-aioblescan instead. And python-aioblescan uses AF_BLUETOOTH sockets.
> 
> So depending on what part of python-bluezero you use, it depends on D-Bus/BlueZ or python-aioblescan. 
> Personally I use python-bluezero in two projects. In the first project I use only peripheral.py (D-Bus/BlueZ).
> And in the second project I?m using observer.py (python-aioblescan), which means I don?t need D-Bus/BlueZ in my second project.
> 
> How to set dependencies in this situation?

 I think it's too complicated to handle with Kconfig, so I would just explain it
in the help text. E.g. "For central.py, peripheral.py and broadcaster.py you
need to enable the bluez5_utils package. For observer.py, you need to enable the
python-aioblescan package."

 Regards,
 Arnout

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v2] package/python-bluezero: new package
  2019-09-18 18:08       ` Arnout Vandecappelle
@ 2019-09-18 19:15         ` Thomas Petazzoni
  2019-09-19 10:47           ` Grzegorz Blach
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2019-09-18 19:15 UTC (permalink / raw)
  To: buildroot

On Wed, 18 Sep 2019 20:08:01 +0200
Arnout Vandecappelle <arnout@mind.be> wrote:

> > Python-bluezero has 4 main modules: central.py, peripheral.py, observer.py and broadcaster.py.
> > central.py, peripheral.py and broadcaster.py use BlueZ through D-BUS,
> > but observer.py uses python-aioblescan instead. And python-aioblescan uses AF_BLUETOOTH sockets.
> > 
> > So depending on what part of python-bluezero you use, it depends on D-Bus/BlueZ or python-aioblescan. 
> > Personally I use python-bluezero in two projects. In the first project I use only peripheral.py (D-Bus/BlueZ).
> > And in the second project I?m using observer.py (python-aioblescan), which means I don?t need D-Bus/BlueZ in my second project.
> > 
> > How to set dependencies in this situation?  
> 
>  I think it's too complicated to handle with Kconfig, so I would just explain it
> in the help text. E.g. "For central.py, peripheral.py and broadcaster.py you
> need to enable the bluez5_utils package. For observer.py, you need to enable the
> python-aioblescan package."

I entirely agree with this, and I was going to suggest exactly the same.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v3] Python library for Bluetooth Low Energy (BLE) on Linux.
  2019-09-03 21:24 ` [Buildroot] [PATCH v2] " Grzegorz Blach
  2019-09-17 21:27   ` Thomas Petazzoni
@ 2019-09-19 10:42   ` Grzegorz Blach
  2019-09-26 19:27     ` [Buildroot] [PATCH v4] package/python-bluezero: new package Grzegorz Blach
  1 sibling, 1 reply; 12+ messages in thread
From: Grzegorz Blach @ 2019-09-19 10:42 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
Changes v2 -> v3:
  - Extended help message.

Changes v1 -> v2:
  - Removed BR2_PACKAGE_PYTHON_AIOBLESCAN from runtime dependencies
    since this is an optional dependency (used only by observer.py
    module).

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-bluezero/Config.in            | 11 +++++++++++
 package/python-bluezero/python-bluezero.hash |  3 +++
 package/python-bluezero/python-bluezero.mk   | 13 +++++++++++++
 5 files changed, 29 insertions(+)
 create mode 100644 package/python-bluezero/Config.in
 create mode 100644 package/python-bluezero/python-bluezero.hash
 create mode 100644 package/python-bluezero/python-bluezero.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 8193d0b620..d9a03065e6 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -984,6 +984,7 @@ F:	package/bluez5_utils-headers/
 F:	package/f2fs-tools/
 F:	package/pigpio/
 F:	package/python-aioblescan/
+F:	package/python-bluezero/
 F:	package/python-falcon/
 F:	package/python-ifaddr/
 F:	package/python-hiredis/
diff --git a/package/Config.in b/package/Config.in
index ab43543c7f..5218f9fa10 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -843,6 +843,7 @@ menu "External python modules"
 	source "package/python-bcrypt/Config.in"
 	source "package/python-beautifulsoup4/Config.in"
 	source "package/python-bitstring/Config.in"
+	source "package/python-bluezero/Config.in"
 	source "package/python-bottle/Config.in"
 	source "package/python-brotli/Config.in"
 	source "package/python-cached-property/Config.in"
diff --git a/package/python-bluezero/Config.in b/package/python-bluezero/Config.in
new file mode 100644
index 0000000000..ed2277dc31
--- /dev/null
+++ b/package/python-bluezero/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_BLUEZERO
+	bool "python-bluezero"
+	help
+	  Python library for Bluetooth Low Energy (BLE) on Linux.
+
+	  For central.py, peripheral.py and broadcaster.py you need
+	  to enable the dbus-python and the bluez5-utils package.
+	  For observer.py, you need to enable the python-aioblescan
+	  package.
+
+	  https://github.com/ukBaz/python-bluezero
diff --git a/package/python-bluezero/python-bluezero.hash b/package/python-bluezero/python-bluezero.hash
new file mode 100644
index 0000000000..e1adcf5672
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.hash
@@ -0,0 +1,3 @@
+# md5, sha256 from https://pypi.org/pypi/bluezero/json
+md5	b13fd84a5fe98ce9526a6f513c9131b1  bluezero-0.2.0.tar.gz
+sha256	d16eb9ac048665a974ad0db312b23bfd528423000b7b2983566b853d5e0d19b6  bluezero-0.2.0.tar.gz
diff --git a/package/python-bluezero/python-bluezero.mk b/package/python-bluezero/python-bluezero.mk
new file mode 100644
index 0000000000..1271b997a9
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-bluezero
+#
+################################################################################
+
+PYTHON_BLUEZERO_VERSION = 0.2.0
+PYTHON_BLUEZERO_SOURCE = bluezero-$(PYTHON_BLUEZERO_VERSION).tar.gz
+PYTHON_BLUEZERO_SITE = https://files.pythonhosted.org/packages/9c/76/8f5250e119be8aff4f7ac3acb9d91589909d8650152fdf6758bfb01f9576
+PYTHON_BLUEZERO_SETUP_TYPE = setuptools
+PYTHON_BLUEZERO_LICENSE = MIT
+
+$(eval $(python-package))
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v2] package/python-bluezero: new package
  2019-09-18 19:15         ` Thomas Petazzoni
@ 2019-09-19 10:47           ` Grzegorz Blach
  2019-09-25 20:43             ` Thomas Petazzoni
  0 siblings, 1 reply; 12+ messages in thread
From: Grzegorz Blach @ 2019-09-19 10:47 UTC (permalink / raw)
  To: buildroot


> On 18 Sep 2019, at 21:15, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> 
> On Wed, 18 Sep 2019 20:08:01 +0200
> Arnout Vandecappelle <arnout@mind.be> wrote:
> 
>>> Python-bluezero has 4 main modules: central.py, peripheral.py, observer.py and broadcaster.py.
>>> central.py, peripheral.py and broadcaster.py use BlueZ through D-BUS,
>>> but observer.py uses python-aioblescan instead. And python-aioblescan uses AF_BLUETOOTH sockets.
>>> 
>>> So depending on what part of python-bluezero you use, it depends on D-Bus/BlueZ or python-aioblescan. 
>>> Personally I use python-bluezero in two projects. In the first project I use only peripheral.py (D-Bus/BlueZ).
>>> And in the second project I?m using observer.py (python-aioblescan), which means I don?t need D-Bus/BlueZ in my second project.
>>> 
>>> How to set dependencies in this situation?  
>> 
>> I think it's too complicated to handle with Kconfig, so I would just explain it
>> in the help text. E.g. "For central.py, peripheral.py and broadcaster.py you
>> need to enable the bluez5_utils package. For observer.py, you need to enable the
>> python-aioblescan package."
> 
> I entirely agree with this, and I was going to suggest exactly the same.


I just submitted an updated patch.


> Best regards,
> 
> Thomas
> -- 
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v2] package/python-bluezero: new package
  2019-09-19 10:47           ` Grzegorz Blach
@ 2019-09-25 20:43             ` Thomas Petazzoni
  2019-09-26 19:31               ` Grzegorz Blach
  0 siblings, 1 reply; 12+ messages in thread
From: Thomas Petazzoni @ 2019-09-25 20:43 UTC (permalink / raw)
  To: buildroot

On Thu, 19 Sep 2019 12:47:21 +0200
Grzegorz Blach <grzegorz@blach.pl> wrote:

> > I entirely agree with this, and I was going to suggest exactly the same.  
> 
> I just submitted an updated patch.

Did you send the updated patch? I don't see it on the mailing list.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v4] package/python-bluezero: new package
  2019-09-19 10:42   ` [Buildroot] [PATCH v3] Python library for Bluetooth Low Energy (BLE) on Linux Grzegorz Blach
@ 2019-09-26 19:27     ` Grzegorz Blach
  2019-09-27 20:38       ` Thomas Petazzoni
  0 siblings, 1 reply; 12+ messages in thread
From: Grzegorz Blach @ 2019-09-26 19:27 UTC (permalink / raw)
  To: buildroot

Python library for Bluetooth Low Energy (BLE) on Linux.

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
Changes v3 -> v4:
  - Fixed first line in commit message.

Changes v2 -> v3:
  - Extended help message.

Changes v1 -> v2:
  - Removed BR2_PACKAGE_PYTHON_AIOBLESCAN from runtime dependencies
    since this is an optional dependency (used only by observer.py
    module).

Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
---
 DEVELOPERS                                   |  1 +
 package/Config.in                            |  1 +
 package/python-bluezero/Config.in            | 11 +++++++++++
 package/python-bluezero/python-bluezero.hash |  3 +++
 package/python-bluezero/python-bluezero.mk   | 13 +++++++++++++
 5 files changed, 29 insertions(+)
 create mode 100644 package/python-bluezero/Config.in
 create mode 100644 package/python-bluezero/python-bluezero.hash
 create mode 100644 package/python-bluezero/python-bluezero.mk

diff --git a/DEVELOPERS b/DEVELOPERS
index 69d2ed6272..4fba481786 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -987,6 +987,7 @@ F:	package/bluez5_utils-headers/
 F:	package/f2fs-tools/
 F:	package/pigpio/
 F:	package/python-aioblescan/
+F:	package/python-bluezero/
 F:	package/python-falcon/
 F:	package/python-ifaddr/
 F:	package/python-hiredis/
diff --git a/package/Config.in b/package/Config.in
index 10b441c6e1..d3f09d45c1 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -842,6 +842,7 @@ menu "External python modules"
 	source "package/python-bcrypt/Config.in"
 	source "package/python-beautifulsoup4/Config.in"
 	source "package/python-bitstring/Config.in"
+	source "package/python-bluezero/Config.in"
 	source "package/python-bottle/Config.in"
 	source "package/python-brotli/Config.in"
 	source "package/python-cached-property/Config.in"
diff --git a/package/python-bluezero/Config.in b/package/python-bluezero/Config.in
new file mode 100644
index 0000000000..ed2277dc31
--- /dev/null
+++ b/package/python-bluezero/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_BLUEZERO
+	bool "python-bluezero"
+	help
+	  Python library for Bluetooth Low Energy (BLE) on Linux.
+
+	  For central.py, peripheral.py and broadcaster.py you need
+	  to enable the dbus-python and the bluez5-utils package.
+	  For observer.py, you need to enable the python-aioblescan
+	  package.
+
+	  https://github.com/ukBaz/python-bluezero
diff --git a/package/python-bluezero/python-bluezero.hash b/package/python-bluezero/python-bluezero.hash
new file mode 100644
index 0000000000..e1adcf5672
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.hash
@@ -0,0 +1,3 @@
+# md5, sha256 from https://pypi.org/pypi/bluezero/json
+md5	b13fd84a5fe98ce9526a6f513c9131b1  bluezero-0.2.0.tar.gz
+sha256	d16eb9ac048665a974ad0db312b23bfd528423000b7b2983566b853d5e0d19b6  bluezero-0.2.0.tar.gz
diff --git a/package/python-bluezero/python-bluezero.mk b/package/python-bluezero/python-bluezero.mk
new file mode 100644
index 0000000000..1271b997a9
--- /dev/null
+++ b/package/python-bluezero/python-bluezero.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# python-bluezero
+#
+################################################################################
+
+PYTHON_BLUEZERO_VERSION = 0.2.0
+PYTHON_BLUEZERO_SOURCE = bluezero-$(PYTHON_BLUEZERO_VERSION).tar.gz
+PYTHON_BLUEZERO_SITE = https://files.pythonhosted.org/packages/9c/76/8f5250e119be8aff4f7ac3acb9d91589909d8650152fdf6758bfb01f9576
+PYTHON_BLUEZERO_SETUP_TYPE = setuptools
+PYTHON_BLUEZERO_LICENSE = MIT
+
+$(eval $(python-package))
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v2] package/python-bluezero: new package
  2019-09-25 20:43             ` Thomas Petazzoni
@ 2019-09-26 19:31               ` Grzegorz Blach
  0 siblings, 0 replies; 12+ messages in thread
From: Grzegorz Blach @ 2019-09-26 19:31 UTC (permalink / raw)
  To: buildroot


> On 25 Sep 2019, at 22:43, Thomas Petazzoni <thomas.petazzoni@bootlin.com> wrote:
> 
> On Thu, 19 Sep 2019 12:47:21 +0200
> Grzegorz Blach <grzegorz@blach.pl> wrote:
> 
>>> I entirely agree with this, and I was going to suggest exactly the same.  
>> 
>> I just submitted an updated patch.
> 
> Did you send the updated patch? I don't see it on the mailing list.

Because in V3 I?ve write wrongly first line in commit message.
Just fixed in V4.

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [Buildroot] [PATCH v4] package/python-bluezero: new package
  2019-09-26 19:27     ` [Buildroot] [PATCH v4] package/python-bluezero: new package Grzegorz Blach
@ 2019-09-27 20:38       ` Thomas Petazzoni
  0 siblings, 0 replies; 12+ messages in thread
From: Thomas Petazzoni @ 2019-09-27 20:38 UTC (permalink / raw)
  To: buildroot

On Thu, 26 Sep 2019 19:27:18 +0000
Grzegorz Blach <grzegorz@blach.pl> wrote:

> Python library for Bluetooth Low Energy (BLE) on Linux.
> 
> Signed-off-by: Grzegorz Blach <grzegorz@blach.pl>
> ---
> Changes v3 -> v4:
>   - Fixed first line in commit message.

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2019-09-27 20:38 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-30 15:47 [Buildroot] [PATCH 1/1] package/python-bluezero: new package Grzegorz Blach
2019-09-03 21:24 ` [Buildroot] [PATCH v2] " Grzegorz Blach
2019-09-17 21:27   ` Thomas Petazzoni
2019-09-18  9:49     ` Grzegorz Blach
2019-09-18 18:08       ` Arnout Vandecappelle
2019-09-18 19:15         ` Thomas Petazzoni
2019-09-19 10:47           ` Grzegorz Blach
2019-09-25 20:43             ` Thomas Petazzoni
2019-09-26 19:31               ` Grzegorz Blach
2019-09-19 10:42   ` [Buildroot] [PATCH v3] Python library for Bluetooth Low Energy (BLE) on Linux Grzegorz Blach
2019-09-26 19:27     ` [Buildroot] [PATCH v4] package/python-bluezero: new package Grzegorz Blach
2019-09-27 20:38       ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.