Skip to content
This repository has been archived by the owner on Dec 18, 2022. It is now read-only.

Commit

Permalink
Merge pull request #44 from MousaZeidBaker/fix/lock-file
Browse files Browse the repository at this point in the history
Fix: refresh lock file after changes in pyproject.toml
  • Loading branch information
MousaZeidBaker authored May 9, 2022
2 parents dd47cfa + 8d27985 commit ea4b188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetryup"
version = "0.6.3"
version = "0.6.4"
description = "Update dependencies and bump their version in the pyproject.toml file"
authors = ["Mousa Zeid Baker"]
packages = [
Expand Down
3 changes: 3 additions & 0 deletions src/poetryup/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging
import os
import subprocess
from pathlib import Path

import typer
Expand Down Expand Up @@ -36,6 +37,8 @@ def poetryup(
pyproject = Pyproject(pyproject_str)
pyproject.update_dependencies(latest, skip_exact)
Path("pyproject.toml").write_text(pyproject.dumps())
# refresh the lock file after changes in pyproject.toml
subprocess.run(["poetry", "lock", "--no-update"])


if __name__ == "__main__":
Expand Down

0 comments on commit ea4b188

Please sign in to comment.