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
GitHub actions seems to still be using sdist - should this be adjusted to bdist_wheel? #684
Comments
use the `--wheel` option pyscaffold#684 (related to pyscaffold#404) I noticed in pyscaffold@d21853e it was mentioned that `python -m build --wheel` could be used, and this commit uses the posarg via the `-- --wheel` syntax.
Hi @sgbaird , when using The If your Alternatively you can also review the But in general, I believe that this is not a general problem for all types of packages... |
Thanks for clarifying! I'll close the PR |
Sorry for coming so late to the party. Actually, I hope that @abravalheri : What if we drop it all together by default as @sgbaird suggested? |
Hi @FlorianWilhelm, this is certainly possible, but I would like to share this thread https://discuss.python.org/t/should-sdists-include-docs-and-tests/14578 as a reading material for this discussion. Some distribution repackagers (the ones that create OS-specific packages for ubuntu, arch, homebrew, etc...) really like to work from the source instead of the built wheel. And also there is some level of consensus that submitting Usually we can place these things in a spectrum:
|
Thanks @abravalheri, I didn't know that the intention of sdist is to actually include everything from the repository itself. What if we add a comment that says something like:
or the other way around with wheel and sdist. Just a thought. I am really no expert regarding the practical usage of sdists. |
@FlorianWilhelm I created something along these lines in #694. |
@sgbaird, I think that #694 addresses the main concerns that are captured in this issue. Now, there is an entry in the FAQ explaining the approach for sdists, which also indicates a possible workaround for publishing the package when the As discussed in this thread, If you have files in your repo that are not used (or that are just optional) during development time, you can still use the approach I mentioned here, i.e. If you are using data files, you can also consider using a solution like DVC to avoid storing big files in the git repo. For now I will close this issue because it looks completed from my point of view, but please let me know if you have a different opinion. We can re-open this issue. |
Description of your problem
Please provide a minimal, self-contained, and reproducible example.
The following command would probably work.
See this GitHub actions runner.
I got a "File too large" error when trying to publish to PyPI because files other than what's in
src
are added to the distribution. I came across #404 which mentioned the use ofsdist
vs.bdist_wheel
, where the latter is recommended. Checking the GitHub actions log, I'm seeing thatsdist
is being used during:which calls:
where
build
is a Python package and produces the message:Please provide the full traceback using the
--very-verbose
flag.# [The error output here]
Please provide any additional information below.
I'd like for only
src
files to be added to the distribution by default.Versions and main components
The text was updated successfully, but these errors were encountered: