-
Notifications
You must be signed in to change notification settings - Fork 234
pypi tarball contains __pycache__ directory #161
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
Comments
Definitely, thanks for the report. |
I was about to open a PR with a fix for this by adding at the end of
And that did get rid of the But looking more into it, it seems the
This list looks right to me. Am I missing something? @RonnyPfannschmidt any thoughts? |
Looks good, setuptools-scm makes the file list |
You mean that it will automatically include the version controlled files into the sdist? That's brilliant, I didn't know that (there's no mention of it in the docs). 😁 So in summary if one uses |
As discussed in pytest-dev#161, setuptools_scm will automatically add all version controlled files to the package, so MANIFEST.in is no longer needed Fix pytest-dev#161
@nicoddemus manifest excludes are sometimes nice, github/global ci metadata is not usefull for a sdist |
Agreed, but IMHO not worth having to maintain a I'm opening a PR in pytest doing the same in a few minutes. |
Because setuptools_scm already includes all version-controlled files in an sdist, we don't need to maintain a MANIFEST.in file and anymore See pytest-dev/pytest-xdist#161
The tarball (for 1.17.1, for example) hosted on pypi contains a pycache directory inside the testing directory. This can cause problems when trying to run the tests, such as this:
I can just remove the pycache directory, but it would be helpful to just remove it from the tarball.
The text was updated successfully, but these errors were encountered: