python-intelhex: Update to 2.3.0
This version includes the fix from the removed patch. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
This commit is contained in:
parent
7fb8e823b9
commit
0bcbdf129b
|
@ -5,12 +5,11 @@
|
|||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=python-intelhex
|
||||
PKG_VERSION:=2.2.1
|
||||
PKG_RELEASE:=4
|
||||
PKG_VERSION:=2.3.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PYPI_NAME:=IntelHex
|
||||
PYPI_SOURCE_NAME:=intelhex
|
||||
PKG_HASH:=009d8511e0d50639230c39af9607deee771cf026f67ef7507a8c3fd4fa927832
|
||||
PYPI_NAME:=intelhex
|
||||
PKG_HASH:=892b7361a719f4945237da8ccf754e9513db32f5628852785aea108dcd250093
|
||||
|
||||
PKG_MAINTAINER:=Karel Kočí <cynerd@email.cz>
|
||||
PKG_LICENSE:=BSD-3-Clause
|
||||
|
@ -24,8 +23,8 @@ define Package/python3-intelhex
|
|||
SECTION:=lang
|
||||
CATEGORY:=Languages
|
||||
SUBMENU:=Python
|
||||
TITLE:=python3-intelhex
|
||||
URL:=https://github.com/bialix/intelhex
|
||||
TITLE:=Intel HEX files manipulations
|
||||
URL:=https://github.com/python-intelhex/intelhex
|
||||
DEPENDS:=+python3-light
|
||||
endef
|
||||
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
From 4125dce5b174401d38cc0fcf9d2e1aad07997f5e Mon Sep 17 00:00:00 2001
|
||||
From: fernandez85 <fernandez2005@gmail.com>
|
||||
Date: Sun, 11 Oct 2020 12:39:06 +0200
|
||||
Subject: [PATCH] Fix Python 3.9 compatibility issue with 'array' module
|
||||
|
||||
---
|
||||
intelhex/compat.py | 3 ++-
|
||||
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
--- a/intelhex/compat.py
|
||||
+++ b/intelhex/compat.py
|
||||
@@ -57,7 +57,8 @@ if sys.version_info[0] >= 3:
|
||||
return s
|
||||
return s.decode('latin1')
|
||||
|
||||
- array_tobytes = getattr(array.array, "tobytes", array.array.tostring)
|
||||
+ # for python >= 3.2 use 'tobytes', otherwise 'tostring'
|
||||
+ array_tobytes = array.array.tobytes if sys.version_info[1] >= 2 else array.array.tostring
|
||||
|
||||
IntTypes = (int,)
|
||||
StrType = str
|
Loading…
Reference in New Issue