Skip to content

optional dependencies#207

Merged
thorinaboenke merged 6 commits into
developmentfrom
feature/optional_library_dependencies
Jul 13, 2026
Merged

optional dependencies#207
thorinaboenke merged 6 commits into
developmentfrom
feature/optional_library_dependencies

Conversation

@thorinaboenke

@thorinaboenke thorinaboenke commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Task

#179

Description

bump pin to detectmatelibrary==0.4.0
Version is pinned in one place only; extras stay unversioned so uv/pip can unify them.

Support DetectMateLibrary's new optional extras (llm, dataframes, polars-rtcompat, full) via matching pass-through extras in pyproject.toml, `.

Docker: Dockerfile gain a LIBRARY_EXTRAS build arg (default full) controlling which extras get installed (--build-arg LIBRARY_EXTRAS=llm,dataframes). docker-compose.yml passes it through for the parser/detector

also updated docs to reflect recreation of development branch on deleteion

How Has This Been Tested?

manual testing:
#install only with llm extras
docker build --build-arg LIBRARY_EXTRAS=llm -t detectmate:llm-test .
--> openai there, polars runtime is not
image

#install with no extras
docker build --build-arg LIBRARY_EXTRAS="" -t detectmate:base-test .
image

no build args behaves like full:
docker build -t detectmate:full-test .

for pkg in openai tiktoken pandas polars-runtime-compat; do
docker run --rm detectmate:full-test python -m pip show "$pkg" >/dev/null && echo "$pkg: present (expected)" || echo "UNEXPECTED: $pkg missing"
done

image

also works with passing through docker compose:
LIBRARY_EXTRAS=llm docker compose build detector

image

Checklist

  • This Pull-Request goes to the development branch.
  • I have successfully run prek locally.
  • I have added tests to cover my changes.
  • I have linked the issue-id to the task-description.
  • I have performed a self-review of my own code.

@thorinaboenke
thorinaboenke marked this pull request as draft July 10, 2026 12:07
@thorinaboenke
thorinaboenke marked this pull request as ready for review July 13, 2026 09:24
@thorinaboenke
thorinaboenke merged commit 599a96f into development Jul 13, 2026
1 check passed
@thorinaboenke
thorinaboenke deleted the feature/optional_library_dependencies branch July 13, 2026 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant