-
Notifications
You must be signed in to change notification settings - Fork 864
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
Remove explicit declare of package-data #4018
base: master
Are you sure you want to change the base?
Conversation
UPDATE: ignore the following, it turns out I didn't understand "package-data" correctly before. In "package-data", we declare files to be included into the source distribution, and after that, with @janosh Would appreciate it if you could give me a hand on this :) |
happy to help. what's the problem exactly? that some cython files aren't included in the wheel? |
Thanks for your reply @janosh :) I originally opened this PR because I thought declaring all files was a bit inefficient (also prone to error if someone add a new file but forgot to update The main cause of my headache is: the sdist need to include But I didn't manage to find a more elegant yet safe way to handle file inclusion/exclusion at this moment (I hope I'm wrong). As of my knowledge, to declare package data:
I sneaked a peek at Jinzhe's DeepMD-kit and it looks like he's using a custom backend altogether. |
could you explain what the downsides of this are? is it a problem/bad practice to have those files in a wheel? seems like it could help with debugging to have the source files around if compiled code is ever causing issues. and the files are small so wouldn't noticeably increase wheel size. |
42dedd0
to
50aeb2c
Compare
50aeb2c
to
a86c035
Compare
prune tests/ | ||
|
||
# Exclude individual files | ||
exclude .* \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rather accidentally include some useless files than missing some necessary ones, so I should be really careful using wildcard for exclusion.
Is there any hidden file needed (at least no from current distributions)?
a86c035
to
47025a6
Compare
Summary
This would include "everything" tracked by Git, including "docs", "tests", ... And need to exclude them via
MANIFEST.in
setuptools-scm
plugin would NOT change the versioning of pymatgenpy.typed
marker file placement: