FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

CHORE: Couple mssql-python to mssql-python-odbc==18.6.2 by jahnvi480 · Pull Request #687 · microsoft/mssql-python · GitHub

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

Merged
Jahnvi Thakkar (jahnvi480) merged 2 commits into
mainfrom
jahnvi/couple-mssql-python-odbc
Jul 23, 2026
Merged

CHORE: Couple mssql-python to mssql-python-odbc==18.6.2#687
Jahnvi Thakkar (jahnvi480) merged 2 commits into
mainfrom
jahnvi/couple-mssql-python-odbc

Conversation

Jahnvi Thakkar (jahnvi480) commented Jul 22, 2026
edited
Loading

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 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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

github-actions Bot commented Jul 22, 2026
edited
Loading

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

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

Comment thread setup.py
Jahnvi Thakkar (jahnvi480) merged commit e6d7918 into main Jul 23, 2026
34 checks passed
Subrata (subrata-ms) added a commit that referenced this pull request Jul 24, 2026
### Work Item / Issue Reference

>
[AB#46627](https://sqlclientdrivers.visualstudio.com/c6d89619-62de-46a0-8b46-70b92a84d85e/_workitems/edit/46627)

-------------------------------------------------------------------
### Summary

Release mssql-python v1.12.0.

Version bump to 1.12.0. Updates `mssql_python/__init__.py`, `setup.py`,
and `PyPI_Description.md`. Bundled `mssql_py_core` bumped from 0.1.6 to
0.1.7.

#### Enhancements

- **Standalone `mssql-python-odbc` package** — ODBC driver binaries are
now also published as a separate, pure-data companion package
`mssql-python-odbc` (import name `mssql_python_odbc`, version 18.6.2).
`mssql-python` declares it in `install_requires` and prefers the
external package at import time, falling back to the still-bundled
`libs/` tree so existing installs keep working (#663, #687).

#### Bug Fixes

- **Bulk copy connection timeout** — `cursor.bulkcopy()` now forwards
the cursor's connection timeout (from `connect(timeout=X)`) into the
underlying `mssql_py_core` connection, instead of always using the
hardcoded 15s default (#650, issue #626).
- **Bulk copy of custom CLR UDT columns** — Fixed `Protocol Error:
Unsupported TDS type for bulk copy: 0xF0` on `cursor.bulkcopy()` into
custom (non-spatial) CLR UDT columns; UDT columns are now mapped to
`varbinary(max)` on the wire (#688, via `mssql_py_core` 0.1.7, issue
#667).

#### Version Bump

- `mssql_python/__init__.py`: `__version__ = "1.12.0"`
- `setup.py`: `version="1.12.0"`
- `PyPI_Description.md`: `## What's new in v1.12.0` section refreshed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL