-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can not exclude package data file only for the wheel #3380
Comments
At the moment this syntax isn't support. fin swimmer |
@sinoroc Have you found a workaround for this yet? I am need of a similar strategy but it seems like no files are excluded conditional on the type of packaging. |
A workaround I came up with is to just only include the necessary files only in |
@zoj613 What would you change in my example to make it work with your workaround? |
@sinoroc Here is how I would write the
This approached worked for me. Basically, include everything thats required by both distributions in |
At this point... What is the difference between |
my guess is that |
But, |
Yeah I guess the maintainers will be better at explaining this than me. I only just worked from my own understanding based on trial and error. Maybe the functionality of these needs better documentation. |
The wheel should really only include python package files, and anything outside of there should be excluded by default. This is how setuptools works with I ran into this while trying to convert Pyramid's scaffolds into poetry and there is not a way right now to get the sdist/wheel to match with how they are built with setuptools because the wheel includes lots of erroneous files like |
Related: #2809 |
Is there any way to make the exclude command work without any hacks? doing |
No. There's a
|
@MarcoSeebold, the previous method I suggested works and having the shared library install outside the project root isnt a big deal since it loads just when importing the package. |
Running @sinoroc's example on poetry 1.1.11, I find that the
This is a different output than posted at the top of this issue, so I'm not sure what changed to produce this behavior. This appears tied to some VCS/.gitignore functionality. Removing the
appears to correctly use the
But including The only workaround is to explicitly name the files in |
There seems to be an issue when trying to exclude package data files of the wheel only.
Example project here: https://github.com/sinoroc/poetry-gh-2015
Project file structure:
All files are in the git repository except
*.bin
data files (supposed to be a build artifact).We want the
*.src
data files andCHANGELOG.rst
in the sdist only. We want*.bin
data files in the wheel only. We want*.all
data files in both the sdist and the wheel. We do not want any of the.not
data files in the distributions.We also want the
test
package, but only in the sdist..gitignore
pyproject.toml
:Content of the sdist:
Content of the wheel:
Somehow the
thing/data/file.src
appears in the wheel, which is unexpected and not what we want.Example project: https://github.com/sinoroc/poetry-gh-2015
The text was updated successfully, but these errors were encountered: