Skip to contentSkip to conversation

package/python-can: bump to 4.4.2

PATCH Applied Marcus Hoffmann via buildroot 1 participant 4 messages Aug 22, 2024 – Aug 23, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/python-can: bump to 4.4.2

The tarball name prefix changed from python-can to python_can.

Changelog:
* https://github.com/hardbyte/python-can/blob/main/CHANGELOG.md#version-442

---
 package/python-can/python-can.hash | 4 ++--
 package/python-can/python-can.mk   | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)
package/python-can/python-can.hash +2 -2
index 4e706519be..479935b2f0 100644
@@ -1,5 +1,5 @@
 # md5, sha256 from https://pypi.org/pypi/python-can/json
-md5  a84ace55fdeca8efd50986deacfba584  python-can-4.3.1.tar.gz
-sha256  008bea1c12e31586e1aa76971126b831bf01056a900e91862a11360e011ab933  python-can-4.3.1.tar.gz
+md5  20133a1b73b58c976bba6b0af8581f32  python_can-4.4.2.tar.gz
+sha256  1c46c0935f39f7a9c3e76b03249af0580689ebf7a1844195e92f87257f009df5  python_can-4.4.2.tar.gz
 # Locally computed sha256 checksums
 sha256  da7eabb7bafdf7d3ae5e9f223aa5bdc1eece45ac569dc21b3b037520b4464768  LICENSE.txt
package/python-can/python-can.mk +3 -2
index c7100e3dda..b6547a4d3f 100644
@@ -4,8 +4,9 @@
 #
 ################################################################################
 
-PYTHON_CAN_VERSION = 4.3.1
-PYTHON_CAN_SITE = https://files.pythonhosted.org/packages/02/fc/d5fd33ee93f17a4eb0dcd75aebf522396e3f511bf474058e99e86ae4e33f
+PYTHON_CAN_VERSION = 4.4.2
+PYTHON_CAN_SOURCE = python_can-$(PYTHON_CAN_VERSION).tar.gz
+PYTHON_CAN_SITE = https://files.pythonhosted.org/packages/a3/17/57c38abbf00993ac5ec306de0c00271685d1372ef3d907b107eb63ab13a8
 PYTHON_CAN_SETUP_TYPE = setuptools
 PYTHON_CAN_LICENSE = LGPL-3.0
 PYTHON_CAN_LICENSE_FILES = LICENSE.txt
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/python-can: add option to install the viewer tool

Enabling the option correctly select the python-curses module dependency of the viewer tool.

---
 package/python-can/Config.in     | 7 +++++++
 package/python-can/python-can.mk | 7 +++++++
 2 files changed, 14 insertions(+)
package/python-can/Config.in +7 -0
index 61955a2b00..36e25b8764 100644
@@ -11,3 +11,10 @@ config BR2_PACKAGE_PYTHON_CAN
 	  Python.
 
 	  https://github.com/hardbyte/python-can
+
+config BR2_PACKAGE_PYTHON_CAN_VIEWER
+	bool "python-can-viewer"
+	depends on BR2_PACKAGE_PYTHON_CAN
+	select BR2_PACKAGE_PYTHON3_CURSES # runtime
+	help
+	  Also install the viewer tool (requires ncurses).
package/python-can/python-can.mk +7 -0
index b6547a4d3f..bc67be4f8c 100644
@@ -11,4 +11,11 @@ PYTHON_CAN_SETUP_TYPE = setuptools
 PYTHON_CAN_LICENSE = LGPL-3.0
 PYTHON_CAN_LICENSE_FILES = LICENSE.txt
 
+ifneq ($(BR2_PACKAGE_PYTHON_CAN_VIEWER),y)
+define PYTHON_CAN_REMOVE_VIEWER
+	rm -f $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/site-packages/can/viewer.py
+endef
+PYTHON_CAN_POST_INSTALL_TARGET_HOOKS += PYTHON_CAN_REMOVE_VIEWER
+endif
+
 $(eval $(python-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/python-can: add option to install the viewer tool

Quoted 14 lines · On Thu, 22 Aug 2024 11:59:53 +0200 Marcus Hoffmann via buildroot…

Enabling the option correctly select the python-curses module dependency of the viewer tool.

---
 package/python-can/Config.in     | 7 +++++++
 package/python-can/python-can.mk | 7 +++++++
 2 files changed, 14 insertions(+)
package/python-can/Config.in +0 -0
index 61955a2b00..36e25b8764 100644

package/python-can/Config.in config BR2_PACKAGE_PYTHON_CAN · line 17

Quoted 7 lines
package/python-can/Config.in +4 -0
@@ -11,3 +11,10 @@ config BR2_PACKAGE_PYTHON_CAN
 	  Python.
 
 	  https://github.com/hardbyte/python-can
+
+config BR2_PACKAGE_PYTHON_CAN_VIEWER
+	bool "python-can-viewer"
+	depends on BR2_PACKAGE_PYTHON_CAN

We normally prefer to enclose package sub-options into a if ... endif block even when there's only one option, so I adjusted this small detail and applied to next. Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Marcus Hoffmann via buildroot
Quoted 10 lines · On Thu, 22 Aug 2024 11:59:52 +0200 Marcus Hoffmann via buildroot…

The tarball name prefix changed from python-can to python_can.

Changelog:
* https://github.com/hardbyte/python-can/blob/main/CHANGELOG.md#version-442

---
 package/python-can/python-can.hash | 4 ++--
 package/python-can/python-can.mk   | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

Applied to next, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot