From 13893dfb6dcb595f375831c1a51e050f61214e52 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 7 Jul 2025 17:06:48 +0800 Subject: python3-pyais: upgrade 2.9.4 -> 2.11.1 Changelog: =========== * apply fix from https://gitlab.com/holado_framework/python * pyais now handles type 16 messages shorter than 96 bit correctly * breaking: added two classes for type 16 - 'isinstance(msg, MessageType16)' checks will need updating * apply fixes from https://gitlab.com/holado_framework/python * closes: https://github.com/M0r13n/pyais/issues/183 * renamed custom 'JSONEncoder' to 'AISJSONEncoder' to avoid confusion with 'json.JSONEncoder' * refactored main.py ('ais-decode') for better error handling * added examples/ais-encode Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- .../python/python3-pyais_2.11.1.bb | 28 ++++++++++++++++++++++ .../recipes-devtools/python/python3-pyais_2.9.4.bb | 28 ---------------------- 2 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 meta-python/recipes-devtools/python/python3-pyais_2.11.1.bb delete mode 100644 meta-python/recipes-devtools/python/python3-pyais_2.9.4.bb (limited to 'meta-python/recipes-devtools') diff --git a/meta-python/recipes-devtools/python/python3-pyais_2.11.1.bb b/meta-python/recipes-devtools/python/python3-pyais_2.11.1.bb new file mode 100644 index 0000000000..5cafa44efb --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pyais_2.11.1.bb @@ -0,0 +1,28 @@ +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" + +PV .= "+git" +SRCREV = "b86b35e29b1f442d9bd20ce5ece4f4db8fb3dab5" + + +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_2.9.4.bb b/meta-python/recipes-devtools/python/python3-pyais_2.9.4.bb deleted file mode 100644 index 53996cc231..0000000000 --- a/meta-python/recipes-devtools/python/python3-pyais_2.9.4.bb +++ /dev/null @@ -1,28 +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" - -PV .= "+git" -SRCREV = "e7780f743b03c5e6ecc651fdeb209fa94e0e0250" - - -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