-
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
Files listed in exclude are included when building wheel only #1384
Comments
Does it also happen with the |
Unfortunately yes:
What I notice is, that in case both packages are build the files are added from a tmp folder to the , whereas if only build the wheel it is added from the absolute path to original file. I'm not familiar with the internals of poetry. Could it be, that if both packages are created, the wheel is builded from the sdist packages and if I just create the wheel something like |
Hello, I start trying to read the code and maybe I've found a point where to start. In This is not done in I'm not familiar with Could it be, that if fin swimmer |
Ok, I think I got it. There are two issues. The first is, as guessed above, the overwritten It must be removed. The second problem is in the Instead of: if file in excluded:
continue one have to check if the relative filepath is in excluded: if str(rel_file) in excluded:
continue It's time to learn how to create a pull request ;) |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
-vvv
option).Issue
I have defined a file to be excluded from the build in my
pyproject.toml
. When runningpoetry build
this file is excluded in the sdist and wheel. When runningpoetry build -f wheel
the file is included, runningpoetry build -f sdist
the file is excluded.Way to reproduce:
Add
issue/exclude_me.py
to thepyproject.toml
Run
poetry build -vvv
:Run
poetry build -vvv -f wheel
:Run
poetry build -vvv -f sdist
:The text was updated successfully, but these errors were encountered: