Up to [cvs.NetBSD.org] / pkgsrc / devel / py-msgpack
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Fix PLIST after py-setuptools update; bump depends and revision
py-msgpack: updated to 1.0.8 v1.0.8 exclude C/Cython files from wheel Build pure Python wheel for minor architectures. update Cython to 3.0.8 This fixes memory leak when iterating over Unpacker on Python 3.12.
py-msgpack: convert to wheel.mk Mark as not for Python 2. Bump PKGREVISION.
py-msgpack: updated to 1.0.6 1.0.6 Bug fixes
py-msgpack: update to 1.0.4.
What's Changed
Support Python 3.11 (beta)
refresh ci settings. by @methane in #492
Don't define _*ENDIAN macro on Unix. by @methane in #495
Update setuptools and black by @methane in #498
Use PyFloat_Pack8() on Python 3.11a7 by @vstinner in #499
Upgrade black to fix CI by @hauntsaninja in #505
Fix Unpacker max_buffer_length handling by @methane in #506
ci: Update action versions. by @methane in #507
Release v1.0.4 by @methane in #509
py-msgpack: updated to 1.0.0 1.0.0 Remove Python 2 support from the msgpack/_cmsgpack. msgpack/fallback still supports Python 2. Remove encoding option from the Packer and Unpacker. Unpacker: The default value of max_buffer_type is changed to 100MiB. Unpacker: strict_map_key is True by default now. Unpacker: String map keys are interned. Drop old buffer protocol support. Support Timestamp type. Support serializing and decerializing datetime object with tzinfo. Unpacker: Fix Unpacker.read_bytes() in fallback implementation. 0.6.2 Support Python 3.8. Update Cython to 0.29.13 for support Python 3.8. Some small optimizations. 0.6.1 This release is for mitigating pain caused by v0.6.0 reduced max input limits for security reason. unpackb(data) configures max_*_len options from len(data), instead of static default sizes. Unpacker(max_buffer_len=N) configures max_*_len options from N, instead of static default sizes. max_bin_len, max_str_len, and max_ext_len are deprecated. Since this is minor release, it's document only deprecation. 0.6.0 This release contains some backward incompatible changes for security reason (DoS). Important changes unpacker: Default value of input limits are smaller than before to avoid DoS attack. If you need to handle large data, you need to specify limits manually. Unpacker doesn't wrap underlaying ValueError (including UnicodeError) into UnpackValueError. If you want to catch all exception during unpack, you need to use try ... except Exception with minimum try code block. PackValueError and PackOverflowError are also removed. You need to catch normal ValueError and OverflowError. Unpacker has strict_map_key option now. When it is true, only bytes and str (unicode in Python 2) are allowed for map keys. It is recommended to avoid hashdos. Default value of this option is False for backward compatibility reason. But it will be changed True in 1.0. Other changes Extension modules are merged. There is msgpack._cmsgpack instead of msgpack._packer and msgpack._unpacker. Add Unpacker.getbuffer() method. unpacker: msgpack.StackError is raised when input data contains too nested data. unpacker: msgpack.FormatError is raised when input data is not valid msgpack format.
Update msgpack-python to 0.4.0. 0.4.0 ===== :release date: 2013-10-21 Inconpatible Changes -------------------- * Raises TypeError instead of ValueError when packer receives unsupported type. Changes ------- * Support New msgpack spec. 0.3.0 ===== Inconpatible Changes -------------------- * Default value of ``use_list`` is ``True`` for now. (It was ``False`` for 0.2.x) You should pass it explicitly for compatibility to 0.2.x. * `Unpacker.unpack()` and some unpack methods now raise `OutOfData` instead of `StopIteration`. `StopIteration` is used for iterator protocol only. Changes ------- * Pure Python fallback module is added. (thanks to bwesterb) * Add ``.skip()`` method to ``Unpacker`` (thanks to jnothman) * Add capturing feature. You can pass the writable object to ``Unpacker.unpack()`` as a second parameter. * Add ``Packer.pack_array_header`` and ``Packer.pack_map_header``. These methods only pack header of each type. * Add ``autoreset`` option to ``Packer`` (default: True). Packer doesn't return packed bytes and clear internal buffer. * Add ``Packer.pack_map_pairs``. It packs sequence of pair to map type. 0.2.4 ======= :release date: 2012-12-22 Bugs fixed ---------- * Fix SEGV when object_hook or object_pairs_hook raise Exception. (#39) 0.2.3 ======= :release date: 2012-12-11 Changes ------- * Warn when use_list is not specified. It's default value will be changed in 0.3. Bugs fixed ----------- * Can't pack subclass of dict. 0.2.2 ======= :release date: 2012-09-21 Changes ------- * Add ``use_single_float`` option to ``Packer``. When it is true, packs float object in single precision format. Bugs fixed ----------- * ``unpack()`` didn't restores gc state when it called with gc disabled. ``unpack()`` doesn't control gc now instead of restoring gc state collectly. User can control gc state when gc cause performance issue. * ``Unpacker``'s ``read_size`` option didn't used. 0.2.1 ======= :release date: 2012-08-20 Changes ------- * Add ``max_buffer_size`` parameter to Unpacker. It limits internal buffer size and allows unpack data from untrusted source safely. * Unpacker's buffer reallocation algorithm is less greedy now. It cause perforamce derease in rare case but memory efficient and don't allocate than ``max_buffer_size``. Bugs fixed ---------- * Fix msgpack didn't work on SPARC Solaris. It was because choosing wrong byteorder on compilation time. Use ``sys.byteorder`` to get correct byte order. Very thanks to Chris Casey for giving test environment to me. 0.2.0 ======= :release date: 2012-06-27 Changes ------- * Drop supporting Python 2.5 and unify tests for Py2 and Py3. * Use new version of msgpack-c. It packs correctly on big endian platforms. * Remove deprecated packs and unpacks API. Bugs fixed ---------- * #8 Packing subclass of dict raises TypeError. (Thanks to Steeve Morin.)
All supported python versions in pkgsrc support eggs, so remove
${PLIST.eggfile} from PLISTs and support code from lang/python.
Import py-msgpack-0.1.9 as devel/py-msgpack. MessagePack (de)serializer for Python. MessagePack is a binary-based efficient data interchange format that is focused on high performance. It is like JSON, but very fast and small.
Initial revision