Repository navigation
chore: remove unused openpyxl runtime dependency - #1094
Open
loganwang007 wants to merge 1 commit into
Open
loganwang007 wants to merge 1 commit into
loganwang007 wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the removal of the unused Excel dependency.
No open issues 🎉
What changed in this PR
Reduces the connector’s installation footprint by removing the unused Excel dependency, addressing #316.
Changes:
- Removes
openpyxlfrom runtime dependencies. - Removes
openpyxland its transitive dependencyet-xmlfilefrom the lockfile.
| File | Description |
|---|---|
| pyproject.toml | Removes the openpyxl runtime requirement. |
| poetry.lock | Removes both packages and refreshes generated metadata and formatting. |
Review effort: Balanced
loganwang007
marked this pull request as draft
December 4, 2026 03:28
Signed-off-by: Logan Wang <loganwng@gmail.com>
loganwang007
force-pushed
the
fix/remove-openpyxl-dependency
branch
from
December 4, 2026 03:30
689e67e to
d4dff56
Compare
loganwang007
marked this pull request as ready for review
December 4, 2026 03:39
This branch has not been deployed
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #316.
Problem
openpyxl = "^3.0.10"is declared as a required runtime dependency inpyproject.toml, pulling bothopenpyxland its transitive dependencyet-xmlfileinto every installation ofdatabricks-sql-connector.openpyxlwas originally added for SQLAlchemy demo data (tests/sqlalchemy/demo_data/MOCK_DATA.xlsxin #57), which has since been removed from this repository; there are no remaining references toopenpyxlor.xlsxanywhere insrc/ortests/.Fix
openpyxl = "^3.0.10"from[tool.poetry.dependencies]inpyproject.toml.poetry.lockviapoetry lock, which removesopenpyxlandet-xmlfilewithout upgrading any other packages.Tests
rg -i 'excel|\.xlsx|openpyxl' --glob '!poetry.lock').poetry check: passed.poetry install --extras pyarrow: installed cleanly withoutopenpyxl(importlib.util.find_spec('openpyxl') is None).poetry run pytest tests/unit -m 'not realkernel' -q: 1464 passed, 5 skipped, 11 deselected, 388 subtests passed.Notes
openpyxlis no longer used in tests either, it is removed completely rather than moved to[tool.poetry.group.dev.dependencies].databricks-sql-connectortransitively installingopenpyxl(e.g., forpandas.read_excel/to_excel) will need to declareopenpyxlin their own dependencies.Signed-off-by: Logan Wang loganwng@gmail.com