-
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
poetry install
incorrectly resolve python files in current folder
#6627
Comments
This is a weird edgecase triggered by having a module named Mostly, I think this is user error -- you are clobbering the name of a standard library module by having a file named However, I do think Poetry can do better here. We can't prevent the footgun of clobbering a standard library name, but we can invoke Python with |
Thanks very much for quickly reply. I change |
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
My project is open source, so I directly put repo url in pyproject.toml item.
The project usage is:
cd
into project and runpoetry install
but, the
poetry install
will give me following error:Both
keyword.py
anddata_model.py
is project business logic, and depend onckiptagger
package to work. Poetry resolve those files and I don't know why.Current tree:
After googling and getting nothing, I try to change project directory as
poetry new
:mkdir src && mv *.py src/
, andpoetry install
works!This is happened after Poetry 1.2. If I remember correctly, Poetry 1.1 had worked well. I'm not sure this is a bug or not, or maybe something (ex: pre-releasing note) I missing?
The text was updated successfully, but these errors were encountered: