Skip to content

Poetry -> UV#30

Open
GefMar wants to merge 1 commit intomasterfrom
uv_integration
Open

Poetry -> UV#30
GefMar wants to merge 1 commit intomasterfrom
uv_integration

Conversation

@GefMar
Copy link
Copy Markdown

@GefMar GefMar commented Feb 12, 2026

del: poetry
add: uv
update: pre-commit hooks

@GefMar GefMar requested a review from s3rius February 12, 2026 20:10
@GefMar GefMar force-pushed the uv_integration branch 2 times, most recently from fde4756 to 19fb288 Compare April 1, 2026 20:06
pyproject.toml Outdated
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
requires = ["uv_build>=0.9.16,<0.10.0"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is 0.11.3 version already: https://github.com/astral-sh/uv
Let's pin something like this requires = ["uv_build>=0.11.0,<0.12.0"]

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIX

pyproject.toml Outdated
]
exclude = [".venv/"]
lint.mccabe = { max-complexity = 10 }
exclude = [".venv/"]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's always excluded as far as you have it in .gitignore: https://docs.astral.sh/ruff/settings/#respect-gitignore

So you can delete this line completely

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIX

with:
version: "latest"
enable-cache: true
cache-suffix: release-py3.14
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just specify python-version here instead of installing it in the next step: https://github.com/astral-sh/setup-uv#python-version

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix

python-version: "3.11"
cache: "poetry"
persist-credentials: false
- uses: actions/setup-python@v5
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you don't need separate setup-python action. Because you already use astral-sh/setup-uv with python-version in the next step.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step is required — I checked it. Because UV_NO_MANAGED_PYTHON is used, uv sync cannot find a Python interpreter and the workflow fails.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIX

run: poetry install --all-extras
env:
UV_NO_MANAGED_PYTHON: 1
run: uv sync --all-extras --python 3.14
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to call uv sync with --python 3.14. astral-sh/setup-uv will put UV_PYTHON and uv will use it till the rest of this pipeline

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Am I correct in understanding that there is no need to use UV_NO_MANAGED_PYTHON?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FIX

@GefMar GefMar requested a review from danfimov April 2, 2026 23:09
fix: lint steps
fix: uv build version
update: Release workflow
update: test workflow
update: dependencies
fix: lint
fix: action
update: git action
del: poetry
add: uv
update: pre-commit hooks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants