GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Improve PyPI package metadata by merlimat · Pull Request #28 · oxia-db/oxia-client-python Conversation
Contributor
The PyPI page at https://pypi.org/project/oxia/ was nearly empty — just the one-line description with no README, no links, no classifiers. Changes:
Also fixed TOML section ordering:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions- Add readme = "README.md" so the full README renders on PyPI - Add license field - Add classifiers (Python versions, topics, license) - Add project URLs (homepage, docs, repo, issues) - Improve short description - Move dependencies before [project.urls] to fix TOML section scoping Signed-off-by: Matteo Merli <[email protected]> Uh oh!
There was an error while loading. Please reload this page.
merlimat
added a commit
to merlimat/oxia-client-python
that referenced
this pull request
main moved a long way while this branch replaced the native implementation with the Rust client, so most of the merge is deciding what each of those changes means once the implementation is gone. Kept from main, as the public API: - `request_timeout_ms` (oxia-db#35), now the Rust client's request timeout rather than a gRPC interceptor. It bounds the whole operation, including the retries the client makes internally. - `Client` as a context manager (oxia-db#23). - `_coerce_value`, so a value that is neither `str` nor `bytes` is a `TypeError` here rather than something obscure from the extension module (oxia-db#19). - The docstrings, type annotations, package metadata, README and CONTRIBUTING rewrites (oxia-db#21, oxia-db#22, oxia-db#24, oxia-db#25, oxia-db#26, oxia-db#28), and `SequenceUpdates` moving to `oxia.defs`. The native iterator is registered as a virtual subclass of it, so the type contract from oxia-db#16 holds without a wrapper around every item. - Python 3.10 through 3.14. The wheel is now `abi3-py310` rather than `abi3-py313`, which keeps one wheel per platform for the whole range. - The coverage gate and the test matrix. The Rust lints move to a job of their own instead of running once per Python version. Dropped with the code they covered: the unit tests for the connection pool, service discovery, notifications, sessions, key comparison, the status mapping and the timeout interceptor, and `gen-proto.sh`. `test_session_not_found` went with them — it forced a session closed through internals that no longer exist, and the binding exposes no way to reach that state. Three tests had to change rather than being dropped: - `test_floor_ceiling_get` asserted its keys spanned several shards through `client._service_discovery`. The client no longer exposes shard routing, so the guard is gone and the rest of the test stands. - `test_session_timeout_below_floor_rejected` expected a `ValueError` from the client's own floor check. The server rejects the timeout instead, so it is now an `OxiaException` naming the reason. - `test_list_hierarchical_sort_consistency_across_shards` compared `list()` against the client's own comparator, which the client also used to merge — it could not fail. It is replaced by `test_list_hierarchical_sort_across_shards`, which spells the server's order out and checks it against a single-shard server as well as a three-shard one. That one fails: see below. The new test is an expected failure. oxia-client 0.3.1 picks its cross-shard merge order from the `key_sorting` in the shard assignments and falls back to a legacy order when the server reports UNKNOWN, which is what the standalone server does. The shard streams are each sorted hierarchically and get merged with the legacy comparator, so a three-shard `list()` returns `/a/b` before `/aa/a` where one shard returns the opposite. It affects every cross-shard read. Signed-off-by: Matteo Merli <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
None yet
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later. |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |