dremio sqlalchemy poetry 模式包管理

比较有意思的是关于poetry setuptools entry_points 配置的,目前基于script 模式是有问题的,结果通过尝试
使用plugin 模式是可以的

参考配置 

[tool.poetry.plugins."sqlalchemy.dialects"]
"dremio.flight" = "sqlalchemy_dremio.flight:DremioDialect_flight"

生成的entry_points.txt 信息

说明

完整代码已经push 到github 了,可以参考

参考资料

https://github.com/rongfengliang/sqlalchemy_dremio
https://python-poetry.org/docs/pyproject/
https://python-poetry.org/docs/plugins/
https://github.com/python-poetry/poetry/issues/2310
https://github.com/python-poetry/poetry/issues/241
https://packaging.python.org/en/latest/specifications/entry-points/
https://docs.sqlalchemy.org/en/20/core/connections.html#registering-new-dialects
https://pip.pypa.io/en/stable/reference/build-system/pyproject-toml/
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/

posted on   荣锋亮  阅读(6)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2022-03-30 temporal 开源微服务编排引擎
2022-03-30 ShedLock 分布式锁服务
2020-03-30 几个不错的国内镜像加速
2018-03-30 使用vigil 监控微服务系统包含可视化界面

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示