Up to [cvs.NetBSD.org] / pkgsrc / databases / py-lmdb
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
py-lmdb: updated to 2.2.1
2.2.1
Improvements
- ``lmdb.aio`` async wrapper methods (on ``AsyncEnvironment``,
``AsyncTransaction``, and ``AsyncCursor``) are now real class
attributes rather than synthesized by ``__getattr__``, making them
visible to ``dir()``, ``inspect.signature()``, ``help()``, IPython,
and stubtest. Non-callable attributes still proxy through.
- Added type stubs for the ``lmdb.aio`` module.
Fixes
- Fix a segmentation fault on Linux/aarch64 when an ``Environment`` is
closed from a different thread than the one holding an active write
transaction. ``Environment.close()`` now waits for the owning thread
to release the write transaction before unmapping the lock file.
- Reject adversarial on-disk values that could overflow size arithmetic
or cause implementation-defined narrowing of ``mv_size`` when reading
crafted databases.
- Fix crashes on out-of-memory conditions in the CPython extension's
error paths.
- Fix and modernize the type stubs, including ``__all__`` exports and the
``Cursor.iter*`` parameter defaults in ``__init__.pyi``.
Other
- Remove remaining Python 2 compatibility code.
- Run the test suite natively on Linux/aarch64 in CI; previously aarch64
wheels were built but never tested.
py-lmdb: updated to 2.2.0
2.2.0
New features
- New ``lmdb.aio`` module providing asyncio support with
``AsyncEnvironment`` and ``AsyncTransaction``.
- ``Environment.dbs()`` lists all named databases in an environment.
- ``Cursor.getmulti()`` accepts ``values=False`` for batch key-existence
checks without fetching values.
- ``Transaction.stat()`` now defaults to the main database when no ``db``
argument is given.
- ``Environment.set_mapsize()`` now safely invalidates open transactions
and cursors before remapping, preventing use-after-free crashes.
- Enable sparse files on Windows so NTFS does not preallocate the full
``map_size`` on disk.
Bug fixes
- Fix type stubs: return types now use ``Union[bytes, memoryview]`` to
reflect the ``buffers=`` parameter, and ``dbs()`` is included.
- Declare ``python_requires='>=3.9'`` so pip skips this package on
Python 2.
Documentation
- Modernize documentation for Python 3 and current project state.
- Add API reference for ``lmdb.aio`` module.
- Document fork safety and multiprocessing guidance.
- Document duplicate-sort (dupsort) databases.
- Document cursor iteration and navigation patterns.
- Add "When to use py-lmdb" comparison section.
- Render ChangeLog as native HTML instead of a code block.
Other
- Add LMDB data layout validation tests and patched/pure equivalence
checks.
Fix PLIST after py-setuptools update; bump depends and revision
py-lmdb: updated to 1.5.1 1.5.1 * CI-only fix. 1.5.0 * Add Python 3.12 binaries. * Update bundled LMDB to 0.9.31. * Remove Python 2.7 support.
py-lmdb: updated to 1.2.1 2021-04-19 v1.2.1 * Resolve CI bug where non-Linux wheels were not being published to PyPI. 2021-04-15 v1.2.0 * Update bundled LMDB to 0.9.29. * Add non-bundled testing to CI. * Remove wheel generation for 2.7 because the manylinux images no longer support it. * Allow passing None as a value to transaction.del in CFFI implementation for parity with cpython implementation. * Fix Cursor.put behavior on a dupsort DB with append=True. * Add warning to docs about use of Environment.set_mapsize. This is currently an unresolved issue with upstream LMDB. * CFFI implementation: fix a seg fault when open_db returns map full. * CFFI implementation: fix a bug in open_db in a read-only environment. 2021-02-05 v1.1.1 * Dowgrade underlying LMDB to 0.9.26. 0.9.27 has a minor defect that will need to get resolved. 2021-02-04 v1.1.0 * Migrate CI pipeline from Travis and AppVeyor to Github Actions. Now includes comprehensive testing across 4 dimensions (OS, Python version, cpython/CFFI, pure/with mods). Also includes publishing to PyPI. * Prevent invalid flag combinations when creating a database. * Add a Cursor.getmulti method with optional buffer support. Contributed by Will Thompson <willsthompson@gmail.com>. * Upgrade underlying LMDB to 0.9.27. 2020-08-28 v1.0.0 * Start of new semantic versioning scheme. This would be a minor version bump from the 0.99 release if it were semantically versioned. * Allow environment copy to take a passed-in transaction. This is the first released feature that requires a (very small) patch to the underlying C library. By default, the patch will be applied unless this module is built with LMDB_PURE environment variable set. 2020-08-13 v0.99 * Fix lmdb.tool encoding issues. * Fix -l lmdb invocation issue. * Minor documentation improvements. * Update LMDB to version 0.9.24. * Update for Python 3.9 (current release candidate) support. * Resolve a bug when using cursor.putmulti and append=True on dupsort DBs. * Allow _Database.flags method to take no arguments since the one argument wasn't being used. 2019-11-06 v0.98 * Fix that a duplicate argument to a lmdb method would cause an assert. * Solaris needs ```#include "python.h"``` as soon as possible. Fix contributed by Jesús Cea. * Fix crash under debug cpython when mdb_cursor_open failed 2019-08-11 v0.97 * Fix a missed GIL unlock sequence. Reported by ajschorr. * Fix argv check in JEP (cpython under Java) environment. Contributed by de-code. 2019-07-14 v0.96 * First release under new maintainer, Nic Watson. * Doc updates. * More removal of code for now-unsupported Python versions. * Only preload the value with the GIL unlocked when the value is actually requested. This significantly improves read performance to retrieve keys with large values when the value isn't retrieved. Reported by Dan Patton. 2019-06-08 v0.95 * The minimum supported version of Python is now 2.7. * The library is no longer tested on Python 3.2. * The address-book.py example was updated for Python 3. Contributed by Jamie Bliss. * Development-related files were removed from the distribution tarball. * Handling of the Environment(create=True) flag was improved. Fix contributed by Nir Soffer. * Database names may be reused after they are dropped on CFFI, without reopening the environment. Fix contributed by Gareth Bult. 2018-04-09 v0.94 * CPython argument parsing now matches the behaviour of CFFI, and most sane Python APIs: a bool parameter is considered to be true if it is any truthy value, not just if it is exactly True. Reported by Nic Watson. * Removed Python 2.6 support due to urllib3 warnings and pytest dropping it. * Updared LMDB to version 0.9.22. * Fixed several 2.7/3 bugs in command line tool.
databases/py-lmdb: Import version 0.94 Provides Python binding for the LMDB "Lightning" Database.