-
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 fails with [ValueError] No file/folder found for package #512
Comments
I'm experiencing this too. After reading the source for
I added an empty file called |
Same issue here, temporarily solved by adding:
|
Just so I understand correctly and make a proper fix: your project does not follow the structure expected by Poetry and, so, you do not rely on the packaging feature of Poetry. Is that correct? If that's the case, the recent change to I will make a quick fix and get back to you. |
@sdispater I believe this is correct. My project is an application rather than a library, so I'm using Poetry only to manage our dependency lifecycle and not for publishing. I'll add that the poetry docs for install don't say anything about installing the user's library:
|
Actually, I just compared by project structure to the docs and they do match:
My Dockerfile does the following:
|
@sdispater Another use case: We use Poetry to manage a cookiecutter template, which will never have a package of its own. Only the generated projects contain valid Python packages. Being able to set |
Commit a787a95 should fix the issue. However, I think we should have a way of telling Poetry that we don't want the project to be built. |
Hey @sdispater thanks for the quick action on this! I was just wondering, what's the best way to install poetry from github as I'd like to get my CI builds working again :-) |
@sdispater Thanks for the quick commit from me as well! One quick note, the commit comments are inaccurate: I'm hitting this failure with a project that does match the recommended layout. |
Thanks for the fix @sdispater For the record, this works out as a nice way to use
(The script at |
@sdispater this will be indispensable feature! just think of all the projects that are developed in containers
With the things how they are now you enforce people to copy the whole project into the container, which in turn leads to dependencies being installed EVERY single time a code changed. Which is obviously not what we want as developers. Thank you for such prompt reaction and a really nice package. |
@krnr this seems to be fixed in 0.12.3. Here's the relevant part of my Dockerfile:
|
Closing since it has been fixed in the |
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. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: Ubuntu 14.04
Poetry version: 0.12.2
Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/lmk-cc/a3f9268904ab45049360f2ccf378fee4
Issue
Hi there, we are having issues with the latest version of poetry on CircleCI.
Here is the relevant section from the circle config:
The
make install
target runspoetry install -vvv
.It doesn't complete, and I get the following output:
I have tried a number of things including changing the directory where the repo is checked out, changing the package name in
pyproject.toml
, updating the lock file, etc to no avail. I'm not having this issue on MacOS, though...The text was updated successfully, but these errors were encountered: