[sqlalchemy-spanner] Make alembic an optional extra dependency
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
從 packages/sqlalchemy-spanner/setup.py 開始,並將其相依性設定與 issue 中 sqlalchemy-bigquery 的 extras 範例進行比較。檢查套件中繼資料或相關測試,以確認 Alembic 不再是預設必需項,並且可透過 alembic extra 使用。考量發布時程時,請記住所述的相容性影響。
由索引模型根據 Issue 內容生成。
描述
Feature / Enhancement Description
Currently, alembic is listed as a mandatory dependency in packages/sqlalchemy-spanner/setup.py:
dependencies = [
"sqlalchemy>=1.1.13",
"google-cloud-spanner>=3.55.0",
"alembic",
]
However, a database dialect does not inherently require a schema migration tool. Many applications use sqlalchemy-spanner strictly for SQLAlchemy Core or ORM query execution (e.g. data engineering pipelines, read-only analytics, services managing schema via Terraform or Spanner DDL).
In sqlalchemy-bigquery, alembic is already modeled as an optional extra rather than a core dependency:
extras = {
"alembic": ["alembic"],
...
}
Proposed Changes
- Move
alembicfrominstall_requires/dependenciestoextras_requireinsetup.py:extras = { "tracing": [...], "alembic": ["alembic >= 1.0.0, < 2.0.0"], } - Note that moving
alembicto an extra is potentially a breaking change for existing users who rely onpip install sqlalchemy-spannerto install thealembicCLI tool, so this should be scheduled for an appropriate minor or major version release.
Related
- Pull Request https://github.com/googleapis/google-cloud-python/pull/18570 already decouples dialect imports by guarding Alembic-specific
@compileshooks (HAS_ALEMBIC_INSTALLED), providing the prerequisite code separation for this transition.
- 主要語言
- Python
- 星號
- 5.4k
- 分支
- 1.8k
- 平均合併
- 2 天 18 小時
- 30 天內合併 PR
- 148
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
googleapis/google-cloud-python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 82/100
googleapis/google-cloud-python#18532 ·
維護者通常 1 天內回覆
-
auth: call_client_cert_callback() discards passphrase for encrypted keys可能已有人在做 @kwy404 於 7 天前認領。 未關閉
難度 1/5 1-3 小時 新手友好度 92/100
googleapis/google-cloud-python#18467 ·
維護者通常 1 天內回覆
-
auth: `impersonated_credentials` loses `subject` on copy, so `with_scopes()` and `with_quota_project()` turn off domain wide delegation可能已有人在做 @Om-singhaI 於 19 天前認領。 未關閉auth priority: p2 type: bug
難度 2/5 1-3 小時 新手友好度 88/100
googleapis/google-cloud-python#18428 ·
維護者通常 1 天內回覆
-
priority: p2 type: bug
難度 2/5 1-3 小時 新手友好度 72/100
googleapis/google-cloud-python#18375 · 1 則留言 ·
維護者通常 1 天內回覆
-
ci: enable --strict flag in presubmit twine_check可能已有人在做 @ohmayr 於 8 天前認領。 未關閉
難度 1/5 1 小時以內 新手友好度 76/100
googleapis/google-cloud-python#18339 · 1 則留言 · 已指派 1 人 ·
維護者通常 1 天內回覆
查看 googleapis/google-cloud-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
NVIDIA/earth2studio#1241 ·
維護者通常 3 天內回覆
-
docs(types): update the collection binding note now that typed collections shipped in pycubrid 1.9.0未關閉documentation priority: low size: S
難度 2/5 1-3 小時 新手友好度 75/100
cubrid-lab/sqlalchemy-cubrid#768 ·
維護者通常 1 天內回覆
-
bug help wanted
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
documentation
難度 1/5 1 小時以內 新手友好度 65/100
ansys/pydpf-core#3547 ·
維護者通常 1 天內回覆
-
good first issue
難度 2/5 1-3 小時 新手友好度 78/100
OktoLabsAI/okto-pulse#114 ·
維護者通常 1 天內回覆