-
Notifications
You must be signed in to change notification settings - Fork 9
fix: install poetry with pipx when running in docker #74
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #74 +/- ##
=======================================
Coverage 38.62% 38.62%
=======================================
Files 16 16
Lines 769 769
Branches 105 105
=======================================
Hits 297 297
Misses 459 459
Partials 13 13 Continue to review full report at Codecov.
|
4a7f5d4 to
6003db6
Compare
6003db6 to
84385ca
Compare
| RUN poetry install --no-dev | ||
|
|
||
| CMD ["python", "-m", "modmail"] | ||
| CMD ["poetry","run","python", "-m", "modmail"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is needed, it was working perfectly before this, even on railway. If it is needed, do add a comment here explaining why.
| ENV PIP_NO_CACHE_DIR=false \ | ||
| POETRY_VIRTUALENVS_CREATE=false | ||
| POETRY_VIRTUALENVS_IN_PROJECT=true \ | ||
| POETRY_INSTALLER_PARALLEL=false \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats the reason for adding this in? POETRY_INSTALLER_PARALLEL=false
|
Could you also remove |
|
UPDATE: I never tested this before now, but poetry is not needed to install and use importlib.metadata It is fully possible to use I'll be redoing this pull request to best execute this. |
Installs poetry into a venv with pipx for docker.
This means that our dependencies and poetry's dependencies will not conflict.