diff options
| author | Leon Anavi <leon.anavi@konsulko.com> | 2026-06-02 09:40:55 +0300 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-06-07 18:21:35 -0700 |
| commit | 0d541bae0998b39ae0362eb8b2cd6a7639bc3977 (patch) | |
| tree | be11b8a1a4cdf084499bfa6d812dbe7e4f0e9bea /meta-python/recipes-devtools/python/python3-cbor2_6.1.1.bb | |
| parent | 541a0b2340fcdea05c1e67c21fd7dac81dc6584f (diff) | |
| download | meta-openembedded-0d541bae0998b39ae0362eb8b2cd6a7639bc3977.tar.gz | |
python3-cbor2: Upgrade 5.9.0 -> 6.1.1
Upgrade to release 6.1.1:
- Fixed cbor2.load() returning corrupted data for payloads exceeding
4096 bytes
From 6.1.0:
- Added the allow_duplicate_keys parameter to CBORDecoder, load and
loads (default: True). When set to False, a CBORDecodeError is raised
upon encountering a duplicate key within the same map.
- Added support for decoding from any object supporting the buffer API
(e.g. memoryview or bytearray) in addition to bytes
- Fixed compatibility issues with 32-bit systems
From 6.0.1:
- Fixed an error in the mutability logic during decoding, leading to
values being decoded as immutable in unexpected places
From 6.0.0:
- MAJOR REWRITE: The Python and C implementations of the encoder and
decoder were replaced with a single, Rust-based implementation in the
interest of maintainability.
- BACKWARD INCOMPATIBLE Changed the signature of the tag_hook decoder
callables to accept (CBORTag, immutable as arguments instead of
CBORDecoder, CBORTag)
- BACKWARD INCOMPATIBLE Changed the signature of the object_hook decoder
callables to accept (Mapping[Any, Any], bool) instead of (CBORDecoder,
dict[Any, Any])
- BACKWARD INCOMPATIBLE Removed the break_marker singleton as no longer
necessary
- BACKWARD INCOMPATIBLE Removed the CBORDecodeValueError exception,
instead chaining ValueError or TypeError to a CBORDecodeError
- BACKWARD INCOMPATIBLE Changed the decoding of semantic tag 261 to
yield an IPv4Interface or IPv6Interface if the address contains host
bits
- BACKWARD INCOMPATIBLE Removed the individual decoding functions from
the API as they were mistakenly called directly by users. Please open
an issue if you need them back.
- BACKWARD INCOMPATIBLE Changed the encoding of IP addresses to use the
semantic tags 52 and 54 instead of the deprecated 260 and 261
- BACKWARD INCOMPATIBLE Dropped the deprecated cbor2.decoder and
cbor2.encoder modules - everything in the API is now importable
directly from cbor2
- BACKWARD INCOMPATIBLE The cbor2.FrozenDict class has now been renamed
frozendict and is not available on Python 3.15 where the built-in
frozendict class must be used instead
- Added the semantic_decoders decoder option to add or override decoders
for specific semantic tags
- Added the immutable decoder flag to always use immutable containers
where possible when decoding a CBOR stream
- Added the allow_indefinite decoder option to optionally disallow
indefinite-length strings and containers
- Dropped support for Python 3.9
- Fixed the decoder not rejecting invalid two-byte simple value
sequences (0xF800 - 0xF81F)
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-cbor2_6.1.1.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-cbor2_6.1.1.bb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-cbor2_6.1.1.bb b/meta-python/recipes-devtools/python/python3-cbor2_6.1.1.bb new file mode 100644 index 0000000000..4b4406ffbf --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-cbor2_6.1.1.bb | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | DESCRIPTION = "An implementation of RFC 7049 - Concise Binary Object Representation (CBOR)." | ||
| 2 | LICENSE = "MIT" | ||
| 3 | LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=a79e64179819c7ce293372c059f1dbd8" | ||
| 4 | DEPENDS += "python3-setuptools-scm-native" | ||
| 5 | |||
| 6 | SRC_URI[sha256sum] = "6f0644869e0fdcd6f3874330b8f1cebd009f33191de43acf609dc2409cd362c4" | ||
| 7 | |||
| 8 | inherit pypi python_setuptools3_rust cargo-update-recipe-crates ptest-python-pytest | ||
| 9 | |||
| 10 | CARGO_SRC_DIR = "rust" | ||
| 11 | |||
| 12 | require ${BPN}-crates.inc | ||
| 13 | |||
| 14 | RDEPENDS:${PN}-ptest += " \ | ||
| 15 | python3-hypothesis \ | ||
| 16 | python3-unixadmin \ | ||
| 17 | " | ||
| 18 | RDEPENDS:${PN} += " \ | ||
| 19 | python3-datetime \ | ||
| 20 | " | ||
| 21 | |||
| 22 | CVE_PRODUCT = "cbor2" | ||
| 23 | |||
| 24 | BBCLASSEXTEND = "native nativesdk" | ||
