Skip to contentSkip to conversation

package/python-bluezero: new package

PATCH Superseded Grzegorz Blach 3 participants 12 messages Aug 30, 2019 – Sep 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-bluezero: new package

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

---
 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
DEVELOPERS +1 -0
index e50ac78ae7..f84a66ecab 100644
@@ -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/
package/Config.in +1 -0
index 710ed12be0..175d8661b8 100644
@@ -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"
package/python-bluezero/Config.in new file +7 -0
new file mode 100644
index 0000000000..e014d79237
@@ -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
package/python-bluezero/python-bluezero.hash new file +3 -0
new file mode 100644
index 0000000000..e1adcf5672
@@ -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
package/python-bluezero/python-bluezero.mk new file +13 -0
new file mode 100644
index 0000000000..1271b997a9
@@ -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))
Signature · 1 line
2.23.0
#1 lore raw

PATCH v2 1/1 package/python-bluezero: new package

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

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

---
 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
DEVELOPERS +1 -0
index e50ac78ae7..f84a66ecab 100644
@@ -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/
package/Config.in +1 -0
index 710ed12be0..175d8661b8 100644
@@ -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"
package/python-bluezero/Config.in new file +6 -0
new file mode 100644
index 0000000000..297f096577
@@ -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
package/python-bluezero/python-bluezero.hash new file +3 -0
new file mode 100644
index 0000000000..e1adcf5672
@@ -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
package/python-bluezero/python-bluezero.mk new file +13 -0
new file mode 100644
index 0000000000..1271b997a9
@@ -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))
Signature · 1 line
2.23.0
#2 lore raw

PATCH v2 1/1 package/python-bluezero: new package

Hello Grzegorz,

Quoted 8 lines · On Tue, 3 Sep 2019 21:24:22 +0000 Grzegorz Blach <[email protected]> wrote:

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

---
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

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH v2 1/1 package/python-bluezero: new package

Hello Thomas,

Quoted 16 lines · Thomas Petazzoni

Hello Grzegorz,

Quoted 8 lines · On Tue, 3 Sep 2019 21:24:22 +0000 Grzegorz Blach <[email protected]> wrote:

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

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

Quoted 3 lines

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?

Quoted 7 lines

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

PATCH v2 1/1 package/python-bluezero: new package

Quoted 26 lines · Grzegorz Blach

Hello Thomas,

Quoted 16 lines · Thomas Petazzoni

Hello Grzegorz,

Quoted 8 lines · On Tue, 3 Sep 2019 21:24:22 +0000 Grzegorz Blach <[email protected]> wrote:

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

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

Quoted 3 lines

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.

Quoted 5 lines

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

#5 lore raw

PATCH v2 1/1 package/python-bluezero: new package

Quoted 8 lines · On Wed, 18 Sep 2019 20:08:01 +0200 Arnout Vandecappelle <[email protected]> wrote:
Quoted 8 lines

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.

Quoted 6 lines
Quoted 1 line

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

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#6 lore raw

PATCH v2 1/1 package/python-bluezero: new package

Quoted 14 lines · Thomas Petazzoni
Quoted 8 lines · On Wed, 18 Sep 2019 20:08:01 +0200 Arnout Vandecappelle <[email protected]> wrote:
Quoted 8 lines

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.

Quoted 8 lines
Quoted 6 lines
Quoted 1 line

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.

Quoted 7 lines

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#7 lore raw

PATCH v2 1/1 package/python-bluezero: new package

Quoted 3 lines · On Thu, 19 Sep 2019 12:47:21 +0200 Grzegorz Blach <[email protected]> wrote:
Quoted 1 line

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

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#8 lore raw

PATCH v2 1/1 package/python-bluezero: new package

Quoted 11 lines · Thomas Petazzoni
Quoted 3 lines · On Thu, 19 Sep 2019 12:47:21 +0200 Grzegorz Blach <[email protected]> wrote:
Quoted 1 line

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.

#9 lore raw

PATCH v3 1/1 Python library for Bluetooth Low Energy (BLE) on Linux.

In reply to Grzegorz Blach

---
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).

---
 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
DEVELOPERS +1 -0
index 8193d0b620..d9a03065e6 100644
@@ -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/
package/Config.in +1 -0
index ab43543c7f..5218f9fa10 100644
@@ -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"
package/python-bluezero/Config.in new file +11 -0
new file mode 100644
index 0000000000..ed2277dc31
@@ -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
package/python-bluezero/python-bluezero.hash new file +3 -0
new file mode 100644
index 0000000000..e1adcf5672
@@ -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
package/python-bluezero/python-bluezero.mk new file +13 -0
new file mode 100644
index 0000000000..1271b997a9
@@ -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))
Signature · 1 line
2.23.0
#10 lore raw

PATCH v4 1/1 package/python-bluezero: new package

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

---
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).

---
 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
DEVELOPERS +1 -0
index 69d2ed6272..4fba481786 100644
@@ -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/
package/Config.in +1 -0
index 10b441c6e1..d3f09d45c1 100644
@@ -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"
package/python-bluezero/Config.in new file +11 -0
new file mode 100644
index 0000000000..ed2277dc31
@@ -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
package/python-bluezero/python-bluezero.hash new file +3 -0
new file mode 100644
index 0000000000..e1adcf5672
@@ -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
package/python-bluezero/python-bluezero.mk new file +13 -0
new file mode 100644
index 0000000000..1271b997a9
@@ -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))
Signature · 1 line
2.23.0
#11 lore raw

PATCH v4 1/1 package/python-bluezero: new package

Quoted 6 lines · On Thu, 26 Sep 2019 19:27:18 +0000 Grzegorz Blach <[email protected]> wrote:

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

---
Changes v3 -> v4:
- Fixed first line in commit message.

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com