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: require version in dynamic if unset #74

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

henryiii
Copy link
Collaborator

@henryiii henryiii commented Nov 3, 2023

Fix #67.

Will followup later, but this should fix the problem above.

I think the long term fix that would allow the rest of the fields might be as follows: add a new field _value_added. Whenever a user sets a value, value_added records it. Then we can compute set(dynamic) - set(value_added) and if anything is left, that's Metadata 2.2 dynamic. This feels safer than modifing the dynamic field.

@henryiii henryiii force-pushed the henryiii/fix/require-version branch 2 times, most recently from 1904306 to df0f3e3 Compare November 29, 2023 17:11
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@henryiii henryiii merged commit afbd619 into pypa:main Nov 29, 2023
20 checks passed
@henryiii henryiii deleted the henryiii/fix/require-version branch November 29, 2023 17:19
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.

version must not be automatically set to dynamic if [project] table is present
1 participant