Skip to content

Added cassandra-driver package to SPECS-EXTENDED #13937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 16, 2025

Conversation

jykanase
Copy link
Contributor

@jykanase jykanase commented Jun 2, 2025

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

  • The toolchain has been rebuilt successfully (or no changes were made to it)
  • The toolchain/worker package manifests are up-to-date
  • Any updated packages successfully build (or no packages were changed)
  • Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
  • Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
  • All package sources are available
  • cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
  • LICENSE-MAP files are up-to-date (./LICENSES-AND-NOTICES/SPECS/data/licenses.json, ./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md, ./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)
  • All source files have up-to-date hashes in the *.signatures.json files
  • sudo make go-tidy-all and sudo make go-test-coverage pass
  • Documentation has been updated to match any changes to the build system
  • Ready to merge

Summary

Added cassandra-driver package to SPECS-EXTENDED

Change Log

-python-cassandra-driver.spec
-python-cassandra-driver.signatures.json
-cgmanifest.json

Does this affect the toolchain?

NO

Associated issues
  • #xxxx
Links to CVEs
Test Methodology
  • verified Installation of package
    image

@jykanase jykanase requested review from a team as code owners June 2, 2025 07:19
@microsoft-github-policy-service microsoft-github-policy-service bot added Packaging specs-extended PR to fix SPECS-EXTENDED 3.0-dev PRs Destined for AzureLinux 3.0 labels Jun 2, 2025
@jykanase jykanase force-pushed the topic_cassandra-driver branch 2 times, most recently from 7d21cc8 to 82f9d64 Compare June 12, 2025 06:47
@jykanase
Copy link
Contributor Author

Copy link
Contributor

@kgodara912 kgodara912 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buddy build✅. As the package doesn't have the check section, please verify once the functionality of package after installation, for e.g., https://docs.datastax.com/en/developer/python-driver/3.29/getting_started/index.html

%description
A modern, feature-rich and highly-tunable Python client library for Apache Cassandra (2.1+)
using exclusively Cassandra's binary protocol and Cassandra Query Language v3. The driver
supports Python 3.3, 3.4, 3.5, and 3.6.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Azure Linux has higher python version, we can modify documentation to reflect the support.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.


Summary: A modern, feature-rich and highly-tunable Python client library for Apache Cassandra (2.1+)
Name: %{srcname}
Version: 3.25.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The latest version is 3.29, is there any reason to use older one? The older release happened on March 18, 2021 which is very old provided that newer version is available.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

customer has asked 3.25.0 for cassandra-driver. So added that version

@jykanase
Copy link
Contributor Author

jykanase commented Jun 16, 2025

Buddy build✅. As the package doesn't have the check section, please verify once the functionality of package after installation, for e.g., https://docs.datastax.com/en/developer/python-driver/3.29/getting_started/index.html

To verify functionality of cassandra-driver, following script I tried from the DataStax Python Driver - Getting Started.
It prints the Cassandra version from system.local
Got output : ('5.0.0',)

from cassandra.cluster import Cluster, ExecutionProfile, EXEC_PROFILE_DEFAULT
from cassandra.policies import WhiteListRoundRobinPolicy, DowngradingConsistencyRetryPolicy
from cassandra.query import tuple_factory
from cassandra import ConsistencyLevel

profile = ExecutionProfile(
load_balancing_policy=WhiteListRoundRobinPolicy(['127.0.0.1']),
retry_policy=DowngradingConsistencyRetryPolicy(),
consistency_level=ConsistencyLevel.LOCAL_QUORUM,
serial_consistency_level=ConsistencyLevel.LOCAL_SERIAL,
request_timeout=15,
row_factory=tuple_factory
)
cluster = Cluster(execution_profiles={EXEC_PROFILE_DEFAULT: profile})
session = cluster.connect()

print(session.execute("SELECT release_version FROM system.local").one())

@jykanase jykanase force-pushed the topic_cassandra-driver branch from 82f9d64 to 0df78bd Compare June 16, 2025 06:37
@jykanase jykanase force-pushed the topic_cassandra-driver branch from a0c0ef7 to bf24655 Compare June 16, 2025 11:11
Copy link
Contributor

@kgodara912 kgodara912 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buddy build✅. Package installs fine with dependencies. Working is verified by developer. LGTM.

@0xba1a 0xba1a merged commit 7189967 into microsoft:3.0-dev Jun 16, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.0-dev PRs Destined for AzureLinux 3.0 Packaging specs-extended PR to fix SPECS-EXTENDED
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants