From 670cf68d00ed1f684a15ec3e211983ea400fab3a Mon Sep 17 00:00:00 2001 From: Arda Tekin <2003arda2003@gmail.com> Date: Fri, 20 Nov 2026 01:11:25 +0200 Subject: [PATCH] feat!: move fastexcel to optional [excel] extra --- .github/workflows/ci.yml | 2 +- .github/workflows/security.yml | 2 +- AGENTS.md | 2 +- CHANGELOG.md | 1 + CONTRIBUTING.md | 8 ++-- Makefile | 2 +- README.md | 3 +- docs/configuration/table.md | 5 +++ docs/development.md | 2 +- docs/installation.md | 12 +++--- llms.txt | 4 +- pyproject.toml | 4 +- src/tablassert/extras.py | 2 + src/tablassert/lib.py | 8 ++++ tests/test_cover_lib.py | 38 ++++++++++++++++++ tests/test_extras.py | 3 +- uv.lock | 70 +++++++++++++++++----------------- 17 files changed, 115 insertions(+), 53 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 340ca406..07e07164 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ concurrency: env: # The Python-syncing jobs install this EXACT set, so they share one warm uv cache instead # of racing to save mutually-useless ones. See the `ci` group in pyproject.toml. - SYNC_ARGS: --no-default-groups --group ci --extra cli --extra qc --extra log + SYNC_ARGS: --no-default-groups --group ci --extra cli --extra qc --extra log --extra excel jobs: # Release gate: a pyproject.toml push that does not change project.version (a dependency diff --git a/.github/workflows/security.yml b/.github/workflows/security.yml index e31eb732..96a4e72d 100644 --- a/.github/workflows/security.yml +++ b/.github/workflows/security.yml @@ -19,7 +19,7 @@ concurrency: env: # Keep in sync with SYNC_ARGS in ci.yml so this workflow restores the same warm uv cache. - SYNC_ARGS: --no-default-groups --group ci --extra cli --extra qc --extra log + SYNC_ARGS: --no-default-groups --group ci --extra cli --extra qc --extra log --extra excel jobs: secrets: diff --git a/AGENTS.md b/AGENTS.md index bd1c501e..5ae47bfc 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,7 @@ Tablassert turns biomedical spreadsheets into KGX knowledge graphs for NCATS Tra ## Build / Test / Lint -- One-time setup: `make setup` (`uv sync --group dev --extra cli --extra qc --extra log`, then debug `maturin develop`). [verified] +- One-time setup: `make setup` (`uv sync --group dev --extra cli --extra qc --extra log --extra excel`, then debug `maturin develop`). [verified] - After any Rust change, or when the extension may be stale: `make dev` (debug build; `make build` for release-mode performance checks only). [verified] - Full local gate before a PR: `make check` (ruff lint + format check + pyright + vulture + deptry dead-code scans + pytest + cargo test + clippy -D warnings). [verified] - Release version bump: `make patch` / `make minor` / `make major` bumps `pyproject.toml`, `uv.lock`, `CITATION.cff` and rolls the `CHANGELOG.md` Unreleased section (changelog prose stays manual). [verified] diff --git a/CHANGELOG.md b/CHANGELOG.md index 4bb24097..464156aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ All notable changes to this project are documented in this file. ### Changed +- **BREAKING: `fastexcel` moved from core dependencies to the optional `[excel]` extra.** `lib.excel()` preflights `extras.require("excel", required_by="Excel input")` before `pl.read_excel()` when `engine == "calamine"`, raising `MissingExtraError` with install commands instead of failing inside Polars; explicit non-calamine engines such as `openpyxl` remain usable without `[excel]`. ([#300](https://github.com/SkyeAv/Tablassert/issues/300)) - **CI runs only when a release is cut or on manual dispatch.** `.github/workflows/ci.yml` no longer triggers on pull requests; it runs on a push to main that changes `project.version` in `pyproject.toml` (the `chore(release):` commit, detected by the same `detect-pyproject-version-change` action the tag and PyPI workflows use) or via `workflow_dispatch`. The PR-only `changes` path filter, the push-back `autofix` job, the `python-smoke` subset, and the CI `changelog` job are removed; formatting is now a check-only `format` job, and the changelog requirement stays enforced by the pre-push hook. Run `make check` locally before opening a pull request. - **The vulture allowlist lives in `scripts/` next to the other developer tooling.** `vulture_whitelist.py` moves to `scripts/vulture_whitelist.py` unchanged; the `[tool.vulture]` `paths` list drops the now-redundant root entry because `scripts` is already scanned, and the CI `python` path filter, the pre-commit hook comment, and the CONTRIBUTING dead-code section follow the new location. The gate is behaviorally identical: same vulture pin, same config, same allowlist content. ([#287](https://github.com/SkyeAv/Tablassert/pull/287)) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5d19a975..83f75a9b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,12 +14,12 @@ Thank you for helping make Tablassert reliable. Reliability here includes the de ```bash git clone https://github.com/SkyeAv/Tablassert.git cd Tablassert -uv sync --group dev --extra cli --extra qc --extra log +uv sync --group dev --extra cli --extra qc --extra log --extra excel uv run maturin develop --manifest-path rust/Cargo.toml uv run tablassert --help ``` -`uv sync --group dev --extra cli --extra qc --extra log` installs the development tools plus the CLI runtime, optional QC runtime, and loguru logging. `maturin develop` builds the PyO3 extension from `rust/` and installs it into the uv-managed environment. +`uv sync --group dev --extra cli --extra qc --extra log --extra excel` installs the development tools plus the CLI runtime, optional QC runtime, and loguru logging. `maturin develop` builds the PyO3 extension from `rust/` and installs it into the uv-managed environment. Shortcut: @@ -49,7 +49,7 @@ The `Makefile` is intentionally small and mirrors the underlying commands: | Target | Runs | | --- | --- | -| `make setup` | `uv sync --group dev --extra cli --extra qc --extra log` and debug `maturin develop` | +| `make setup` | `uv sync --group dev --extra cli --extra qc --extra log --extra excel` and debug `maturin develop` | | `make dev` | Debug editable extension build | | `make build` | Release editable extension build | | `make test` | Python tests with coverage | @@ -118,7 +118,7 @@ What the gates cover: - **Ruff linting and formatting.** The current tree enforces core pycodestyle/pyflakes safety checks plus stale-suppression detection. It also enforces an expanded rule set covering common bug patterns (bugbear), simplifications, Python-version upgrades, pytest style, import order, and comprehensions. Treat `uv run ruff check .` and `uv run ruff format --check .` as the stable interface rather than relying on individual rule codes. - **Pyright.** Type checking runs through `uv run pyright`; the project is tightening this as a strict-inference ratchet over time. -- **Python tests.** The suite is offline and runs in parallel by default via [pytest-xdist](https://pypi.org/project/pytest-xdist/) (`-n auto` in `pyproject.toml`'s addopts, which also enable `--cov` so coverage is reported inline); Disable parallelism for a single serial run with `pytest -n 0`. CI installs the `ci` dependency group with the `cli`, `qc`, and `log` extras (`--no-default-groups --group ci --extra cli --extra qc --extra log`) and runs the suite as a single job rather than sharding it across a matrix of runners: most of a run is fixed overhead (interpreter start, imports, xdist worker spin-up, coverage init) rather than test execution, so splitting the suite would cost more in per-runner setup than it recovers. +- **Python tests.** The suite is offline and runs in parallel by default via [pytest-xdist](https://pypi.org/project/pytest-xdist/) (`-n auto` in `pyproject.toml`'s addopts, which also enable `--cov` so coverage is reported inline); Disable parallelism for a single serial run with `pytest -n 0`. CI installs the `ci` dependency group with the `cli`, `qc`, `log`, and `excel` extras (`--no-default-groups --group ci --extra cli --extra qc --extra log --extra excel`) and runs the suite as a single job rather than sharding it across a matrix of runners: most of a run is fixed overhead (interpreter start, imports, xdist worker spin-up, coverage init) rather than test execution, so splitting the suite would cost more in per-runner setup than it recovers. - **Rust tests.** `cargo test --manifest-path rust/Cargo.toml` runs the extension's Rust unit tests. - **Rust style and lints.** `cargo fmt --check` enforces formatting; clippy runs all targets with warnings denied. - **Dead code.** `uv run vulture` finds unused Python functions, methods, classes, and attributes that ruff and pyright cannot see; its scope and suppressions live in `[tool.vulture]` and `scripts/vulture_whitelist.py` (names used dynamically, like config-vocabulary enum members and pydantic fields). `uv run deptry .` finds unused declared dependencies and imports that only work through a transitive dependency; its ignores live in `[tool.deptry]`. On the Rust side, clippy already denies `dead_code`, and cargo-machete (CI `rust` job and pre-push hook, no local install required) rejects unused crate dependencies. diff --git a/Makefile b/Makefile index 28b6fbaf..8c3e6071 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ # Install Python dev dependencies, CLI/QC/log extras, and the editable Rust extension. setup: - uv sync --group dev --extra cli --extra qc --extra log + uv sync --group dev --extra cli --extra qc --extra log --extra excel uv run maturin develop --manifest-path rust/Cargo.toml # Build and install the Rust extension in release mode for local performance checks. diff --git a/README.md b/README.md index da8bb8bd..e3f49954 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,7 @@ Python API to your project. Other extras are opt-in: | `aria2` | bundled aria2c downloader, used automatically by `build-fullmap` when installed (Linux/Windows wheels only) | `pip install "tablassert[aria2]"` | | `qc` | four-stage QC audit (exact match, fuzzy match, abbreviation expansion, and SapBERT embeddings) | `pip install "tablassert[qc]"` | | `log` | loguru-backed file/progress logging (rotation, enqueue) | `pip install "tablassert[log]"` | +| `excel` | Excel (`.xlsx`) input via Polars' `calamine` engine | `pip install "tablassert[excel]"` | Reaching a feature whose extra is missing never produces a bare `ModuleNotFoundError`: the failure names the missing package and the install command that fixes it. QC is opt-in at build time @@ -191,7 +192,7 @@ no LazyFrame setup or NLP preprocessing required. See the ## Developing ```bash -uv sync --group dev --extra cli --extra qc --extra log +uv sync --group dev --extra cli --extra qc --extra log --extra excel uv run maturin develop --manifest-path rust/Cargo.toml make check ``` diff --git a/docs/configuration/table.md b/docs/configuration/table.md index 6cc43134..2f1cdb1b 100644 --- a/docs/configuration/table.md +++ b/docs/configuration/table.md @@ -89,6 +89,11 @@ Defines the data file location and format. #### Excel Source +> **Requires `[excel]` extra.** Reading `kind: excel` workbooks with the default `calamine` +> engine requires `fastexcel` (`pip install "tablassert[excel]"` or +> `uv tool install "tablassert[excel]"`). See [Optional Extras](../installation.md#optional-extras) +> for details. + | Field | Type | Required | Description | | ------- | ------ | ---------- | ------------- | | `kind` | String | No | Source kind. Model default is `"excel"`, but specify it explicitly in configs. | diff --git a/docs/development.md b/docs/development.md index 222e7398..b9d712e0 100644 --- a/docs/development.md +++ b/docs/development.md @@ -8,7 +8,7 @@ run the test and docs gates locally, and lint/format. The canonical contributor ```bash git clone https://github.com/SkyeAv/Tablassert.git cd Tablassert -uv sync --group dev --extra cli --extra qc --extra log +uv sync --group dev --extra cli --extra qc --extra log --extra excel uv run maturin develop --manifest-path rust/Cargo.toml uv run tablassert --help ``` diff --git a/docs/installation.md b/docs/installation.md index e7f83b35..91cfb63f 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -1,6 +1,6 @@ # Installation -Install Tablassert's Python API, then add the `[cli]` extra to use the `tablassert` command and any of the `rt` / `aria2` / `qc` / `log` extras that match how you will use it (runtime compatibility, accelerated fullmap downloads, auditing mappings, or loguru-backed logging). +Install Tablassert's Python API, then add the `[cli]` extra to use the `tablassert` command and any of the `rt` / `aria2` / `qc` / `log` / `excel` extras that match how you will use it (runtime compatibility, accelerated fullmap downloads, auditing mappings, loguru-backed logging, or Excel input). ## Prerequisites @@ -38,6 +38,7 @@ uv tool install "tablassert[cli]" # or: pip install "tablassert[cli]" | `aria2` | Bundled aria2c downloader, used automatically by `build-fullmap` when installed (Linux/Windows wheels only) | `aria2==0.0.1b0` (imports as `aria2c`, bundles aria2c) | | `qc` | QC runtime (exact match, fuzzy match, abbreviation expansion, then a SapBERT embedding audit) | `scikit-learn`, `sentence-transformers` (`torch` + `numpy` arrive transitively; `rapidfuzz` is a core dependency) | | `log` | loguru-backed file/progress logging (rotation, enqueue) | `loguru` | +| `excel` | Excel (`.xlsx`) input via Polars' `calamine` engine | `fastexcel` | Install any extra the same way: `uv tool install "tablassert[]"` or `pip install "tablassert[]"`, and combine them as `"tablassert[cli,qc]"`. Wheels ship for @@ -48,9 +49,9 @@ Linux and macOS; elsewhere pip builds from the sdist, which needs a Rust toolcha The bundled aria2c dependency is GPL-2.0. Tablassert remains Apache-2.0 and does not vendor aria2c, but redistributors who ship the optional extra should review GPL-2.0 obligations. -Excel (`.xlsx`) input is read through Polars' `calamine` engine, which ships with the base install -(`fastexcel`). Workbooks that calamine cannot parse are rejected with its error; there is no fallback -engine. +Excel (`.xlsx`) input defaults to Polars' `calamine` engine, which requires the `[excel]` extra +(`fastexcel`). When `fastexcel` is absent, `lib.excel()` raises `MissingExtraError` before calling +`pl.read_excel()`. Passing an explicit non-calamine engine such as `openpyxl` does not require `[excel]`. #### When an extra is missing @@ -72,6 +73,7 @@ fails, not a failure report): | `tablassert` | `[cli]` | Before importing the command application, so a base Python-API install reports the exact install command instead of a bare module error | | `build-kg --qc` | `[qc]` | Before the build starts: the QC audit runs at the very end of the build, so a late failure would cost the entire entity-resolution pass | | `build-fullmap` | `[aria2]` | Before the first download, to pick the downloader: bundled aria2c when the extra is installed, Python downloader otherwise (announced on stderr and logged either way; never a missing-extra failure) | +| `lib.excel()` | `[excel]` | Before `pl.read_excel()` when `engine == "calamine"` (explicit non-calamine engines such as `openpyxl` remain independent) | A partially installed extra names every package it is still missing, so installing them is one step rather than a retry loop. Library calls that reach an optional import directly (for example @@ -101,7 +103,7 @@ Editable install plus the development tools; needs `uv` and a Rust toolchain. ```bash git clone https://github.com/SkyeAv/Tablassert.git cd Tablassert -uv sync --group dev --extra cli --extra qc --extra log +uv sync --group dev --extra cli --extra qc --extra log --extra excel uv run maturin develop --manifest-path rust/Cargo.toml uv run tablassert --help ``` diff --git a/llms.txt b/llms.txt index 3091f560..47e05937 100644 --- a/llms.txt +++ b/llms.txt @@ -9,7 +9,7 @@ Current CLI behavior queries an embedded redb database whose primary file is `fu ## Quickstart - [README](README.md): high-level overview, install snippets, and one-command graph build. - [Documentation Site Home](docs/index.md): docs landing page and navigation context. -- [Installation Guide](docs/installation.md): three install paths (PyPI, GitHub main, development from source), platform and Rust-toolchain notes, and the missing-extra behavior. Optional extras: `cli`, `rt`, `aria2`, `qc`, and `log`. +- [Installation Guide](docs/installation.md): three install paths (PyPI, GitHub main, development from source), platform and Rust-toolchain notes, and the missing-extra behavior. Optional extras: `cli`, `rt`, `aria2`, `qc`, `log`, and `excel`. - [CLI Reference](docs/cli.md): the five commands (`build-fullmap`, `build-kg`, `quick-map`, `validate`, and `validate-kgx`) plus the app-level `--version` flag. - [Tutorial](docs/tutorial.md): first end-to-end run from CSV input to KGX NDJSON output. @@ -35,7 +35,7 @@ Current CLI behavior queries an embedded redb database whose primary file is `fu ## Contributor Development - [Contributing Guide](CONTRIBUTING.md): setup, style conventions, checks, and PR expectations. - [Development](docs/development.md): docs-site contributor setup and the local `uv run mkdocs build --strict` docs gate. -- [Project Metadata](pyproject.toml): dependencies, tooling config, and CLI entrypoint. Optional extras: `cli`, `rt`, `aria2`, `qc`, and `log`. +- [Project Metadata](pyproject.toml): dependencies, tooling config, and CLI entrypoint. Optional extras: `cli`, `rt`, `aria2`, `qc`, `log`, and `excel`. - [Tests](tests/): pytest coverage and fixtures. - [MkDocs Configuration](mkdocs.yml): docs navigation and published pages. - [GitHub Workflows](.github/workflows/): `ci.yml` runs lint, format, type, dead-code (vulture, deptry), test, rust (clippy, machete), and mkdocs checks when a release changes the project version or on manual dispatch; `docs.yml` builds and deploys MkDocs; `pipy.yml` checks the project version, builds sdist and wheel artifacts, and publishes to PyPI; `tag-version.yml` tags changed project versions; `paper.yml` tests the JOSS paper compile and uploads the PDF artifact; `security.yml` scans commits for leaked secrets with gitleaks and audits dependencies against advisory databases with pip-audit and cargo-audit for the Rust lockfile. diff --git a/pyproject.toml b/pyproject.toml index 49fa3607..b30becdc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,6 @@ dependencies = [ "rapidfuzz>=3.14.3", "pydantic>=2.12.5", "pyyaml>=6.0.3", - "fastexcel>=0.21.0", ] [project.urls] @@ -98,6 +97,9 @@ qc = [ log = [ "loguru>=0.7.3", ] +excel = [ + "fastexcel>=0.21.0", +] [dependency-groups] test = [ diff --git a/src/tablassert/extras.py b/src/tablassert/extras.py index 07261825..7595065c 100644 --- a/src/tablassert/extras.py +++ b/src/tablassert/extras.py @@ -34,6 +34,7 @@ "aria2": {"aria2c": "aria2"}, "qc": {"sklearn": "scikit-learn", "sentence_transformers": "sentence-transformers"}, "log": {"loguru": "loguru"}, + "excel": {"fastexcel": "fastexcel"}, } # Import name -> owning extra, derived so the two can never drift apart. @@ -46,6 +47,7 @@ "aria2": "the bundled aria2c downloader (used automatically by build-fullmap when installed)", "qc": "the QC audit", "log": "file and progress logging", + "excel": "Excel input", } diff --git a/src/tablassert/lib.py b/src/tablassert/lib.py index 0910a27a..cf0795d6 100644 --- a/src/tablassert/lib.py +++ b/src/tablassert/lib.py @@ -949,11 +949,19 @@ def excel(p: Path, sheet: str, engine: str = "calamine") -> pl.LazyFrame: Returns: LazyFrame over the sheet contents (no header inference). + Raises: + MissingExtraError: When ``engine == "calamine"`` and the ``[excel]`` extra + (``fastexcel``) is not installed. + Notes: Headerless auto column names are remapped to the 1-based ``column_1``.. convention so existing table configs keep referencing the same names as under polars 1.x (output parity). """ + if engine == "calamine": + from tablassert.extras import require + + require("excel", required_by="Excel input") df: pl.DataFrame = pl.read_excel( source=p, sheet_name=sheet, diff --git a/tests/test_cover_lib.py b/tests/test_cover_lib.py index 6ed200fe..7078fe54 100644 --- a/tests/test_cover_lib.py +++ b/tests/test_cover_lib.py @@ -121,6 +121,44 @@ def test_excel_reads_sheet_without_header(tmp_path: Path) -> None: assert df.rows() == [("a", "b"), ("c", "d")] +def test_excel_missing_extra_raises_before_read_excel(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: + """Default ``calamine`` Excel reads preflight ``[excel]`` before ``pl.read_excel``.""" + from tablassert import extras + from tablassert.errors import MissingExtraError + + real_find_spec = extras.find_spec + + def _no_fastexcel(name: str, package: str | None = None) -> Any: + if name == "fastexcel": + return None + return real_find_spec(name, package) + + def _fail_read_excel(*_args: Any, **_kwargs: Any) -> pl.DataFrame: + raise AssertionError("pl.read_excel must not be called when fastexcel is missing") + + monkeypatch.setattr(extras, "find_spec", _no_fastexcel) + monkeypatch.setattr(pl, "read_excel", _fail_read_excel) + + with pytest.raises(MissingExtraError) as exc_info: + lib.excel(tmp_path / "book.xlsx", "Sheet1") + message: str = str(exc_info.value) + assert "fastexcel" in message + assert 'pip install "tablassert[excel]"' in message + assert 'uv tool install "tablassert[excel]"' in message + + wb: openpyxl.Workbook = openpyxl.Workbook() + ws = wb.active + assert ws is not None + ws.title = "Sheet1" + ws.append(["x", "y"]) + xp: Path = tmp_path / "openpyxl.xlsx" + wb.save(xp) + monkeypatch.undo() + monkeypatch.setattr(extras, "find_spec", _no_fastexcel) + df: pl.DataFrame = lib.excel(xp, "Sheet1", engine="openpyxl").collect() + assert df.rows() == [("x", "y")] + + def test_parquet_reads_schema_and_renames_columns_positionally(tmp_path: Path) -> None: """``parquet`` scans lazily and maps the file's real names to positional ``column_``. diff --git a/tests/test_extras.py b/tests/test_extras.py index 074c73be..e9625357 100644 --- a/tests/test_extras.py +++ b/tests/test_extras.py @@ -40,7 +40,7 @@ def test_registry_covers_every_declared_extra() -> None: assert set(extras.EXTRA_PACKAGES) == declared - {"rt"} -@pytest.mark.parametrize("extra", ["cli", "qc", "aria2", "log"]) +@pytest.mark.parametrize("extra", ["cli", "qc", "aria2", "log", "excel"]) def test_registered_packages_are_actually_shipped_by_their_extra(extra: str) -> None: """Each import name maps to a distribution that its extra really installs. @@ -65,6 +65,7 @@ def test_module_lookup_is_derived_and_unambiguous() -> None: assert extras.EXTRA_FOR_MODULE["sklearn"] == "qc" assert extras.EXTRA_FOR_MODULE["sentence_transformers"] == "qc" assert extras.EXTRA_FOR_MODULE["loguru"] == "log" + assert extras.EXTRA_FOR_MODULE["fastexcel"] == "excel" assert len(extras.EXTRA_FOR_MODULE) == sum(len(packages) for packages in extras.EXTRA_PACKAGES.values()) diff --git a/uv.lock b/uv.lock index eec7e116..552bb35d 100644 --- a/uv.lock +++ b/uv.lock @@ -1,5 +1,5 @@ version = 1 -revision = 5 +revision = 3 requires-python = ">=3.11" resolution-markers = [ "python_full_version >= '3.14' and platform_machine != 's390x' and sys_platform == 'win32'", @@ -51,8 +51,8 @@ name = "anyio" version = "4.14.2" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "idna" }, - { name = "typing-extensions", marker = "python_full_version < '3.13'" }, + { name = "idna", marker = "sys_platform != 'emscripten'" }, + { name = "typing-extensions", marker = "python_full_version < '3.13' and sys_platform != 'emscripten'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/61/cc/a381afa6efea9f496eff839d4a6a1aed3bfafc7b3ab4b0d1b243a12573dd/anyio-4.14.2.tar.gz", hash = "sha256:cfa139f3ed1a23ee8f88a145ddb5ac7605b8bbfd8592baacd7ce3d8bb4313c7f", size = 260176, upload-time = "2026-07-12T20:29:07.082Z" } wheels = [ @@ -409,7 +409,7 @@ name = "cuda-bindings" version = "13.2.0" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "cuda-pathfinder" }, + { name = "cuda-pathfinder", marker = "sys_platform != 'emscripten' and sys_platform != 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/e0/a9/3a8241c6e19483ac1f1dcf5c10238205dcb8a6e9d0d4d4709240dff28ff4/cuda_bindings-13.2.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:721104c603f059780d287969be3d194a18d0cc3b713ed9049065a1107706759d", size = 5730273, upload-time = "2026-03-11T00:12:37.18Z" }, @@ -442,40 +442,40 @@ wheels = [ [package.optional-dependencies] cublas = [ - { name = "nvidia-cublas", version = "13.4.1.3", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, - { name = "nvidia-cuda-nvrtc", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-cublas", version = "13.4.1.3", source = { registry = "https://pypi.org/simple" }, marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, + { name = "nvidia-cuda-nvrtc", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] cudart = [ - { name = "nvidia-cuda-runtime", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-cuda-runtime", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] cufft = [ - { name = "nvidia-cufft", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, - { name = "nvidia-nvjitlink", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-cufft", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, + { name = "nvidia-nvjitlink", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] cufile = [ - { name = "nvidia-cufile", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-cufile", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] cupti = [ - { name = "nvidia-cuda-cupti", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-cuda-cupti", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] cusolver = [ - { name = "nvidia-cublas", version = "13.4.1.3", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, - { name = "nvidia-cusolver", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, - { name = "nvidia-cusparse", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, - { name = "nvidia-nvjitlink", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-cublas", version = "13.4.1.3", source = { registry = "https://pypi.org/simple" }, marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, + { name = "nvidia-cusolver", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, + { name = "nvidia-cusparse", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, + { name = "nvidia-nvjitlink", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] cusparse = [ - { name = "nvidia-cusparse", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, - { name = "nvidia-nvjitlink", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-cusparse", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, + { name = "nvidia-nvjitlink", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] nvjitlink = [ - { name = "nvidia-nvjitlink", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-nvjitlink", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] nvrtc = [ - { name = "nvidia-cuda-nvrtc", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-cuda-nvrtc", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] nvtx = [ - { name = "nvidia-nvtx", marker = "platform_machine == 'aarch64' or platform_machine == 'x86_64'" }, + { name = "nvidia-nvtx", marker = "(platform_machine == 'aarch64' and sys_platform == 'linux') or (platform_machine == 'x86_64' and sys_platform == 'linux')" }, ] [[package]] @@ -685,8 +685,8 @@ name = "httpcore2" version = "2.16.0" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "h11" }, - { name = "truststore" }, + { name = "h11", marker = "sys_platform != 'emscripten'" }, + { name = "truststore", marker = "sys_platform != 'emscripten'" }, ] sdist = { url = "https://files.pythonhosted.org/packages/c0/61/afa9d6b7452f9eca73f73d45324eb0bb52f098fd5e6049bf6b8263be9b4e/httpcore2-2.16.0.tar.gz", hash = "sha256:c72cd0413563b17e1cd8354677dff887466f8ec2551679759e93126534428643", size = 69886, upload-time = "2026-10-21T07:09:45.31Z" } wheels = [ @@ -1216,7 +1216,7 @@ resolution-markers = [ "python_full_version < '3.12' and platform_machine != 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'", ] dependencies = [ - { name = "nvidia-cuda-nvrtc" }, + { name = "nvidia-cuda-nvrtc", marker = "platform_machine != 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/d0/a0/5cd9d4b08a8320f7ca150ee0d66c97e98092922e338336cb4b62da7500c3/nvidia_cublas-13.4.1.3-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:4eb1472bf92b741e7cf24da7978dde251b58ddec2092d9f6a04f3623eb4e9a15", size = 513048232, upload-time = "2026-07-16T09:45:07.751Z" }, @@ -1264,8 +1264,8 @@ name = "nvidia-cudnn-cu13" version = "9.26.0.51" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-cublas", version = "13.1.0.3", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 's390x'" }, - { name = "nvidia-cublas", version = "13.4.1.3", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 's390x'" }, + { name = "nvidia-cublas", version = "13.1.0.3", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'" }, + { name = "nvidia-cublas", version = "13.4.1.3", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/c5/1c/01e1dd3dec6ffe0baaff7e722b8946d867353d05a01301f128f1730fde0b/nvidia_cudnn_cu13-9.26.0.51-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:8e5b4f5eccff721416f70ecf4353172fc4d5cdd8ca869fe6f983a4a5b0147b20", size = 595329497, upload-time = "2026-09-10T16:45:39.945Z" }, @@ -1277,7 +1277,7 @@ name = "nvidia-cufft" version = "12.2.0.57" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-nvjitlink" }, + { name = "nvidia-nvjitlink", marker = "platform_machine != 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/07/8d/f650e6d527f9d22b5ded906c000eaebb037721c06d4ecd906df62f300979/nvidia_cufft-12.2.0.57-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:1ed438568ae1088ba2c25789d10205d4104b8b140b7bd942e39a787947a0fb74", size = 218244742, upload-time = "2026-07-16T09:47:08.76Z" }, @@ -1298,9 +1298,9 @@ name = "nvidia-cusolver" version = "12.2.0.11" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-cublas", version = "13.4.1.3", source = { registry = "https://pypi.org/simple" } }, - { name = "nvidia-cusparse" }, - { name = "nvidia-nvjitlink" }, + { name = "nvidia-cublas", version = "13.4.1.3", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'" }, + { name = "nvidia-cusparse", marker = "platform_machine != 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'" }, + { name = "nvidia-nvjitlink", marker = "platform_machine != 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/60/df/9e6b603f1d64040ce3e076e9bce1b78e2d588d0aabc9783f351cecd861ab/nvidia_cusolver-12.2.0.11-py3-none-manylinux_2_27_aarch64.whl", hash = "sha256:8be097fca28de6be0990ab216ee9b804dd51077e1d1d83acf6c9850650bdc64d", size = 250383075, upload-time = "2026-07-16T09:50:16.355Z" }, @@ -1312,7 +1312,7 @@ name = "nvidia-cusparse" version = "12.7.10.12" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-nvjitlink" }, + { name = "nvidia-nvjitlink", marker = "platform_machine != 's390x' and sys_platform != 'emscripten' and sys_platform != 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/60/35/abbd278fb6d039fcfb5175efa10a21007a11878bec59920d84854b47d766/nvidia_cusparse-12.7.10.12-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:597eff2cd83e3ab1d1e3a0dce9c9c879d77cf64ec2659bfdb5af6a5d02e7aaa9", size = 169043093, upload-time = "2026-07-16T09:51:37.058Z" }, @@ -1351,7 +1351,7 @@ name = "nvidia-nvshmem-cu13" version = "3.7.2" source = { registry = "https://pypi.org/simple" } dependencies = [ - { name = "nvidia-cuda-cccl" }, + { name = "nvidia-cuda-cccl", marker = "sys_platform != 'emscripten' and sys_platform != 'win32'" }, ] wheels = [ { url = "https://files.pythonhosted.org/packages/81/11/1767ef120299972822a43aceffbc81ac813aad2089d817e36e4e12aa4c9c/nvidia_nvshmem_cu13-3.7.2-py3-none-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:0e748308b9e0a8a8d81859353f3e6c98fbe85a85f652a915a2ba60149a0bd124", size = 135174619, upload-time = "2026-07-17T19:24:15.404Z" }, @@ -2584,7 +2584,6 @@ version = "22.3.3" source = { editable = "." } dependencies = [ { name = "biolink-model" }, - { name = "fastexcel" }, { name = "linkml-runtime" }, { name = "polars" }, { name = "pyarrow" }, @@ -2601,6 +2600,9 @@ cli = [ { name = "cyclopts" }, { name = "rich" }, ] +excel = [ + { name = "fastexcel" }, +] log = [ { name = "loguru" }, ] @@ -2657,7 +2659,7 @@ requires-dist = [ { name = "aria2", marker = "extra == 'aria2'", specifier = "==0.0.1b0" }, { name = "biolink-model", specifier = ">=4.4.6" }, { name = "cyclopts", marker = "extra == 'cli'", specifier = ">=1.0.0" }, - { name = "fastexcel", specifier = ">=0.21.0" }, + { name = "fastexcel", marker = "extra == 'excel'", specifier = ">=0.21.0" }, { name = "linkml-runtime", specifier = ">=1.11" }, { name = "loguru", marker = "extra == 'log'", specifier = ">=0.7.3" }, { name = "polars", specifier = ">=2.0.0rc2" }, @@ -2670,7 +2672,7 @@ requires-dist = [ { name = "scikit-learn", marker = "extra == 'qc'", specifier = ">=1.8.0" }, { name = "sentence-transformers", marker = "extra == 'qc'", specifier = ">=5.3.0" }, ] -provides-extras = ["cli", "rt", "aria2", "qc", "log"] +provides-extras = ["cli", "rt", "aria2", "qc", "log", "excel"] [package.metadata.requires-dev] ci = [