Skip to content
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

Add project table to pyproject.toml template #690

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhangcheng
Copy link

Description of change

Add project table to pyproject.toml template
Otherwise, uv will fail with error message of
error: No project table found in: <project_root>/pyproject.toml

Documentation

N/A

Tests

Sorry, have no idea how to unit test this.

Otherwise, uv will fail with error message of
error: No `project` table found in: `<project_root>/pyproject.toml`
@vsalvino
Copy link
Contributor

Thanks, this looks good. I'm curious to know why this change is helpful - what is your uv workflow?

@zhangcheng
Copy link
Author

Thanks, this looks good. I'm curious to know why this change is helpful - what is your uv workflow?

When I run the step of uv run python manage.py migrate, I will get the error:

error: No project table found in: <project_root>/pyproject.toml

Per uv's doc on the concept of project, it seems to me that uv expects a minimal project definition.

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.

2 participants