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 2024-03-30 08:00  荣锋亮  阅读(3)  评论(0编辑  收藏  举报

导航