-
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
Packages always included even if they are not listed in packages
#8213
Comments
Fix the |
It's fixed now, sorry about that |
what you are describing is already the default behaviour and you don't have to specify (I suspect you are simply in a virtual environment where the |
Ok thank you, sorry I guess |
@dimbleby just note, it doesnt happen when I use setup.py and the |
Like I had this same problem when I did:
but it was fixed when I did:
but I tried the equivalent in Poetry and it did not fix |
I either have to use |
you've reopened it, but this is still nothing to do with poetry the way editable installs work is by creating a so all you are seeing is - as I said - that the root of your repository is in your sys.path. if you build the wheel you can inspect it and verify that it contains only the files that you expect. Please close. |
if this is important to you then not using poetry is the right choice. I have confirmed that a project using |
please read what I wrote: I specified "a project using my point is that this is nothing to do with poetry - all backends that I can find, including setuptools, then give the same behaviour |
OK, I am sorry. |
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) and have included the output below.Issue
So the main issue I am having is that if I don't use a
src
directory to put my packages in and reference them from there, it will always include modules from my root project that I don't want in the Python build. For example, it always includes bothscripts
andtests
which are not part of the package.By includes, this is what I mean: If I install my project that has this form and I go to my home directory, and I run:
it will print out the path to the project I installed. So I can import
tests
andscripts
from anywhere on my OS, and I am just trying to exclude that from happening.The only way I have gotten it to work is to put the actual package first in a
src
directory and reference it like:But really , I was hoping to not have to change the project structure. I don't want to have to create a src directory
I would prefer to do this:
and have it not include
tests/
andscripts
/.I have tried every combo of
include
andexclude
andpackages
but the only that actually works so far is thesrc
directory.The text was updated successfully, but these errors were encountered: