Skip to content
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

Support poetry install --only #2019

Open
shadyelgewily-slimstock opened this issue Jun 12, 2023 · 2 comments · May be fixed by #2485
Open

Support poetry install --only #2019

shadyelgewily-slimstock opened this issue Jun 12, 2023 · 2 comments · May be fixed by #2485
Assignees
Labels
enhancement New feature or request

Comments

@shadyelgewily-slimstock
Copy link

shadyelgewily-slimstock commented Jun 12, 2023

Feature Request

Currently the script PythonBashBuildSnippet.sh.tpl assumes that pyproject.toml implies that the user always intends to use 'poetry run --no-env'. First of all, 'poetry install --no-env' is deprecated (https://python-poetry.org/docs/cli/#install) in favor of, for example, poetry install --only no-dev. Secondly we have a use case where we deploy a monorepo containing many dependencies using github actions to an Azure App, which uses Oryx as the build system. We have a smaller dependency group defined in the pyproject.toml, which contains only the dependencies that are needed to the deployed application. So, in this case, what we would like to run is poetry install --only on this subset of dependencies.

It would be nice if we can set an environment variable that allows to specify additional poetry install arguments. The documentation makes no mention of this and the PythonBashBuildSnippet.sh.tpl seems to indicate that this is not an option.

I think this would be a useful feature to support for users who deploy an entire monorepo, but only wish to run a specific package from that monorepo as an Azure App.

@snehapar9 snehapar9 added the enhancement New feature or request label Jun 12, 2023
@snehapar9
Copy link
Contributor

snehapar9 commented Jun 12, 2023

Thanks for reaching out @shadyelgewily-slimstock! We added this work item - User Story 1834257: Customer Request : Support poetry install --only for future development.

@cm-halfspace
Copy link

Any news on this? I do not have access to the link that @snehapar9 sent.

@raffifu raffifu linked a pull request Jul 29, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants