Skip to content

Add project table to pyproject.toml template#690

Merged
vsalvino merged 1 commit intocoderedcorp:mainfrom
zhangcheng:main
May 9, 2025
Merged

Add project table to pyproject.toml template#690
vsalvino merged 1 commit intocoderedcorp:mainfrom
zhangcheng:main

Conversation

@zhangcheng
Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

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

@zhangcheng
Copy link
Copy Markdown
Contributor 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.

@zhangcheng
Copy link
Copy Markdown
Contributor 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.

@vsalvino FYI

@vsalvino vsalvino merged commit dcbd888 into coderedcorp:main May 9, 2025
10 checks passed
@vsalvino vsalvino added this to the 5.0.1 milestone May 9, 2025
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