最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - How to ask for parameter before installations with Poetry? - Stack Overflow

programmeradmin3浏览0评论

My package's Python version depends on one of its dependencies'. Since it integrates with Databricks, the corresponding runtime environment (DBR) sets a dependency package databricks-connect which then fixes the Python version. That is to say:

DBR 14.3 -> Python 3.11
DBR 15.4 -> Python 3.11

So I'm developing the package using Poetry, but they way I've found it manages dependencies is the other way around... you first fix the Python version, and then adjust the dependencies to match that.

I've tried setting them up with groups and extras, but haven't really solved anything. Most of the time I get conflicts with the dependencies, because the corresponding databricks-connect version conflict with each other.

Is there an approach that works with Poetry, or do I need to look further into other packages such as Tox?

Thank you for your help.

发布评论

评论列表(0)

  1. 暂无评论