From e249a4e8df949d24be4ffaf36421db5cc05abcdc Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 14 Apr 2026 18:38:34 +0800 Subject: python3-pyais: upgrade 2.20.1 -> 3.0.0 Changelog: =========== - ~35% faster compared to v2 - breaking Changes removed bitarray dependency. Replaced with a custom bit_vector renamed AISSentence.bit_array to AISSentence.bv renamed Payload.from_bitarray() to Payload.from_vector() renamed Payload.to_bitarray() to Payload.to_bytes() changed overflow encoding behavior deprecated NonPrintableCharacterException dropped support for Python 3.9 - removed bitarray as an external dependency - improved performance through a custom bit vector implementation - optimized single-fragment message assembly - NOTE: If you are not ready to migrate, v2 continues to receive bugfixes on the legacy branch Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-pyais_2.20.1.bb | 26 ---------------------- .../recipes-devtools/python/python3-pyais_3.0.0.bb | 26 ++++++++++++++++++++++ 2 files changed, 26 insertions(+), 26 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pyais_2.20.1.bb create mode 100644 meta-python/recipes-devtools/python/python3-pyais_3.0.0.bb diff --git a/meta-python/recipes-devtools/python/python3-pyais_2.20.1.bb b/meta-python/recipes-devtools/python/python3-pyais_2.20.1.bb deleted file mode 100644 index 6ee62a6a32..0000000000 --- a/meta-python/recipes-devtools/python/python3-pyais_2.20.1.bb +++ /dev/null @@ -1,26 +0,0 @@ -SUMMARY = "AIS message decoding" -HOMEPAGE = "https://github.com/M0r13n/pyais" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=79d9e278b76e3e5b3358cd70b328173c" - -SRC_URI = "git://github.com/M0r13n/pyais;protocol=https;branch=master;tag=v${PV}" - -SRCREV = "6cec67eb8e48c2254bd7bc31415f8df60ecb11ce" - -inherit python_setuptools_build_meta ptest-python-pytest - -PYPI_PACKAGE = "pyais" - -do_install_ptest:append() { - install -d ${D}${PTEST_PATH}/examples/ - install -Dm 0644 ${S}/examples/*.py ${D}${PTEST_PATH}/examples/ - install -Dm 0644 ${S}/examples/*.nmea ${D}${PTEST_PATH}/examples/ - install -Dm 0644 ${S}/examples/*.ais ${D}${PTEST_PATH}/examples/ -} - -RDEPENDS:${PN} = "python3-attrs python3-bitarray" -RDEPENDS:${PN}-ptest += "\ - python3-coverage \ - python3-mypy \ - python3-pytest-cov \ - " diff --git a/meta-python/recipes-devtools/python/python3-pyais_3.0.0.bb b/meta-python/recipes-devtools/python/python3-pyais_3.0.0.bb new file mode 100644 index 0000000000..a8b8777821 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyais_3.0.0.bb @@ -0,0 +1,26 @@ +SUMMARY = "AIS message decoding" +HOMEPAGE = "https://github.com/M0r13n/pyais" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=79d9e278b76e3e5b3358cd70b328173c" + +SRC_URI = "git://github.com/M0r13n/pyais;protocol=https;branch=main;tag=v${PV}" + +SRCREV = "a88659ae381487e547fde3c18ab45cfe572b1094" + +inherit python_setuptools_build_meta ptest-python-pytest + +PYPI_PACKAGE = "pyais" + +do_install_ptest:append() { + install -d ${D}${PTEST_PATH}/examples/ + install -Dm 0644 ${S}/examples/*.py ${D}${PTEST_PATH}/examples/ + install -Dm 0644 ${S}/examples/*.nmea ${D}${PTEST_PATH}/examples/ + install -Dm 0644 ${S}/examples/*.ais ${D}${PTEST_PATH}/examples/ +} + +RDEPENDS:${PN} = "python3-attrs python3-bitarray" +RDEPENDS:${PN}-ptest += "\ + python3-coverage \ + python3-mypy \ + python3-pytest-cov \ + " -- cgit v1.2.3-54-g00ecf