Skip to content

Optional fields are really optional#138

Merged
jaraco merged 3 commits intopypa:mainfrom
wimglenn:optional-metadata
May 9, 2022
Merged

Optional fields are really optional#138
jaraco merged 3 commits intopypa:mainfrom
wimglenn:optional-metadata

Conversation

@wimglenn
Copy link
Copy Markdown
Contributor

  • make all fields documented as optional in the spec truly optional (and don't spam warnings when they've been omitted)

  • stop coercing missing values to the string "UNKNOWN"

Note: the setuptools integration is expected to fail, because this PR needs to be coordinated with changes in setuptools/dist.py too. I'll prepare a separate PR on pypa/setuptools for that part.

…nt warn when omitted), and stop coercing missing values to the string "UNKNOWN"
@jaraco
Copy link
Copy Markdown
Member

jaraco commented Apr 30, 2022

Overall, this looks good to me. Is there any way this change could be rolled out in such a way that it doesn't have to be synchronized with Setuptools? Perhaps to have a PR land there first? I'm concerned the coordination with Setuptools may be indicative of a compatibility issue with stdlib distutils. I'll check the Setuptools PR soon.

@wimglenn wimglenn force-pushed the optional-metadata branch from 687db4c to 2c34a36 Compare April 30, 2022 02:50
@wimglenn
Copy link
Copy Markdown
Contributor Author

@jaraco IIUC you want the changes in setuptools to work regardless of whether it calls to pypa/distutils or stdlib distutils?

@jaraco
Copy link
Copy Markdown
Member

jaraco commented May 1, 2022

@jaraco IIUC you want the changes in setuptools to work regardless of whether it calls to pypa/distutils or stdlib distutils?

That's correct. Setuptools still supports using stdlib distutils, so any change there will need to support both. If this change requires Setuptools to drop support for stdlib distutils, the change will have to wait until that happens (maybe this year).

@wimglenn
Copy link
Copy Markdown
Contributor Author

wimglenn commented May 2, 2022

@jaraco It is not necessary to drop support for stdlib distutils. More details here.

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