package/python-bluezero: new package
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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.
Signed-off-by Grzegorz Blach <[email protected]>---
Changes v1 -> v2:
- RemovedBR2_PACKAGE_PYTHON_AIOBLESCANfrom runtime dependencies since this is an optional dependency (used only byobserver.pymodule).
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
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.
Signed-off-by Grzegorz Blach <[email protected]>---
Changes v1 -> v2:
- RemovedBR2_PACKAGE_PYTHON_AIOBLESCANfrom runtime dependencies since this is an optional dependency (used only byobserver.pymodule).
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
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.
Signed-off-by Grzegorz Blach <[email protected]>---
Changes v1 -> v2:
- RemovedBR2_PACKAGE_PYTHON_AIOBLESCANfrom runtime dependencies since this is an optional dependency (used only byobserver.pymodule).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.pyandbroadcaster.py.central.py,peripheral.pyandbroadcaster.pyuse BlueZ through D-BUS,
butobserver.pyuses python-aioblescan instead. And python-aioblescan usesAF_BLUETOOTHsockets.
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 usingobserver.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
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.pyandbroadcaster.py.central.py,peripheral.pyandbroadcaster.pyuse BlueZ through D-BUS,
butobserver.pyuses python-aioblescan instead. And python-aioblescan usesAF_BLUETOOTHsockets.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 usingobserver.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. "Forcentral.py,peripheral.pyandbroadcaster.pyyou need to enable thebluez5_utilspackage. Forobserver.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
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.pyandbroadcaster.py.central.py,peripheral.pyandbroadcaster.pyuse BlueZ through D-BUS,
butobserver.pyuses python-aioblescan instead. And python-aioblescan usesAF_BLUETOOTHsockets.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 usingobserver.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. "Forcentral.py,peripheral.pyandbroadcaster.pyyou need to enable thebluez5_utilspackage. Forobserver.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
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
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.
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
Thomas Petazzoni
AppliedPATCH 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.
Signed-off-by Grzegorz Blach <[email protected]>---
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