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 #65 from eloymg/master
Browse files Browse the repository at this point in the history
Update pyproject.py
  • Loading branch information
MousaZeidBaker committed Oct 5, 2022
2 parents c982a79 + f747790 commit fb95544
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetryup"
version = "0.12.0"
version = "0.12.1"
description = "Update dependencies and bump their version in the pyproject.toml file"
authors = ["Mousa Zeid Baker"]
packages = [
Expand Down
4 changes: 2 additions & 2 deletions src/poetryup/core/pyproject.py
Expand Up @@ -341,7 +341,7 @@ def __get_poetry_version() -> str:

output = cmd_run(["poetry", "--version"], capture_output=True)
# output is: 'Poetry version x.y.z'
return output.rsplit(" ", 1).pop().strip()
return output.rsplit(" ", 1).pop().strip().replace(")", "")

@staticmethod
def __run_poetry_show() -> str:
Expand Down Expand Up @@ -376,6 +376,6 @@ def __run_poetry_add(
elif group == "dev" and self.poetry_version < version_.parse("1.2.0"):
cmd_run(["poetry", "add", *packages, f"--{group}"])
elif self.poetry_version >= version_.parse("1.2.0"):
cmd_run(["poetry", "add", *packages, f"--group {group}"])
cmd_run(["poetry", "add", *packages, "--group", group])
else:
logging.warning(f"Couldn't add package(s) '{packages}'")

0 comments on commit fb95544

Please sign in to comment.