Skip to content

Make boto3 and warrant-lite optional dependencies#2020

Draft
iMicknl wants to merge 1 commit intov2/mainfrom
feature/optional-boto3
Draft

Make boto3 and warrant-lite optional dependencies#2020
iMicknl wants to merge 1 commit intov2/mainfrom
feature/optional-boto3

Conversation

@iMicknl
Copy link
Copy Markdown
Owner

@iMicknl iMicknl commented Apr 25, 2026

Summary

  • Moves boto3 and warrant-lite from core dependencies to a nexity optional extra (pip install pyoverkiz[nexity])
  • Adds a clear ImportError with install instructions when NexityAuthStrategy.login() is called without the extra
  • Adds test coverage for the missing-dependency error path
  • Documents the optional extra in the getting-started guide and migration guide

Resolves PY-1 from #2014.

Test plan

  • All 397 existing tests pass
  • New test_login_raises_import_error_without_nexity_extra test verifies the error message
  • Existing Nexity auth tests still pass (skipped gracefully when extra is not installed)
  • Pre-commit hooks pass (ruff, mypy, ty)

These heavy dependencies (~100MB installed) are only used by
NexityAuthStrategy. Moving them to a `nexity` extra avoids pulling
in the entire AWS SDK for users who don't need Nexity support.
@iMicknl iMicknl added enhancement New feature or request v2 labels Apr 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature v2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant