All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/python-can: bump to 4.4.2
@ 2024-08-22  9:59 Marcus Hoffmann via buildroot
  2024-08-22  9:59 ` [Buildroot] [PATCH 2/2] package/python-can: add option to install the viewer tool Marcus Hoffmann via buildroot
  2024-08-23 17:35 ` [Buildroot] [PATCH 1/2] package/python-can: bump to 4.4.2 Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 4+ messages in thread
From: Marcus Hoffmann via buildroot @ 2024-08-22  9:59 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Angelo Compagnucci, Asaf Kahlon

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

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

Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
---
 package/python-can/python-can.hash | 4 ++--
 package/python-can/python-can.mk   | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/package/python-can/python-can.hash b/package/python-can/python-can.hash
index 4e706519be..479935b2f0 100644
--- a/package/python-can/python-can.hash
+++ b/package/python-can/python-can.hash
@@ -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
diff --git a/package/python-can/python-can.mk b/package/python-can/python-can.mk
index c7100e3dda..b6547a4d3f 100644
--- a/package/python-can/python-can.mk
+++ b/package/python-can/python-can.mk
@@ -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
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH 2/2] package/python-can: add option to install the viewer tool
  2024-08-22  9:59 [Buildroot] [PATCH 1/2] package/python-can: bump to 4.4.2 Marcus Hoffmann via buildroot
@ 2024-08-22  9:59 ` Marcus Hoffmann via buildroot
  2024-08-23 17:36   ` Thomas Petazzoni via buildroot
  2024-08-23 17:35 ` [Buildroot] [PATCH 1/2] package/python-can: bump to 4.4.2 Thomas Petazzoni via buildroot
  1 sibling, 1 reply; 4+ messages in thread
From: Marcus Hoffmann via buildroot @ 2024-08-22  9:59 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Angelo Compagnucci, Asaf Kahlon

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

Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
---
 package/python-can/Config.in     | 7 +++++++
 package/python-can/python-can.mk | 7 +++++++
 2 files changed, 14 insertions(+)

diff --git a/package/python-can/Config.in b/package/python-can/Config.in
index 61955a2b00..36e25b8764 100644
--- a/package/python-can/Config.in
+++ b/package/python-can/Config.in
@@ -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).
diff --git a/package/python-can/python-can.mk b/package/python-can/python-can.mk
index b6547a4d3f..bc67be4f8c 100644
--- a/package/python-can/python-can.mk
+++ b/package/python-can/python-can.mk
@@ -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))
-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 1/2] package/python-can: bump to 4.4.2
  2024-08-22  9:59 [Buildroot] [PATCH 1/2] package/python-can: bump to 4.4.2 Marcus Hoffmann via buildroot
  2024-08-22  9:59 ` [Buildroot] [PATCH 2/2] package/python-can: add option to install the viewer tool Marcus Hoffmann via buildroot
@ 2024-08-23 17:35 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-23 17:35 UTC (permalink / raw)
  To: Marcus Hoffmann via buildroot
  Cc: Asaf Kahlon, James Hilliard, Marcus Hoffmann, Angelo Compagnucci

On Thu, 22 Aug 2024 11:59:52 +0200
Marcus Hoffmann via buildroot <buildroot@buildroot.org> wrote:

> The tarball name prefix changed from python-can to python_can.
> 
> Changelog:
> * https://github.com/hardbyte/python-can/blob/main/CHANGELOG.md#version-442
> 
> Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
> ---
>  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
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

* Re: [Buildroot] [PATCH 2/2] package/python-can: add option to install the viewer tool
  2024-08-22  9:59 ` [Buildroot] [PATCH 2/2] package/python-can: add option to install the viewer tool Marcus Hoffmann via buildroot
@ 2024-08-23 17:36   ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-08-23 17:36 UTC (permalink / raw)
  To: Marcus Hoffmann via buildroot
  Cc: Asaf Kahlon, James Hilliard, Marcus Hoffmann, Angelo Compagnucci

On Thu, 22 Aug 2024 11:59:53 +0200
Marcus Hoffmann via buildroot <buildroot@buildroot.org> wrote:

> Enabling the option correctly select the python-curses module dependency
> of the viewer tool.
> 
> Signed-off-by: Marcus Hoffmann <buildroot@bubu1.eu>
> ---
>  package/python-can/Config.in     | 7 +++++++
>  package/python-can/python-can.mk | 7 +++++++
>  2 files changed, 14 insertions(+)
> 
> diff --git a/package/python-can/Config.in b/package/python-can/Config.in
> index 61955a2b00..36e25b8764 100644
> --- a/package/python-can/Config.in
> +++ b/package/python-can/Config.in
> @@ -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
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

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

end of thread, other threads:[~2024-08-23 17:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-22  9:59 [Buildroot] [PATCH 1/2] package/python-can: bump to 4.4.2 Marcus Hoffmann via buildroot
2024-08-22  9:59 ` [Buildroot] [PATCH 2/2] package/python-can: add option to install the viewer tool Marcus Hoffmann via buildroot
2024-08-23 17:36   ` Thomas Petazzoni via buildroot
2024-08-23 17:35 ` [Buildroot] [PATCH 1/2] package/python-can: bump to 4.4.2 Thomas Petazzoni via buildroot

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.