Skip to content

Conversation

@dkropachev
Copy link
Collaborator

@dkropachev dkropachev commented Jan 29, 2026

Summary

  • Add numpy and objgraph to dev dependencies (required for running some tests)
  • Add auth-kerberos optional dependency for GSSAPI authentication support

Details

Missing Dev Dependencies

  • numpy: Used in tests/integration/standard/test_cython_protocol_handlers.py
  • objgraph: Used in tests/stress_tests/test_load.py

New Optional Dependency

  • auth-kerberos: Documents the optional kerberos/winkerberos packages used for GSSAPI authentication in cassandra/auth.py. The code already handles missing imports gracefully via try/except, but documenting them as optional dependencies improves discoverability.

@dkropachev dkropachev self-assigned this Jan 29, 2026
- Add numpy and objgraph to dev dependencies (used in tests)
- Add auth-kerberos optional dependency for GSSAPI authentication
Initialize `count` variable before the for loop to prevent
UnboundLocalError when the loop doesn't execute. This follows
the same pattern already used in verify_iterator_data().
The `ndarray.newbyteorder()` method was removed in NumPy 2.0.
Use `arr.view(arr.dtype.newbyteorder())` instead, which is compatible
with both NumPy 1.x and 2.x.

This fixes the failing numpy protocol handler integration tests
that started running after numpy was added to dev dependencies.
@dkropachev dkropachev force-pushed the fix/missing-dependencies branch from 56ed5b3 to 974a7e2 Compare January 30, 2026 02:08
@dkropachev dkropachev merged commit a35dc6c into master Jan 30, 2026
26 checks passed
@dkropachev dkropachev deleted the fix/missing-dependencies branch January 30, 2026 09:45
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.

3 participants