Skip to content

Conversation

@bewithgaurav
Copy link
Collaborator

@bewithgaurav bewithgaurav commented Aug 29, 2025

Work Item / Issue Reference

AB#34984

GitHub Issue: #<ISSUE_NUMBER>


Summary

This pull request adds support for SUSE and openSUSE Linux distributions to the project, updating both documentation and code to correctly detect and handle these platforms. It also clarifies and expands the supported platforms list, and ensures the correct driver paths are selected for SUSE in both C++ and Python code.

Platform support and documentation updates:

  • Added SUSE/openSUSE installation instructions and updated the supported platforms list in README.md, removing the previous note about pending SUSE support.
  • Expanded the directory structure documentation in mssql_python/pybind/README.md to include SUSE and Alpine builds for both x86_64 and ARM64 architectures, and listed required libraries for these platforms. [1] [2]

Driver path selection logic:

  • Updated GetDriverPathCpp in ddbc_bindings.cpp to detect SUSE/openSUSE via /etc/SuSE-release or /etc/SUSE-brand and select the correct driver path.
  • Improved Linux distribution detection in test_000_dependencies.py to recognize SUSE/openSUSE and assign the appropriate driver path, with clearer default handling for other distributions. [1] [2]

Copilot AI review requested due to automatic review settings August 29, 2025 06:44
@github-actions github-actions bot added the pr-size: small Minimal code update label Aug 29, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request adds support for SUSE and openSUSE Linux distributions to the mssql-python project. The changes update platform detection logic, driver path selection, and documentation to properly handle these distributions alongside existing supported platforms.

  • Updated Linux distribution detection to recognize SUSE/openSUSE via system files
  • Modified driver path selection logic in both Python and C++ code to include SUSE platform
  • Enhanced documentation to include SUSE installation instructions and directory structure

Reviewed Changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated 2 comments.

File Description
tests/test_000_dependencies.py Updated Linux distribution detection to recognize SUSE and changed default from "debian_ubuntu" to "ubuntu"
mssql_python/pybind/ddbc_bindings.cpp Added SUSE detection logic in C++ driver path selection function
mssql_python/pybind/README.md Expanded documentation to include SUSE and Alpine directory structures and required libraries
README.md Added SUSE installation instructions and updated supported platforms list

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added pr-size: small Minimal code update and removed pr-size: small Minimal code update labels Aug 29, 2025
@github-actions github-actions bot added pr-size: small Minimal code update and removed pr-size: small Minimal code update labels Aug 29, 2025
@github-actions github-actions bot added pr-size: small Minimal code update and removed pr-size: small Minimal code update labels Aug 29, 2025
@bewithgaurav bewithgaurav merged commit 940597e into main Aug 29, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-size: small Minimal code update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants