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

fix parsing of python-platform in settings tomls #12592

Merged
merged 2 commits into from
Apr 1, 2025
Merged

Conversation

Gankra
Copy link
Contributor

@Gankra Gankra commented Mar 31, 2025

serde needs to be told where to put underscores. someone clearly noticed this when adding attributes for schemars, but they need to be present for serde too and then schemars gets them for free.

Strictly speaking this would be a breaking change for anyone who noticed the parsing was messed up and worked around it. So we add aliases for backcompat, at least for a few releases.

Fixes #12590

serde needs to be told where to put underscores. someone clearly noticed this
when adding attributes for schemars, but they need to be present for serde too
and then schemars gets them for free.

Strictly speaking this is a breaking change for anyone who noticed the parsing
was messed up and worked around it. We could add aliases for backcompat if we care.
@Gankra Gankra added the bug Something isn't working label Mar 31, 2025
@Gankra Gankra changed the title fix parsing of python-platform in settings tomls fix parsing of python-platform in settings tomls Mar 31, 2025
@Gankra Gankra added the breaking A breaking change label Mar 31, 2025
Copy link
Member

@charliermarsh charliermarsh left a comment

Choose a reason for hiding this comment

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

Nice, thanks for jumping on this. I think it's probably worth adding an alias and removing it in the next breaking release, just as a best-practice.

@Gankra Gankra removed the breaking A breaking change label Apr 1, 2025
@Gankra
Copy link
Contributor Author

Gankra commented Apr 1, 2025

Aliases added.

@Gankra Gankra merged commit c6e6478 into main Apr 1, 2025
76 checks passed
@Gankra Gankra deleted the gankra/settings-py branch April 1, 2025 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

python-platform docs and uv.toml schema doesn't match command requirements
2 participants