Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Abeautifulsnow committed Aug 29, 2023
1 parent e095efa commit 72d226b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# pkgu

Find the out-dated packages installed by the Pip tool and update them. Inspired by 👉[depu(Go)](https://github.com/kevwan/depu).
However, `pkgu` supports full and partial updates, which is more convenient and flexible.
However, `pkgu` supports full and partial updates, which is more convenient and flexible. It also supports cross-platform(Windows, linux, macos).

👉 However, only python3.10 and above are available now.

## Usage

Expand All @@ -21,7 +23,7 @@ and then, run `pkgu.py` script.
python3 pkgu.py
```

- Use it through pip
- Use it through pip - ***Highly Recommended***

```bash
pip3 install pkgu
Expand Down
9 changes: 6 additions & 3 deletions pkgu.py
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ def base_option_single(
) -> str:
questions = [self.single(name, message=title, choices=options)]
answers = IQ_Prompt(questions)
return answers.get(name)

if answers:
return answers.get(name)

def ifUpgradeModules(self) -> str:
name = "single"
Expand All @@ -400,9 +402,10 @@ def updateOneOfPackages(
options = [f"{package[0]}@{package[1]}=>{package[2]}" for package in packages]
_name = "multiple"
terminal_package_option = [self.mutiple(_name, message=title, choices=options)]

answers = IQ_Prompt(terminal_package_option)
return answers.get(_name)

if answers:
return answers.get(_name)


class UserOptions(BaseOptions):
Expand Down
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 = "pkgu"
version = "0.0.24"
version = "0.0.25"
description = "Find the out-dated packages installed by the pip tool and update them."
authors = ["Abeautifulsnow <[email protected]>"]

Expand Down

0 comments on commit 72d226b

Please sign in to comment.