-
Notifications
You must be signed in to change notification settings - Fork 373
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
fix(poetry): maintain frozen lockfile for install task #3321
Conversation
Change the poetry install task from `poetry update` to `poetry lock --no-update && poetry install` to ensure that the lockfile is honoured in CI/CD pipelines. Post synthesis, run a "mutable install" (`poetry lock && poetry install`) task which updates the lockfile, if the pyproject.toml file has changed (ie dependencies were changed). Add a new `upgrade` task which runs `poetry update` to update dependencies. Fixes projen#2913
ef6a6f1
to
87ca38a
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #3321 +/- ##
==========================================
- Coverage 96.29% 96.28% -0.01%
==========================================
Files 191 191
Lines 36750 36780 +30
Branches 3440 3441 +1
==========================================
+ Hits 35388 35415 +27
- Misses 1362 1365 +3 ☔ View full report in Codecov by Sentry. |
Nice one! Can we swap the naming around here to mirror what we have for Node?
|
Thanks! Good call - updated! 😄 |
Thanks Momo! 😄 |
…docs Fix the `pdk upgrade` command to call the projen task rather than the command for the underlying package manager. Add upgrade-deps taks for the python and java monorepos for consistency, which spawn the "upgrade" tasks (if present) for subprojects. Added documentation for upgrading dependencies. This also updates the projen version which includes a fix to ensure the python install task doesn't upgrade dependencies: projen/projen#3321 Fixes #653
…docs Fix the `pdk upgrade` command to call the projen task rather than the command for the underlying package manager. Add `upgrade-deps` tasks for the Python and Java monorepos for consistency, which spawn the "upgrade" tasks (if present) for subprojects. Also update the `upgrade-deps` task for the TypeScript monorepo to spawn the "upgrade" task for any non-node project. Added documentation for upgrading dependencies. This also updates the projen version which includes a fix to ensure the python install task doesn't upgrade dependencies: projen/projen#3321 Fixes #653
Change the poetry install task from
poetry update
topoetry lock --no-update && poetry install
to ensure that the lockfile is honoured in CI/CD pipelines.Post synthesis, run a "mutable install" (
poetry lock && poetry install
) task which updates the lockfile, if the pyproject.toml file has changed (ie dependencies were changed).Add a new
upgrade
task which runspoetry update
to update dependencies.Fixes #2913
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.