Interview Prep/Python for DevOps/Environments, dependencies & packaging

How do you keep dependencies up to date without breaking things?

IntermediateConceptEnvironments, dependencies & packaging
Answer
  • Commit a lock file; never float in production.
  • Let Dependabot or Renovate open PRs for updates, grouped (for example all boto3/botocore/boto3-stubs together, since they release almost daily).
  • CI runs tests on every update PR.
  • Run pip-audit (or Trivy/OSV-Scanner) on the lock file to catch known CVEs.
  • pip list --outdated for a quick local view.
All Python for DevOps questions Roadmap: Python for automation

More on Environments, dependencies & packaging