Skip to content

Poetry update in synth #3565

Answered by mrgrain
mark-w-325 asked this question in Q&A
May 8, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, running the projen default task will check if your pyproject.toml has changed since the last the synth (*), and if that's the case it will run poetry update to ensure that the lockfile is up-to-date. If the file has not changed, projen will run the safe poetry check --lock && poetry install command. This feature cannot be disabled easily.

You can see the logic defined here:

projen/src/python/poetry.ts

Lines 243 to 253 in 8048cd3

public installDependencies() {
this.project.logger.info("Installing dependencies...");
const runtime = new TaskRuntime(this.project.outdir);
// If the pyproject.toml file has changed, update the lockfile prior to installation
if (

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mark-w-325
Comment options

Answer selected by mark-w-325
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants