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

Reuse wheel metadata in sdist #410

Merged
merged 1 commit into from
Jul 4, 2021
Merged

Conversation

layday
Copy link
Member

@layday layday commented May 1, 2021

I was not able to tell if there is a downside to using the same
metadata as the wheel but a cursory investigation revealed
that it's what Poetry does. setuptools omits the requirements
but its PKG-INFO appears to be otherwise identical to the wheel's
METADATA file. flit appears to be a bit of an outlier in creating
a barebones PKG-INFO file.

Closes #409.

I was not able to tell if there is a downside to using the same
metadata as the wheel but a cursory investigation revealed
that it's what Poetry does.  setuptools omits the requirements
but its PKG-INFO appears to be otherwise identical to the wheel's
METADATA file.  flit appears to be a bit of an outlier in creating
a barebones PKG-INFO file.

Closes pypa#409.
@dholth
Copy link
Member

dholth commented May 12, 2021

Seems like a good idea to me.

@henryiii
Copy link
Contributor

This looks much better to me, and would fix twine warnings too.

@takluyver takluyver added this to the 3.3 milestone Jul 4, 2021
@takluyver
Copy link
Member

Thanks! Yes, as far as I know, PKG-INFO is the same format as METADATA.

I think this separate PKG-INFO template was just a holdover from when I rather grudgingly implemented sdist generation, after initially arguing that wheels-only was fine for pure Python packages.

@takluyver takluyver merged commit ce9a6ae into pypa:master Jul 4, 2021
@takluyver takluyver linked an issue Jul 4, 2021 that may be closed by this pull request
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.

SDists produces warnings with twine check PKG-INFO values mangled when using PEP 621 metadata
4 participants