-
-
Notifications
You must be signed in to change notification settings - Fork 882
Migrate to uv #5311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Migrate to uv #5311
Conversation
|
@falkoschindler good thing to give this a shot, and I appreciate your bravery and efforts in kick-starting this big change, but we may want to do this at the later end of 3.x? One thing immediately that I need to point out because I did look into this:
Consider |
|
I tried migrate-to-uv before, it works great! |
|
@codingpaula @pascalzauberzeug I wonder if our dynamic versioning will still work. Claude recommended to keep the "poetry-dynamic-versioning" build system. What do you think? Maybe we simply have to try it out. |
|
@falkoschindler I think you just have to install it locally to test it. Since version 3.0.0 is hardcoded, it should be easy to see |
uv pip install -e .
uv run python -c 'import nicegui; print(nicegui.__version__)'Output: This doesn't look right... |
|
@falkoschindler 😞 I will look into it |
|
There seems to be no dynamic versioning in uv |
|
There is, if you use poetry-dynamic-versioning and the poetry build backend, as you already do. Alternatively, you can use |
…v run and uv sync
…yproject.toml now
Motivation
I'd like to see how our project setup would look like based on uv.
Implementation
This PR is almost 100% AI-generated:
pyproject.toml- Converted from Poetry format to PEP 621 standard format:[tool.poetry]to[project][project.optional-dependencies][dependency-groups]section for dev dependencies (uv standard)hatchlinginstead of Poetry.github/workflows/test.yml- Updated to use uv:abatilo/actions-poetry@v4withastral-sh/setup-uv@v7cache: "poetry"(uv handles caching automatically)poetry installtouv sync --all-extras --group devpoetry runtouv run.github/workflows/publish.yml- Updated to use uv:sedinstead ofpoetry versionuv builduv publishwithUV_PUBLISH_TOKENfly.dockerfile- Updated to use uv:poetry installtouv syncwith appropriate flagsuv pip install --systemdevelopment.dockerfile- Updated to use uv:uv sync --all-extrasCONTRIBUTING.md- Updated documentation:pip install -e .touv sync --all-extras --group devpoetry.lock- Deleted (replaced withuv.lock)uv.lock- Generated with all dependencies resolved (164 packages)Progress