dbterd icon indicating copy to clipboard operation
dbterd copied to clipboard

Seeking Guidance: Future Plans for Package Management (Poetry vs uv) in dbterd

Open syou6162 opened this issue 1 year ago • 3 comments

Is your feature request related to a problem? Please describe:

Currently, dbterd's library management is being done using poetry, and CI tests are still executed with poetry. However, a recent commit introduced uv as a potential tool for package management. This has created uncertainty regarding which tool should be used moving forward. Additionally, it's unclear if dependencies need to be maintained in both poetry and uv simultaneously.

Describe the solution you'd like:

  • Clarification on whether dbterd plans to continue using poetry, switch to uv, or use both tools for package management.
  • If the plan is to transition to uv, I would like to contribute by submitting a pull request to replace poetry with uv in the CI process.

Describe alternatives you've considered:

An alternative approach would be to transition entirely to uv and remove poetry to ensure dbterd developers do not face confusion regarding which tool to use. Clear guidelines on managing dependencies with uv alone would help provide a consistent development experience.

Additional context:

syou6162 avatar Jan 01 '25 11:01 syou6162

Thanks @syou6162

I would love to migrate poetry+poe to uv+poe! Actually I tried it months ago but was not successful, the main reason was that uv have not suported to bump version using git tag approach, see https://github.com/astral-sh/uv/issues/6298.

However, if you’d like to give it a try now, you are more than very welcome. The main key use cases of poetry are:

  • Seamlessly manage the dev environment with venv
  • Manage the python libs’ version
  • Release pip package on git tag creation
  • (Optional) Manage the extra packages
  • (poe) Manage tasks — this is not the blocker because we can use poe in uv though

datnguye avatar Jan 02 '25 01:01 datnguye

Just an update on this the version bumping with uv

I found the solution with using PDM dynamic version from SCM tag (or git tag): https://backend.pdm-project.org/metadata/#read-from-scm-tag-supporting-git-and-hg

Will do setup this up with uv soon 🏃

datnguye avatar Apr 10 '25 11:04 datnguye

Add chore: upgrade deps e.g. mike, gh action mainly support to run the current gh workflows successfully

datnguye avatar Apr 24 '25 02:04 datnguye

Hey @syou6162 it should be resolved now with https://github.com/datnguye/dbterd/releases/tag/1.19.0

Closed this issue as a result. Feel free to reopen it if you'd still have something else to tackle. Cheers!

datnguye avatar May 19 '25 04:05 datnguye