orjson has no runtime dependencies (its PyPI metadata lists none).
maturin is the build backend and is already in DEPENDS as
python3-maturin-native; mypy is only used by the upstream type checks.
As runtime dependencies they pull rust, cargo, gcc, g++ and binutils
into every image that has orjson: about 630 MB on a Home Assistant
image for raspberrypi-armv8, most of a 4 GB rootfs slot.
AI-Generated: Claude Code, Claude Opus 5.5
Signed-off-by: Thomas Roos <thomas@roosesweb.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
dateutil 4.0.0 imports zoneinfo in dateutil/tz/_tzpath.py, which
dateutil/tz/__init__.py imports. Without python3-zoneinfo in the image,
"import dateutil.tz" fails with "No module named 'zoneinfo'"; seen in
the ptests of python3-blinkpy (meta-homeassistant), which imports it.
AI-Generated: Claude Code, Claude Opus 5.5
Signed-off-by: Thomas Roos <thomas@roosesweb.de>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 3.3.4:
- Added support for custom ribbon UI XML files via the
:func:`add_custom_ui` method.
- Fixed issue where datetimes on 1900-02-28 with a time after
midnight were written as 1900-02-29.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 3.0.0:
This release brings:
- Span streaming by default with streamlined API.
- Fine-grained data collection controls replace the single
send_default_pii option.
- Many improvements to our AWS Lambda instrumentation.
- And more!
Breaking changes:
- Check out our migration guide for the most common migration
patterns.
- Check out the full list of changes.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 8.2.0:
Client-side caching: tracking modes and metadata-driven eligibility:
CacheConfig takes a new tracking_mode option: TrackingMode.PLAIN, OPTIN
or OPTOUT. With OPTIN or OPTOUT, the server tracks only the keys that
the client caches. PLAIN is the default and keeps the current behavior.
An optional cache_predicate(command, keys) decides which eligible
replies are stored.
Cache eligibility and cluster replica routing now come from one source:
the command metadata in redis.commands.metadata. You can pass a
MetadataResolver with metadata_resolver= to Redis, ConnectionPool,
RedisCluster and redis.asyncio.RedisCluster. This lets module commands,
for example from FalkorDB, use replica reads through custom metadata.
CacheConfig.DEFAULT_ALLOW_LIST and READ_COMMANDS are deprecated and are
no longer read.
Cluster routing and topology refresh:
The cluster clients now route MULTI_SHARD and ALL_SHARDS commands, and
commands with movable keys, by the request and response tips that the
server publishes. A multi-shard command is split per slot and sent in
one pipeline per node, and a retry resends only the parts that got no
reply.
Topology refreshes are paced. Error paths only request a refresh, the
requests are merged, and the refresh runs once when it is due. A refresh
keeps the connections of the nodes that stay in the cluster. The new
topology_refresh_min_interval argument sets the minimum time between
error-triggered refreshes. The default is 1 second.
New commands:
- Set member expiration: sexpire, spexpire, sexpireat, spexpireat,
sttl, spttl, sexpiretime, spexpiretime, spersist and saddex.
- Sorted sets: zmove, bzmove and zmovemember.
- BACKUP (Redis 8.10): backup_start, backup_status, backup_list,
backup_seal, backup_abort and backup_cleanup.
- bitrangeintarray, the BLESS family (bless_get, bless_set,
bless_clear, bless_scan) and a CLIENT LIST iterator.
- hybrid_search(explain_score=True) for FT.HYBRID, and CELL_SIZE
for CMS.INITBYDIM and CMS.INITBYPROB.
Connection resilience:
When the protocol is not set explicitly and a server or proxy rejects
HELLO, the client now falls back to RESP2 instead of raising.
Retry takes a new optional is_retryable checker. Pass
redis.retry.is_retryable_connect_error to fail fast when a Unix socket
path does not exist, instead of retrying with backoff.
Security hardening:
OCSP validation is stricter. The response must be bound to the
certificate being validated and signed by a signer that chains to the
issuer. A delegated responder must not be expired, validity times are
compared in UTC, and an unauthorized response fails closed. Credentials
are redacted from pipeline and cluster routing error messages, and lock
tokens use uuid4.
Python support:
This release drops Python 3.10, which has reached end of life, and adds
Python 3.15.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 4.3.0:
Features:
- On Windows, release_with_timeout limits the caller's wait for
release. If it raises ReleasePendingError, call wait on the
exception from any thread for the result. On POSIX, release is
synchronous.
Bug fixes:
- lock_descriptor raises TypeError unless blocking is a bool.
- On POSIX filesystems with atomic exchange, SoftFileLock restores
a live marker after an interrupted exchange and removes its own
unfinished marker during cleanup.
- Unix soft fallback markers exclude group and other writes even on
filesystems without atomic exchange.
- SoftFileLock, MarkerSoftFileLock and SoftFileLease remove empty
markers after a signal interrupts marker creation or stale-marker
replacement.
- Unix locks select the soft fallback per resolved path, including
after a directory change. The lock keeps its Unix type and
supports pid, is_lock_held_by_us, break_lock() and lifetime
during fallback.
- On POSIX, ReadWriteLock and AsyncReadWriteLock raise RuntimeError
in detected subinterpreters, including InterpreterPoolExecutor
workers and mod_wsgi or uWSGI subinterpreters. Use the main
interpreter or a separate process. Detection on embedded CPython
3.11 requires _xxsubinterpreters or ctypes access to the
interpreter C API.
- On Windows, SoftFileLock treats a symlink as an occupied marker
and leaves its target untouched.
- SoftFileLock and SoftFileLease clean up markers and descriptors
across interrupted acquires and releases. POSIX unlink errors
propagate, with a retry after close on filesystems that require
it. Retry release if a timeout interrupts restoration of a
displaced marker.
- A singleton shared by relative and absolute paths refuses
acquisition if a directory change redirects its stored lock path.
- ReadWriteLock raises RuntimeError if a directory change redirects
a singleton's cached database path.
- SoftFileLock, MarkerSoftFileLock and SoftFileLease remove their
pending recovery marker even if another process replaces the
break name during rollback.
- Single-threaded SQLite read and write lock waits allow Python
signal handlers to run. Waiting writers keep their place ahead of
new readers.
- On POSIX, SoftFileLock tries to leave a one-byte recovery record
if a full filesystem prevents marker cleanup. With atomic
exchange, a later caller can reclaim it when space is available.
- Windows soft-lock recovery no longer reads proc/self/ns/pid from
the drive root when identifying a marker's host.
- On Unix filesystems without flock, waiters can reclaim an
interrupted acquire's recovery marker after two seconds if atomic
exchange and space for the marker are available.
- SoftReadWriteLock recreates a missing generation directory during
read or write acquisition, even if a holder record survives.
- On POSIX, soft locks close the inspection descriptor if opening
an existing marker is interrupted.
- Unix locks can use the soft fallback when the directory denies
the temporary probe and atomic exchange is unavailable. If native
locking works there, new lock files exclude group and other
writes by default. Set mode=0o660 for group sharing. The probe
removes its temporary name before testing and closes its
descriptor on interruption.
- ReadWriteLock prevents database redirection in shared, non-sticky
directories by placing its hard link in a fresh private
directory. Cleanup recognizes older link layouts.
- AsyncFileLock, AsyncReadWriteLock and AsyncSoftReadWriteLock
discard executor calls whose submission failed. A queued release
can no longer drop a later task's lock.
- SoftReadWriteLock scans up to 256 orphan holder records and 256
temporary files per sweep, resuming where it stopped. Each
listing removes up to 256 obsolete generations. The lock raises a
protocol error above 65,536 generation entries.
- SoftReadWriteLock uses fixed-size fingerprints to bound memory
use per holder record during cleanup.
- StrictSoftFileLock backs off above 1,024 public claims and raises
SoftFileLockProtocolError above 16,380 directory entries before
publication. Sentinel cleanup counts only the lock's own records.
- StrictSoftFileLock creates sentinels and claims without group or
other write permissions. Run chmod go-w on older writable
sentinels. On Linux, a contender waits if fs.protected_hardlinks
prevents it from probing another account's claim.
- Timeout and lock_path_occupant now escape control characters and
other bytes outside printable non-space ASCII in recorded
hostnames and @gaborbernat.
- A SoftReadWriteLock heartbeat checks the holder token before
writing. If another file replaces the record and reuses its
inode, the lock reports a lost hold.
- A SoftReadWriteLock waiter paused past stale_threshold gets a
fresh token so cleanup of its old record cannot remove the new
hold.
- A failed acquire rolls back its own nesting level. Releasing that
level from a hook or signal handler raises RuntimeError. Balanced
nested holds still work. Retrying an interrupted release on a
shared instance affects only the original hold. An indefinite
acquire raises RuntimeError if a signal handler returns holding
the same path through another instance.
- A forked child with its parent's numeric PID in another Linux PID
namespace preserves the parent's locks and private SQLite
database link.
- After an ambiguous Unix unlock error, FileLock rejects reentrant
acquires until an explicit release() retry resolves the hold.
- Async reader/writer wrappers sharing a lock serve waiting writers
in arrival order, ahead of new readers. Returning writers rejoin
at the back.
- At interpreter exit, SoftReadWriteLock keeps holds owned by live
daemon threads. AsyncSoftReadWriteLock keeps holds whose event
loops are still running.
- Canceling an AsyncFileLock release still decrements the lock
counter after the active transition finishes.
- Closing an async reader/writer wrapper stops its contended
acquires on the next poll, even if another singleton wrapper is
waiting.
- Closing an async reader/writer wrapper wakes tasks waiting on
that wrapper even if another singleton wrapper holds the lock.
- During shutdown, another thread's release(force=True) preserves
the main thread's thread-local hold, including during atexit
callbacks.
- If an async reader/writer acquire succeeds during close, it waits
for close to finish. A successful close releases the hold and the
acquire raises the closed error. If close fails while the lock is
held, the task receives the hold.
- In a sticky Unix directory such as /tmp, ReadWriteLock raises
PermissionError unless the caller or directory owner owns the
database and @gaborbernat.
- In sticky directories, locks reject files and protocol
directories whose ownership is ambiguous because Linux reports
the overflow UID.
- Linux accounts without CAP_FOWNER can use their own native,
strict soft and soft reader/writer locks in sticky directories
even with an overflow UID or unreadable procfs. This includes
OverlayFS containers. Use a private directory if ownership cannot
be verified.
- Linux soft locks ignore a mounted-over boot ID and compare
process start times, preserving live markers across mounts.
- On Linux, ReadWriteLock and AsyncReadWriteLock honor the acquire
timeout without busy-waiting on a leased database. Nonblocking
acquires return promptly.
- On Linux, SoftFileLock, MarkerSoftFileLock and SoftFileLease use
only the PID to check liveness when the holder or contender sees
another PID namespace's /proc. This preserves live markers.
- On Linux, a soft lock held by a worker thread no longer admits
another holder when the main thread exits inside a time namespace.
- On POSIX and Windows, ReadWriteLock opens its database through a
private hard link if a -journal, -wal or -shm file already
exists, preventing replay of a leftover journal.
- On POSIX systems with atomic name exchange, SoftFileLock
preserves the live holder's marker when recovery encounters
another account's record in a sticky directory.
- On POSIX systems with atomic name exchange, SoftFileLock waits
for a live stale-lock breaker before recovering its marker.
- On POSIX, StrictSoftFileLock rejects another account's
compatibility sentinel in a sticky directory, preserving
exclusion with SoftFileLock.
- On POSIX, ReadWriteLock and AsyncReadWriteLock preserve mutual
exclusion if their private link disappears before SQLite opens
it. Linux cleanup preserves peer links when procfs cannot
identify their PID namespace.
- On POSIX, ReadWriteLock and AsyncReadWriteLock remove dead
holders' empty link directories after verifying the link belongs
to the current database.
- On POSIX, SoftFileLease now reports a missing marker when another
hard link keeps its old inode alive.
- On POSIX, SoftFileLease records claim loss detected during
release in compromise. Only the heartbeat thread calls
on_compromise.
- On Windows, ReadWriteLock rejects junctions in its private
database alias path and prevents directory renames until SQLite
opens the database.
- On Windows, SoftFileLock rechecks its acquire deadline after each
half-second attempt to rename a stale marker held by a reader's
oplock.
- On Windows, StrictSoftFileLock honors its acquire timeout when an
oplock blocks the sentinel. On Linux, a sentinel lease counts as
contention after a short grace period, including for
blocking=False.
- On Windows, StrictSoftFileLock honors the acquire timeout while
pinning directories, publishing claims or withdrawing after a
lost race. A worker finishes delayed withdrawal. Interrupted
publication can leave private records requiring manual removal.
Release waits for Windows to close both public claims.
- On macOS and systems with CLOCK_BOOTTIME, SoftReadWriteLock
includes system sleep when checking waiter leases and renews
expired tokens before entry.
- Outside Windows, StrictSoftFileLock rejects a directory with
unrelated entries at a protocol path and preserves its
permissions and contents.
- Under a sticky parent, SoftReadWriteLock rejects a <path>.rw
tree, gen or holders writable by other accounts and rechecks
subdirectory ownership on open. Remove unsafe trees so the lock
can recreate them privately.
- AsyncReadWriteLock can close after the default executor shuts
down. Closing either async reader/writer lock again after a
canceled close waits for its worker to exit.
- AsyncSoftReadWriteLock uses a private worker by default, so a
blocked acquire cannot delay unrelated releases. Awaiting close()
joins the worker.
- ReadWriteLock and AsyncReadWriteLock reject an acquire if SQLite
switches to WAL mode after the header check.
- ReadWriteLock and AsyncReadWriteLock reject unsupported SQLite
file-format versions that could undermine write locking.
- ReadWriteLock and AsyncReadWriteLock reject write locks on
read-only SQLite connections.
- SoftFileLease and AsyncSoftFileLease reject reentrant acquisition
after the heartbeat detects a lost claim. Release the lost hold
before acquiring again.
- SoftReadWriteLock and AsyncSoftReadWriteLock limit generation
scans during acquire. Release raises a protocol error if it
cannot withdraw the holder before its stale threshold.
- SoftReadWriteLock and AsyncSoftReadWriteLock preserve active
readers when a delayed writer tries to reuse the first
generation. Acquires retry if the log resets before publication.
Documentation:
- A forked child closes the inherited FileLock descriptor. Daemons
must create and acquire a new lock after forking.
- Explain how to reacquire a Windows SoftFileLock when marker
deletion is still pending after release.
- Document how to recover a soft lock when a process reuses the PID
of a dead breaker.
- The API reference now documents lock policy types, acquisition
proxies, reader/writer settings and asyncio lock contexts.
Security:
- ReadWriteLock and AsyncReadWriteLock limit SQLite schema loading.
Acquiring a database with a large schema can raise ValueError.
- ReadWriteLock and AsyncReadWriteLock limit the directory entries
scanned for dead holders when opening a connection.
- A failed AsyncReadWriteLock construction no longer prevents a
forked child from resetting other locks.
- Canceling an AsyncReadWriteLock acquire on Windows now ends its
wait for a database oplock.
- On Unix, acquiring a lock with an on_acquired callback raises
PermissionError when the lock file has another hard link and
another account can write its directory. Without a callback, or
in a directory only the caller can write, hard-linked lock names
still share the same native lock and @gaborbernat.
- On Windows, StrictSoftFileLock skips abandoned private records to
avoid waiting on reader oplocks. For manual cleanup, see
how-to:Use fail-closed soft locks.
- On Windows, FileLock treats a pending oplock break as contention
until the acquire deadline. acquire(blocking=False) raises
Timeout immediately.
- Strict locks publish hard links without following symlinks even
when the filesystem capability probe cannot run.
Performance:
- SoftReadWriteLock reuses the generation directory handle to
reduce ownership checks during write acquisition and release.
- Reduce the cost of reentrant acquire and release.
- Speed up stale lock recovery for SoftFileLock in directories with
many unrelated files.
- SoftReadWriteLock backs off for up to 10 ms when a peer publishes
first during withdrawal, reducing filesystem traffic.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
The license has been EPL-2.0 or EDL-1.0 since 2.0 (LICENSE.txt and
epl-v20); the recipe still said EPL-1.0.
AI-Generated: Claude Opus 5.5 (Claude Code)
License-Update: EPL-1.0 corrected to EPL-2.0, as shipped since 2.0
Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Port to pybind11 3.1, install a pkg-config file, allow newer CMake
versions (fixes use with CMake that dropped < 3.5 support) and add
gtest as a test dependency.
Drop the pkg-config patch; it is merged in 0.3.0.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
- Add worksheet pivot tables via add_pivot_table() (3.3.3)
- Fix set_properties() date handling and convert timezone-aware
datetimes to UTC
- Fix a spurious OverlappingRange after a rejected add_table(),
merge_range() or autofilter()
- Faster write_formula(); fix names wrongly treated as future
functions
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
- inotify: deliver events read before a queue overflow and report lost
events via EventsLostEvent and the new on_events_lost() handler
(also on Windows on buffer overflow)
- inotify: allocate instances lazily on first schedule(); raise
OSError again when a recursive watch hits ENOSPC/EMFILE
- Fix a race between Observer.start() and schedule(), and stop holding
the observer lock during event dispatch
- Patterns are matched relative to the watched root (e.g. *.json)
- dirsnapshot: fix false moves/replacements on inode reuse
- kqueue fixes for duplicate and lost events
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Typeshed stub update: tzoffset.tzname and tzfile.tzname are annotated
as possibly returning None.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Bug fix release: ReadOnly (PEP 705) qualifiers on TypedDict items are
now unwrapped, so their value types are type checked again; also fixes
documentation builds.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Bug fix release: fixes quadratic time and memory in filter() and in
of-type selectors (:first-of-type, :nth-of-type() etc.) on documents
with many siblings, and :lang() now stops at the first matching value.
Documents that max_selectors does not limit selector string length.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
- Bump jiter to 0.19.0, fixing memory issues from the previous release
- Subclasses of @deprecated classes are no longer marked deprecated in
JSON Schema
- Fix InitVar fields in the serialization JSON schema and validation
constraints leaking into the Decimal JSON schema
- Fix more GC tracking issues in pydantic-core
- Fix model signature when a field alias is the extra kwargs name,
strict=True for complex, and type alias parameter defaults
- Performance: cache the UTC TzInfo, skip needless schema dedup
2.14.4 pins pydantic-core 2.50.5, which pydantic-core was upgraded to;
with 2.14.3 the pin check fails in recipes that build against
pydantic, e.g. python3-lief.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Released together with pydantic 2.14.4:
- Bump jiter to 0.19.0, fixing memory issues from the previous release
- Fix more garbage collector tracking issues
- Cache the UTC TzInfo instance
- Respect validation-time strict=True for complex
Regenerate python3-pydantic-core-crates.inc with bitbake -c
update_crates.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Bug fix release: fixes a deadlock that could freeze the whole Python
process when closing a synchronous channel while gRPC background
threads were running Python callbacks such as call credentials
plugins. 1.85.2 carried unspecified refinements and bug fixes.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
- Add es_AR (DNI, CUIL, CUIT) and es_VE (cedula, RIF) SSN providers
- Use the seeded generator in passport and several es_ES, es_MX,
sv_SE, el_GR, th_TH and uk_UA providers
- Fix unique random_elements on OrderedDict with zero weights
- Reject nonpositive max_value for positive pyfloat
- Update zh_CN mobile prefixes and IANA timezone names
- Faster random_elements; binary() uses randbytes when seeded
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
- Add official support for Python 3.15
- Preserve each __wrapped__ layer when stacking decorators
- FunctionMaker preserves positional-only parameters and, on Python
3.14+, copies deferred annotations without evaluating them
- getfullargspec is reimplemented on inspect.signature and no longer
follows __wrapped__
- Fix FunctionMaker.create with return annotations, generator caller
return values, and several dispatch_on StopIteration/TypeError bugs
- Decorating a functools.partial no longer alters the original
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Bug fix release:
- Fix parallel data files named with the hash of different data,
which could make combine skip them as duplicates and lose data
- Fix lines/arcs from other threads lost while data was flushed
- Fix a TypeError on Python 3.14 with pytrace after except* handlers
- JSON report show_contexts now limits contexts to each function's
and class's own lines
- Wildcards in the first [paths] entry are a configuration error
- Config files with a UTF-8 BOM can be read
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 1.48:
- test: compare Unicode string values exactly
- Serialize and compare patches whose paths are pointer objects
- Report errors of jsondiff and jsonpatch in one line
- Let jsonpatch --backup replace an existing backup
- Reject diffs that change a member whose name is not a string
- from_diff: avoid the generic deepcopy and the sorted copy for
move keys
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 10.2.0:
Features:
- Restored csv, inspect, json, zipfile, _adapters, and
importlib.metadata to module scope, where a reader can see what
the module depends on, instead of hiding them in the functions
that use them for performance. They are declared in
__lazy_modules__ and so stay deferred, and deferred alike on
every supported Python: 3.15 honors the declaration natively
(PEP 810) and earlier Pythons reach the same behavior through
the lazy-importer backport, which is now a dependency there.
Bugfixes:
- MetadataPathFinder is now installed on sys.meta_path only after
the module is fully initialized. Previously it was installed
partway through, so anything walking sys.meta_path during that
window, such as another thread calling entry_points(), would raise
NameError: name 'PathDistribution'
- is not defined. An import interrupted in that window left the
half-built finder installed for the life of the process, failing
every subsequent lookup.
- Return License-File, Import-Name, and Import-Namespace as lists
in JSON-compatible metadata, including when only one value is
present, and retain all repeated values as required by PEP 566.
Improved Documentation:
- Added a caveats page describing how this package and
importlib.metadata interoperate: the two class hierarchies, the
protocols both satisfy, and what that asks of consumers and of
custom providers.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 1.10.2:
Fixes a regression in 1.10.0 and 1.10.1, and a bug in how
TomlConfigParser reads section names.
- None as a command line arg works again.
parser.parse_args(['--foo', None]) raised TypeError: object of
type 'NoneType' has no len() in 1.10.0 and 1.10.1. It gives
foo=None again, as 1.9.0 and plain argparse do. The same goes for
0 and False.
- A quoted part of a TOML section name can now hold a dot when it
is in single quotes or comes after a space (#370).
TomlConfigParser(["tool.'a.b'"]) and TomlConfigParser(['tool .
"a.b"']) now read the table [tool."a.b"]. Before, both names were
split at the dot inside the quotes, so that table's settings were
silently not read (tool."a.b" already worked). Writing a config
file with such a section name now writes [tool."a.b"] too.
With that fix, the quoted parts of a section name follow TOML's rules
more closely:
- Backslash escapes are read in a double-quoted part and left as
they are in a single-quoted part.
- Spaces inside double quotes are kept. tool." a " used to be read
as tool.a.
- A quote character in the middle of an unquoted part, which isn't
valid TOML, now starts a quoted part, so tool.it's.x is no longer
split at the second dot. Write it as tool."it's".x, which works
in earlier versions too.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Fix this do_compile failure with musl multilib:
openssl/configuration.h:19: Error: Unable to find 'bits/wordsize.h'
openssl/configuration.h:43: Error: CPP #error ""Unknown __WORDSIZE
detected""
oe-core f296632258 ("multilib_header_wrapper.h: support musl") detects
musl with __has_include. swig has no __has_include, so the wrapper
includes bits/wordsize.h as on glibc. musl does not have this header.
Pass -D__MHWORDSIZE to swig. The wrapper uses a predefined
__MHWORDSIZE as is (rule 1 in f296632258).
Signed-off-by: mark.yang <mark.yang@lge.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
pytokens is compiled with mypyc, which builds its runtime with -Werror.
The mypy 1.17 runtime (misc_ops.c and friends) uses _Py_IDENTIFIER,
_PyUnicode_FromId and _PyObject_GetAttrId, which Python 3.15 marks
deprecated, so the build fails with 19 -Wdeprecated-declarations
errors. mypy 1.20 dropped these calls, but upgrading needs new librt
and ast-serialize recipes. Downgrade the warning from an error until
then; the APIs are still present in 3.15.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
setup.py exits unless the interpreter is 3.10 - 3.14, so do_compile
fails now that oe-core ships Python 3.15. Upstream main still has the
same bound; raise it to 3.15.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 0.29.2:
- Drop support for Python 3.10.
- Limit the full test matrix to Python 3.15.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 4.1.2:
- FIX: Fix :lang() taking time quadratic in the number of top level
elements of a fragment that have an html or head child, such as
many documents concatenated and parsed with html.parser, as the
content language found in the header of each one was cached in a
list that was searched for every new top level element.
- FIX: Fix :lang() taking time quadratic in the size of the
document when many elements share a long language tag, such as
one inherited from <html lang>, as the tag was checked and
matched again for every element.
- FIX: Fix :-soup-contains() taking time quadratic in the depth of
the document, such as a long list of unclosed <li> parsed with
html.parser, as the text of every element, which includes that of
all its descendants, was gathered and searched again for every
element.
- FIX: NOCACHE now turns off the caches of the content language in
a document's header, of the forms of a document, and of the
selected options of a select, so :lang(), :default,
:indeterminate and :checked see changes made to the tree during a
lazy iteration such as iselect().
- FIX: Slimmed relation caches so they now take roughly half the
memory.
- FIX: Fix nth selectors with very large An+B values raising an
OverflowError when matching, and matching the wrong elements when
a value is larger than 2^53, as the position of an element was
checked with a float division. A value with more digits than
Python will convert to an integer now raises a
SelectorSyntaxError instead of a ValueError.
- FIX: filter() given a list of tags now matches the tags under the
same top level element together, sharing the caches that keep
matching linear, instead of matching each tag separately, which
took time quadratic in the depth of a nested document for any
selector. A selector that uses :scope or & still matches each tag
separately, as each tag is its own scope.
- FIX: The ignore option now disallows a pseudo-class however its
name is written, as names were compared without resolving CSS
escapes, so a name written with an escape, such as :h\61 s(), was
not disallowed. Document that each alias of a pseudo-class, such
as :contains() for :-soup-contains(), must be listed as well.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 2026.11.19:
- Findall: return strings for a single group that repeats
- Fix locking of scanner/splitter state shared across threads
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 3.19.0:
Changed:
- Drop support for EOL Python 3.10
Fixed:
- Fix copy() failing when a format option is set
- Handle rows with fewer cells than header in from_html()
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 0.37.0:
- Added is_snapshot() so extensions can recognize inline and
external snapshot objects.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 1.85.3:
- Fixed a deadlock that could freeze the entire Python
process when closing a channel (synchronous API) while gRPC's
background threads were running Python callbacks (for example,
call credentials plugins).
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 1.85.3:
- Fixed a deadlock that could freeze the entire Python process when
closing a channel (synchronous API) while gRPC's background
threads were running Python callbacks (for example, call
credentials plugins).
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 1.85.3:
- Fixed a deadlock that could freeze the entire Python process when
closing a channel (synchronous API) while gRPC's background
threads were running Python callbacks (for example, call
credentials plugins).
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 4.2.12:
- UnixFileLock refuses, with PermissionError, a lock file that
another account owns under a sticky parent such as /tmp. Its
owner could remove it during a hold, after which a second process
locked a new file at the same path and both held the lock. A file
owned by the directory's owner, such as root in /tmp, is still
accepted.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 1.5.1:
Security fixes:
- Prevent quadratic regex matching on long whitespace runs in the
Jalali calendar (GHSA-rq5p-ww4m-666c)
- Prevent quadratic parsing in search_dates() on a long run of
skipped words after a number (GHSA-c83m-fh72-x3jp)
- Prevent unbounded recursion and quadratic parsing in
search_dates() on many quantities written in words
(GHSA-8hqv-h88c-f367)
- Prevent quadratic time in search_dates() on a long text whose
words and Unicode-normalized words differ in number
(GHSA-wr9g-q4w6-fp42)
- Prevent quadratic parsing in parse() on a long run of separators
followed by skipped words (GHSA-5g92-f88x-gwj5)
New features:
- Support "less than a minute ago" in Russian, which was not parse
Fixes:
- search_dates() looks for the words of a quantity written in words
among at most 16 words, so a longer quantity can give a different
result
- search_dates() yields at most eight dates from a run of more than
eight quantities written in words, where it yielded all of them
before
- Keep a full stop that belongs to a date inside the date in
search_dates(), so "Sept. 5, 2020" is no longer split at the full
stop
- Use the reference date's year when a custom format has no year,
so PREFER_DAY_OF_MONTH="last" returns February 29 in a leap year
instead of February 28, and skip invalid leap days instead of
raising ValueError; with PREFER_DAY_OF_MONTH or
PREFER_MONTH_OF_YEAR set to "current", the day or month of
RELATIVE_BASE is used when it is set
- Leave out a time span that does not fit in the years 1 to 9999,
instead of raising ValueError in search_dates() with
RETURN_TIME_SPAN, so the other dates of the text are kept
- Treat digits that the regular expression module matches but int()
rejects as not a number, instead of raising ValueError in parse()
and search_dates()
- Do not raise KeyError for a month or weekday name in date_formats
that is spelled with a letter the regular expression module
equates with a letter of the name when ignoring case, such as the
long s for "s"; the date is read as that name
- Stop the Vietnamese year simplification from eating the month
name "năm", so a month name such as "Tháng năm" (May) followed by
a year parses
- Fix parsing time-only strings such as "3pm" when RELATIVE_BASE is
timezone-aware, which returned None
Cleanups and internal improvements:
- Stop a test from depending on the current year
- Move the pytest and coverage settings into pyproject.toml, which
requires pytest 9 or later for the tests
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 3.1.3:
- Make pickling of functions depending on globals in notebook more
deterministic
- Use PEP 621 metadata to fix building with flit-core >= 4
- Account for removed opcode in Python 3.16
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 45.2.0:
- fix(database): preserve metadata across CAN database imports
- dbc: load and dump Bus.fd_baudrate from BaudrateCANFD
- arxml: keep integral enumeration limits integers
- sym: use the longest Len of a multiplexed message
- Escape quoted signal units and choice labels in DBC output
- c_source: escape signal names that are C keywords
- dbc: keep CAN FD frames from ARXML and in-code databases
- Read relative timestamps in compact candump logs
- Use the frame format when decoding candump logs
- dbc: rewrite a loaded VFrameFormat when the message's frame
format changes
- Read nanosecond timestamps from candump calendar logs
- tester: use raw initial values when scaling is disabled
- Fix for Issue Overlapping Signals / Multiplexors
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 8.0.1
- Fix copying and deep-copying @cached wrappers of callables
without a __qualname__, e.g. functools.partial objects (broken
since v8.0.0).
- Fix deep-copying and pickling LFUCache instances with many
different use counts (broken since v6.1.0).
- Properly support shallow copies of caches, including subclasses
with additional attributes.
- Minor LRUCache performance improvements.
- Minor @cachedmethod error handling improvements.
- Minor documentation improvements.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Upgrade to release 0.0.7:
- Drop support for Python 3.10
- Limit the full test matrix to Python 3.15
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
test_localtime_and_gmtime_match_datetime and test_naive_datetime_modes
fail intermittently on musl. time-machine sets TZ to the zone key, and
musl parses keys that are also valid POSIX TZ rule strings, such as
EST5EDT, CST6CDT, GB-Eire, NZ-CHAT and W-SU, as rules instead of loading
the zone file, so libc local time disagrees with zoneinfo.
Prefix the key with a colon, which makes glibc and musl load the zone
file. With this and the musl fix for zone files with a single
transition, 120 of 120 hypothesis seeds of the full suite pass in a musl
image rootfs, against 18 failing seeds with this change alone.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
vlc.py says LGPL version 2.1 or any later version and COPYING is the
LGPL-2.1 text.
AI-Generated: Uses Claude Code
Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>