-
Notifications
You must be signed in to change notification settings - Fork 11
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
Your wheel is a mess #8
Comments
Hi John. Thank you for sending this along and for the suggestions. I'll get to this later today or tomorrow, and will reference the blogpost in your second link. I'll further fix this in the other packages. Very much appreciate having this pointed out! |
@jwodder, this took an extra bit because I wanted to rearrange the package to an src structure as suggested by you and the others linked in the blogpost (was reading up on that and figuring out testing). I ran check-wheel-contents on the v0.1.1.3 wheel and got the following:
I'll check wheelodex later for an update on this as a final check. Please let me know if there's anything else I'm missing here, and again thank you for taking the time to bring this to my attention! |
@andrewtavis While your wheel no longer contains any superfluous files, I think it may be missing some files. Specifically, I assume you want to include |
@jwodder, yes, most definitely those should be included. Thank you further for the secondary check on all this! Will read the linked blogpost and get to this. |
@jwodder, as the PR says, issue was that I didn't have
A similar run on This is the only package of mine that has necessary data that should go in the sdist, and I've updated all the others with an src structure and the needed Let me know if there are any other issues, and thanks for such a useful package regarding check-wheel-contents! |
The v0.1.1.2 wheel of this project released on PyPI yesterday contains numerous copies of temporary files that shouldn't be a in a wheel; you can see the wheel's file listing here or by running
zipinfo
or a similar program on the.whl
file. I believe that this happened to due to the use offind_namespace_packages()
; because yoursetup.py
calls this function without anexclude
orinclude
argument, it picks up the directories containing.py
files in the temporarybuild/
directory, and so each build of the wheel ends up includingbuild/
while also adding tobuild/
, leading to the problem at hand.My recommendation for fixing this is:
build/
directory from your local repository, perhaps by runninggit clean -dXf
.__init__.py
files, there is no reason to usefind_namespace_packages()
overfind_packages()
, so I would recommend changing what function you use insetup.py
. If you are set on usingfind_namespace_packages()
, you should addinclude=["causeinfer", "causeinfer.*]
to the function's arguments in order to not capture anything outside your code directory. (You should also setinclude
orexclude
even if you do usefind_packages()
in order to exclude yourtests/
directory from the wheel; see here for more information.)The text was updated successfully, but these errors were encountered: