You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RUN pip install poetry
COPY poetry.lock .
COPY pyproject.toml .
RUN poetry install
COPY appmodule ./appmodule
This is a nice technique to have Docker cache the dependencies as long as they don't change. This worked perfectly well until recently. The newest versions of poetry complain:
[ValueError]
No file/folder found for package apppackage
Exception trace:
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/cleo/application.py in run() at line 94
status_code = self.do_run(input_, output_)
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/poetry/console/application.py in do_run() at line 88
return super(Application, self).do_run(i, o)
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/cleo/application.py in do_run() at line 197
status_code = command.run(input_, output_)
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/poetry/console/commands/command.py in run() at line 77
return super(BaseCommand, self).run(i, o)
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/cleo/commands/base_command.py in run() at line 146
status_code = self.execute(input_, output_)
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/cleo/commands/command.py in execute() at line 107
return self.handle()
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/poetry/console/commands/install.py in handle() at line 67
builder = SdistBuilder(self.poetry, NullEnv(), NullIO())
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/poetry/masonry/builders/builder.py in __init__() at line 35
includes=self._package.include,
/Users/michael/.pyenv/versions/3.7.0/lib/python3.7/site-packages/poetry/masonry/utils/module.py in __init__() at line 51
raise ValueError("No file/folder found for package {}".format(name))
It appears I can add
RUN mkdir photoworld_server && touch apppackage/__init__.py
to my Dockerfile to make it work again, but it seems like a hack and I think poetry should support this natively.
The text was updated successfully, but these errors were encountered:
I do this in my Dockerfile:
This is a nice technique to have Docker cache the dependencies as long as they don't change. This worked perfectly well until recently. The newest versions of poetry complain:
It appears I can add
to my Dockerfile to make it work again, but it seems like a hack and I think poetry should support this natively.
The text was updated successfully, but these errors were encountered: