Skip to content

Fix setuptools-scm pyproject section name#674

Draft
rtibbles wants to merge 1 commit into
learningequality:mainfrom
rtibbles:fix_setuptools_scm_section
Draft

Fix setuptools-scm pyproject section name#674
rtibbles wants to merge 1 commit into
learningequality:mainfrom
rtibbles:fix_setuptools_scm_section

Conversation

@rtibbles
Copy link
Copy Markdown
Member

@rtibbles rtibbles commented Jun 5, 2026

Summary

Builds produce version 0.0.0 because the section is named [tool.setuptools-scm]; setuptools-scm only recognizes [tool.setuptools_scm]. A 0.0.0 install fails Studio's version check, and uv build in the publish workflow would be affected the same way.

References

Introduced in #663.

Reviewer guidance

uv sync --reinstall-package ricecooker && uv run python -c "import ricecooker; print(ricecooker.__version__)" — prints 0.0.0 before, a real scm version after.

AI usage

Claude Code found the root cause while debugging a chef run and made the one-line fix; I verified the rebuilt version.

🤖 Generated with Claude Code

The section was named [tool.setuptools-scm] (hyphen) but setuptools-scm
only recognizes [tool.setuptools_scm] (underscore), so it never
activated during builds and every build produced version 0.0.0.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant