Skip to content

CHORE: Couple mssql-python to mssql-python-odbc==18.6.2#687

Open
jahnvi480 wants to merge 2 commits into
mainfrom
jahnvi/couple-mssql-python-odbc
Open

CHORE: Couple mssql-python to mssql-python-odbc==18.6.2#687
jahnvi480 wants to merge 2 commits into
mainfrom
jahnvi/couple-mssql-python-odbc

Conversation

@jahnvi480

@jahnvi480 jahnvi480 commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Work Item / Issue Reference

AB#46586


Summary

This pull request updates the packaging configuration in setup.py to improve dependency management and avoid conflicts between distributions. The main changes ensure that the mssql_python_odbc package is no longer included directly in this distribution, but is instead required as an explicit dependency.

Dependency management improvements:

  • Updated the find_packages call to exclude the mssql_python_odbc package and its submodules, preventing duplicate ownership of the same import directory and potential uninstall issues.
  • Added mssql-python-odbc==18.6.2 to install_requires, ensuring the required ODBC driver binaries are installed as a dependency rather than bundled directly.

Add exact-pinned mssql-python-odbc==18.6.2 to install_requires so mssql-python pulls the standalone ODBC Driver 18 package. Loader remains fallback-safe (uses bundled libs when the external package is absent/incomplete).

AB#46586
Copilot AI review requested due to automatic review settings July 22, 2026 10:38
@github-actions github-actions Bot added the pr-size: small Minimal code update label Jul 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR couples mssql-python to the standalone ODBC driver binary distribution by adding a pinned mssql-python-odbc==18.6.2 dependency to setup.py, so the driver binaries can be resolved via a separate wheel as part of the ODBC package-split release.

Changes:

  • Add mssql-python-odbc==18.6.2 to install_requires in setup.py.

Comment thread setup.py
bewithgaurav
bewithgaurav previously approved these changes Jul 22, 2026
@github-actions

github-actions Bot commented Jul 22, 2026

Copy link
Copy Markdown

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

80%


📈 Total Lines Covered: 6759 out of 8369
📁 Project: mssql-python


Diff Coverage

Diff: main...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
mssql_python.pybind.logger_bridge.cpp: 59.2%
mssql_python.pybind.ddbc_bindings.h: 59.9%
mssql_python.pybind.logger_bridge.hpp: 70.8%
mssql_python.pybind.ddbc_bindings.cpp: 76.1%
mssql_python.pybind.connection.connection.cpp: 76.2%
mssql_python.__init__.py: 77.3%
mssql_python.row.py: 77.6%
mssql_python.ddbc_bindings.py: 79.6%
mssql_python.connection.py: 83.6%
mssql_python.logging.py: 85.5%

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread setup.py
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.

3 participants