updapips 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- updapips-0.1.0/LICENSE +21 -0
- updapips-0.1.0/PKG-INFO +73 -0
- updapips-0.1.0/README.md +41 -0
- updapips-0.1.0/pyproject.toml +46 -0
- updapips-0.1.0/setup.cfg +4 -0
- updapips-0.1.0/src/__init__.py +3 -0
- updapips-0.1.0/src/updapips/__init__.py +0 -0
- updapips-0.1.0/src/updapips/cli.py +98 -0
- updapips-0.1.0/src/updapips/updapips.py +55 -0
- updapips-0.1.0/src/updapips/upgrade_pip_pkgs.py +59 -0
- updapips-0.1.0/src/updapips.egg-info/PKG-INFO +73 -0
- updapips-0.1.0/src/updapips.egg-info/SOURCES.txt +14 -0
- updapips-0.1.0/src/updapips.egg-info/dependency_links.txt +1 -0
- updapips-0.1.0/src/updapips.egg-info/entry_points.txt +2 -0
- updapips-0.1.0/src/updapips.egg-info/requires.txt +5 -0
- updapips-0.1.0/src/updapips.egg-info/top_level.txt +2 -0
updapips-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ed Waldner
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
updapips-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: updapips
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Upgrade outdated python packages via PIP
|
|
5
|
+
Author-email: Ed Waldner <waldevburry@proton.me>
|
|
6
|
+
Maintainer-email: Ed Waldner <waldevburry@proton.me>
|
|
7
|
+
Project-URL: Homepage, https://github.com/ew98/updapips
|
|
8
|
+
Project-URL: Documentation, https://github.com/ew98/updapips/wiki/UpDaPips
|
|
9
|
+
Project-URL: Issues, https://github.com/ew98/updapips/issues
|
|
10
|
+
Keywords: util,utility
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Natural Language :: English
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Operating System :: OS Independent
|
|
22
|
+
Classifier: Topic :: Utilities
|
|
23
|
+
Requires-Python: >=3.9
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: argcomplete
|
|
27
|
+
Requires-Dist: distro
|
|
28
|
+
Requires-Dist: quickcolor
|
|
29
|
+
Requires-Dist: delayviewer
|
|
30
|
+
Requires-Dist: showexception
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# UpDaPips
|
|
34
|
+
|
|
35
|
+
**UpDaPips** is a command line package to upgrade outdated PIP packages in the current environment
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
|
|
39
|
+
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install **updapips**.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install updapips
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## CLI Utility
|
|
46
|
+
|
|
47
|
+
The following CLI is provided in this package.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
╰─ bkmeup -h ─╯
|
|
51
|
+
usage: bkmeup [-h] [--version] {show.env.info,show.dflt.bkup.list,create.archive} ...
|
|
52
|
+
|
|
53
|
+
-.-.-. BkMeUp Shell Config archiver & bkup!
|
|
54
|
+
|
|
55
|
+
positional arguments:
|
|
56
|
+
{show.env.info,show.dflt.bkup.list,create.archive}
|
|
57
|
+
show.env.info show system environment info
|
|
58
|
+
show.dflt.bkup.list
|
|
59
|
+
show list of default items to archive/bkup
|
|
60
|
+
create.archive accumulate shell config files if they exist and archive them
|
|
61
|
+
|
|
62
|
+
options:
|
|
63
|
+
-h, --help show this help message and exit
|
|
64
|
+
--version top-level package version
|
|
65
|
+
|
|
66
|
+
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
|
73
|
+
|
updapips-0.1.0/README.md
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# UpDaPips
|
|
2
|
+
|
|
3
|
+
**UpDaPips** is a command line package to upgrade outdated PIP packages in the current environment
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install **updapips**.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install updapips
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## CLI Utility
|
|
14
|
+
|
|
15
|
+
The following CLI is provided in this package.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
╰─ bkmeup -h ─╯
|
|
19
|
+
usage: bkmeup [-h] [--version] {show.env.info,show.dflt.bkup.list,create.archive} ...
|
|
20
|
+
|
|
21
|
+
-.-.-. BkMeUp Shell Config archiver & bkup!
|
|
22
|
+
|
|
23
|
+
positional arguments:
|
|
24
|
+
{show.env.info,show.dflt.bkup.list,create.archive}
|
|
25
|
+
show.env.info show system environment info
|
|
26
|
+
show.dflt.bkup.list
|
|
27
|
+
show list of default items to archive/bkup
|
|
28
|
+
create.archive accumulate shell config files if they exist and archive them
|
|
29
|
+
|
|
30
|
+
options:
|
|
31
|
+
-h, --help show this help message and exit
|
|
32
|
+
--version top-level package version
|
|
33
|
+
|
|
34
|
+
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
|
41
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools >= 81.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "updapips"
|
|
7
|
+
description = "Upgrade outdated python packages via PIP"
|
|
8
|
+
readme = {file = "README.md", content-type = "text/markdown"}
|
|
9
|
+
authors = [{name = "Ed Waldner", email = "waldevburry@proton.me"},]
|
|
10
|
+
maintainers = [{name = "Ed Waldner", email = "waldevburry@proton.me"},]
|
|
11
|
+
# dynamic = ["version"]
|
|
12
|
+
version = "0.1.0"
|
|
13
|
+
requires-python = ">=3.9"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"argcomplete",
|
|
16
|
+
"distro",
|
|
17
|
+
"quickcolor",
|
|
18
|
+
"delayviewer",
|
|
19
|
+
"showexception",
|
|
20
|
+
]
|
|
21
|
+
keywords = [
|
|
22
|
+
"util", "utility"
|
|
23
|
+
]
|
|
24
|
+
classifiers = [
|
|
25
|
+
"Development Status :: 3 - Alpha",
|
|
26
|
+
"Environment :: Console",
|
|
27
|
+
"Intended Audience :: Developers",
|
|
28
|
+
"License :: OSI Approved :: MIT License",
|
|
29
|
+
"Natural Language :: English",
|
|
30
|
+
"Programming Language :: Python :: 3.9",
|
|
31
|
+
"Programming Language :: Python :: 3.10",
|
|
32
|
+
"Programming Language :: Python :: 3.11",
|
|
33
|
+
"Programming Language :: Python :: 3.12",
|
|
34
|
+
"Programming Language :: Python :: 3.13",
|
|
35
|
+
"Operating System :: OS Independent",
|
|
36
|
+
"Topic :: Utilities",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.urls]
|
|
40
|
+
Homepage = "https://github.com/ew98/updapips"
|
|
41
|
+
Documentation = "https://github.com/ew98/updapips/wiki/UpDaPips"
|
|
42
|
+
Issues = "https://github.com/ew98/updapips/issues"
|
|
43
|
+
|
|
44
|
+
[project.scripts]
|
|
45
|
+
updapips = "updapips.cli:cli"
|
|
46
|
+
|
updapips-0.1.0/setup.cfg
ADDED
|
File without changes
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# ------------------------------------------------------------------------------------------------------
|
|
3
|
+
# -- CLI for cleaning __pycache__ nested folders from specified root path
|
|
4
|
+
# ------------------------------------------------------------------------------------------------------
|
|
5
|
+
# ======================================================================================================
|
|
6
|
+
|
|
7
|
+
# PYTHON_ARGCOMPLETE_OK
|
|
8
|
+
import argcomplete, argparse
|
|
9
|
+
|
|
10
|
+
import os
|
|
11
|
+
import sys
|
|
12
|
+
|
|
13
|
+
from quickcolor.color_def import color
|
|
14
|
+
from showexception.showexception import exception_details
|
|
15
|
+
|
|
16
|
+
from .updapips import get_pip_list_pkgs, get_pip_list_outdated_pkgs
|
|
17
|
+
from .updapips import upgrade_pip_pkg
|
|
18
|
+
|
|
19
|
+
# ------------------------------------------------------------------------------------------------------
|
|
20
|
+
# ------------------------------------------------------------------------------------------------------
|
|
21
|
+
|
|
22
|
+
def cli():
|
|
23
|
+
try:
|
|
24
|
+
parser = argparse.ArgumentParser(
|
|
25
|
+
description=f'{"-." * 3} {color.CBLUE2}Update PIPs {color.CYELLOW2}utility!{color.CEND}',
|
|
26
|
+
epilog='-.' * 40)
|
|
27
|
+
|
|
28
|
+
parser.add_argument('--version', action="store_true", help='top-level package version')
|
|
29
|
+
|
|
30
|
+
subparsers = parser.add_subparsers(dest='cmd')
|
|
31
|
+
|
|
32
|
+
p_showAllPipPkgs = subparsers.add_parser('show.all.pip.pkgs',
|
|
33
|
+
help='show all PIP packages installed in current virt env')
|
|
34
|
+
|
|
35
|
+
p_showOutdatedPipPkgs = subparsers.add_parser('show.outdated.pip.pkgs',
|
|
36
|
+
help='show PIP packages in virtual env that are outdated')
|
|
37
|
+
|
|
38
|
+
p_upgradePipPkgs = subparsers.add_parser('upgrade.pips',
|
|
39
|
+
help='updgrade all outdated PIP pkgs')
|
|
40
|
+
|
|
41
|
+
argcomplete.autocomplete(parser)
|
|
42
|
+
args = parser.parse_args()
|
|
43
|
+
# print(args)
|
|
44
|
+
|
|
45
|
+
if len(sys.argv) == 1:
|
|
46
|
+
parser.print_help(sys.stderr)
|
|
47
|
+
sys.exit(0)
|
|
48
|
+
|
|
49
|
+
if args.version:
|
|
50
|
+
from importlib.metadata import version
|
|
51
|
+
import bkmeup
|
|
52
|
+
print(f'{color.CGREEN}{os.path.basename(sys.argv[0])}{color.CEND} resides in package ' + \
|
|
53
|
+
f'{color.CBLUE2}{updapips.__package__}{color.CEND} ' + \
|
|
54
|
+
f'version {color.CVIOLET2}{version("updapips")}{color.CEND} ...')
|
|
55
|
+
sys.exit(0)
|
|
56
|
+
|
|
57
|
+
if args.cmd == 'show.all.pip.pkgs':
|
|
58
|
+
pkgs = get_pip_list_pkgs()
|
|
59
|
+
print(f"There are {color.CYELLOW2}{len(pkgs)}{color.CEND} PIP packages installed in this environment!\n")
|
|
60
|
+
for idx, pkg in enumerate(pkgs):
|
|
61
|
+
print(f" --> {color.CWHITE2}{idx+1:>3}. {color.CBLUE2}{pkg['name']:<30}{color.CEND} " + \
|
|
62
|
+
f"ver: {color.CYELLOW2}{pkg['version']:<15}{color.CEND}", end=" ", flush=True)
|
|
63
|
+
if 'editable_project_location' in pkg.keys():
|
|
64
|
+
print(f"{color.CGREEN}{pkg['editable_project_location']:<30}{color.CEND}")
|
|
65
|
+
else:
|
|
66
|
+
print()
|
|
67
|
+
|
|
68
|
+
elif args.cmd == 'show.outdated.pip.pkgs':
|
|
69
|
+
pkgs = get_pip_list_outdated_pkgs()
|
|
70
|
+
if len(pkgs):
|
|
71
|
+
print(f" ... Found {color.CYELLOW2}{len(pkgs)}{color.CEND} PIP packages that can be upgraded!\n")
|
|
72
|
+
for idx, pkg in enumerate(pkgs):
|
|
73
|
+
print(f" --> {color.CWHITE2}{idx+1:>3}. {color.CYELLOW2}{pkg['name']:<30}{color.CEND} " + \
|
|
74
|
+
f"installed: {color.CRED2}{pkg['version']:<15}{color.CEND} " + \
|
|
75
|
+
f"available: {color.CCYAN2}{pkg['latest_version']:<15}{color.CEND}", end=" ", flush=True)
|
|
76
|
+
if 'editable_project_location' in pkg.keys():
|
|
77
|
+
print(f"{color.CGREEN}{pkg['editable_project_location']:<30}{color.CEND}")
|
|
78
|
+
else:
|
|
79
|
+
print()
|
|
80
|
+
else:
|
|
81
|
+
print(f"{color.CGREEN}There are no PIP packages in this environment that need to be upgraded!{color.CEND}")
|
|
82
|
+
|
|
83
|
+
elif args.cmd == 'upgrade.pips':
|
|
84
|
+
pkgs = get_pip_list_outdated_pkgs()
|
|
85
|
+
if len(pkgs):
|
|
86
|
+
for pkg in pkgs:
|
|
87
|
+
upgrade_pip_pkg(pkg['name'], pkg['version'], pkg['latest_version'])
|
|
88
|
+
print(f"\n .. Finished upgrade run for {color.CYELLOW2}{len(pkgs)} packages{color.CEND}!\n")
|
|
89
|
+
|
|
90
|
+
else:
|
|
91
|
+
print(f"{color.CGREEN}There are no PIP packages in this environment that need to be upgraded!{color.CEND}")
|
|
92
|
+
|
|
93
|
+
except Exception as e:
|
|
94
|
+
exception_details(e, "UpDaPIPs CLI", True)
|
|
95
|
+
|
|
96
|
+
# ------------------------------------------------------------------------------------------------------
|
|
97
|
+
# ------------------------------------------------------------------------------------------------------
|
|
98
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# ------------------------------------------------------------------------------------------------------
|
|
3
|
+
# -- update PIP packages
|
|
4
|
+
# ------------------------------------------------------------------------------------------------------
|
|
5
|
+
# ======================================================================================================
|
|
6
|
+
|
|
7
|
+
import json
|
|
8
|
+
import sys
|
|
9
|
+
import subprocess
|
|
10
|
+
|
|
11
|
+
from quickcolor.color_def import color
|
|
12
|
+
from delayviewer.spinner import handle_spinner
|
|
13
|
+
|
|
14
|
+
# ------------------------------------------------------------------------------------------------------
|
|
15
|
+
# ------------------------------------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
def get_pip_list_pkgs() -> list:
|
|
18
|
+
result = subprocess.run([sys.executable, '-m', 'pip', 'list', '--format=json'], capture_output=True, text=True)
|
|
19
|
+
return json.loads(result.stdout)
|
|
20
|
+
|
|
21
|
+
# ------------------------------------------------------------------------------------------------------
|
|
22
|
+
|
|
23
|
+
@handle_spinner
|
|
24
|
+
def get_pip_list_outdated_pkgs(debug: bool = False, spinner = None) -> list:
|
|
25
|
+
spinner.start(f" -- {color.CYELLOW2}Retrieving outdated packages{color.CEND} ...")
|
|
26
|
+
result = subprocess.run([sys.executable, '-m', 'pip', 'list', '--outdated', '--format=json'], capture_output=True, text=True)
|
|
27
|
+
spinner.stop()
|
|
28
|
+
pkgList = json.loads(result.stdout)
|
|
29
|
+
if debug:
|
|
30
|
+
if len(pkgList):
|
|
31
|
+
print(f" Found {color.CCYAN}{len(pkgList)} package(s){color.CEND} to upgrade!\n")
|
|
32
|
+
else:
|
|
33
|
+
print(f" {color.CGREEN2}No package updates required!{color.CEND}!\n")
|
|
34
|
+
return pkgList
|
|
35
|
+
|
|
36
|
+
# ------------------------------------------------------------------------------------------------------
|
|
37
|
+
|
|
38
|
+
@handle_spinner
|
|
39
|
+
def upgrade_pip_pkg(pkgName: str, currVer: str, latestVer: str, debug: bool = False, spinner = None):
|
|
40
|
+
spinner.start(f" -- Upgrading {color.CGREEN2}{pkgName}{color.CEND} " + \
|
|
41
|
+
f"from {color.CRED2}{currVer}{color.CEND} to {color.CGREEN}{latestVer}{color.CEND} ...")
|
|
42
|
+
result = subprocess.run([sys.executable, '-m', 'pip', 'install', '--upgrade', pkgName], capture_output=True, text=True)
|
|
43
|
+
spinner.stop()
|
|
44
|
+
|
|
45
|
+
if result.returncode:
|
|
46
|
+
print(f"{color.CRED2}Error:{color.CWHI2}{result.stderr}{color.CEND}")
|
|
47
|
+
|
|
48
|
+
if debug:
|
|
49
|
+
print(f'STDOUT: {result.stdout}')
|
|
50
|
+
print(f'STDERR: {result.stderr}')
|
|
51
|
+
print(f'retcode: {result.returncode}')
|
|
52
|
+
|
|
53
|
+
# ------------------------------------------------------------------------------------------------------
|
|
54
|
+
# ------------------------------------------------------------------------------------------------------
|
|
55
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
|
|
3
|
+
import json
|
|
4
|
+
import sys
|
|
5
|
+
import subprocess
|
|
6
|
+
|
|
7
|
+
from quickcolor.color_def import color
|
|
8
|
+
from delayviewer.spinner import handle_spinner
|
|
9
|
+
|
|
10
|
+
def get_pip_list_pkgs() -> list:
|
|
11
|
+
result = subprocess.run([sys.executable, '-m', 'pip', 'list', '--format=json'], capture_output=True, text=True)
|
|
12
|
+
return json.loads(result.stdout)
|
|
13
|
+
|
|
14
|
+
@handle_spinner
|
|
15
|
+
def get_pip_list_outdated_pkgs(spinner = None) -> list:
|
|
16
|
+
spinner.start(f" -- {color.CYELLOW2}Retrieving outdated packages{color.CEND} ...")
|
|
17
|
+
result = subprocess.run([sys.executable, '-m', 'pip', 'list', '--outdated', '--format=json'], capture_output=True, text=True)
|
|
18
|
+
spinner.stop()
|
|
19
|
+
pkgList = json.loads(result.stdout)
|
|
20
|
+
if len(pkgList):
|
|
21
|
+
print(f" Found {color.CCYAN}{len(pkgList)} packages{color.CEND} to upgrade!\n")
|
|
22
|
+
else:
|
|
23
|
+
print(f" {color.CGREEN2}No package updates required!{color.CEND}!\n")
|
|
24
|
+
return pkgList
|
|
25
|
+
|
|
26
|
+
@handle_spinner
|
|
27
|
+
def upgrade_pip_pkg(pkgName: str, debug: bool = False, spinner = None):
|
|
28
|
+
spinner.start(f" -- Upgrading {color.CGREEN2}{pkg['name']}{color.CEND} ...")
|
|
29
|
+
result = subprocess.run([sys.executable, '-m', 'pip', 'install', '--upgrade', pkgName], capture_output=True, text=True)
|
|
30
|
+
spinner.stop()
|
|
31
|
+
|
|
32
|
+
if result.returncode:
|
|
33
|
+
print(f"{color.CRED2}Error:{color.CWHI2}{result.stderr}{color.CEND}")
|
|
34
|
+
|
|
35
|
+
if debug:
|
|
36
|
+
print(f'STDOUT: {result.stdout}')
|
|
37
|
+
print(f'STDERR: {result.stderr}')
|
|
38
|
+
print(f'retcode: {result.returncode}')
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
# python -m pip list --format=json | jq -r '.[] | [.name, .version] | @csv' > packages.csv
|
|
42
|
+
|
|
43
|
+
# pkgs = get_pip_list_pkgs()
|
|
44
|
+
# print(pkgs)
|
|
45
|
+
|
|
46
|
+
outdatedPkgs = get_pip_list_outdated_pkgs()
|
|
47
|
+
# print (outdatedPkgs)
|
|
48
|
+
|
|
49
|
+
if len(outdatedPkgs):
|
|
50
|
+
# numPkgsToUpgrade = 1
|
|
51
|
+
for pkg in outdatedPkgs:
|
|
52
|
+
upgrade_pip_pkg(pkg['name'])
|
|
53
|
+
# numPkgsToUpgrade -= 1
|
|
54
|
+
# if numPkgsToUpgrade == 0:
|
|
55
|
+
# break
|
|
56
|
+
|
|
57
|
+
print(f"\n .. Finished upgrade run for {color.CYELLOW2}{len(outdatedPkgs)} packages{color.CEND}!\n")
|
|
58
|
+
|
|
59
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: updapips
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Upgrade outdated python packages via PIP
|
|
5
|
+
Author-email: Ed Waldner <waldevburry@proton.me>
|
|
6
|
+
Maintainer-email: Ed Waldner <waldevburry@proton.me>
|
|
7
|
+
Project-URL: Homepage, https://github.com/ew98/updapips
|
|
8
|
+
Project-URL: Documentation, https://github.com/ew98/updapips/wiki/UpDaPips
|
|
9
|
+
Project-URL: Issues, https://github.com/ew98/updapips/issues
|
|
10
|
+
Keywords: util,utility
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Natural Language :: English
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Operating System :: OS Independent
|
|
22
|
+
Classifier: Topic :: Utilities
|
|
23
|
+
Requires-Python: >=3.9
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
License-File: LICENSE
|
|
26
|
+
Requires-Dist: argcomplete
|
|
27
|
+
Requires-Dist: distro
|
|
28
|
+
Requires-Dist: quickcolor
|
|
29
|
+
Requires-Dist: delayviewer
|
|
30
|
+
Requires-Dist: showexception
|
|
31
|
+
Dynamic: license-file
|
|
32
|
+
|
|
33
|
+
# UpDaPips
|
|
34
|
+
|
|
35
|
+
**UpDaPips** is a command line package to upgrade outdated PIP packages in the current environment
|
|
36
|
+
|
|
37
|
+
## Installation
|
|
38
|
+
|
|
39
|
+
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install **updapips**.
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pip install updapips
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## CLI Utility
|
|
46
|
+
|
|
47
|
+
The following CLI is provided in this package.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
╰─ bkmeup -h ─╯
|
|
51
|
+
usage: bkmeup [-h] [--version] {show.env.info,show.dflt.bkup.list,create.archive} ...
|
|
52
|
+
|
|
53
|
+
-.-.-. BkMeUp Shell Config archiver & bkup!
|
|
54
|
+
|
|
55
|
+
positional arguments:
|
|
56
|
+
{show.env.info,show.dflt.bkup.list,create.archive}
|
|
57
|
+
show.env.info show system environment info
|
|
58
|
+
show.dflt.bkup.list
|
|
59
|
+
show list of default items to archive/bkup
|
|
60
|
+
create.archive accumulate shell config files if they exist and archive them
|
|
61
|
+
|
|
62
|
+
options:
|
|
63
|
+
-h, --help show this help message and exit
|
|
64
|
+
--version top-level package version
|
|
65
|
+
|
|
66
|
+
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## License
|
|
71
|
+
|
|
72
|
+
[MIT](https://choosealicense.com/licenses/mit/)
|
|
73
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
src/__init__.py
|
|
5
|
+
src/updapips/__init__.py
|
|
6
|
+
src/updapips/cli.py
|
|
7
|
+
src/updapips/updapips.py
|
|
8
|
+
src/updapips/upgrade_pip_pkgs.py
|
|
9
|
+
src/updapips.egg-info/PKG-INFO
|
|
10
|
+
src/updapips.egg-info/SOURCES.txt
|
|
11
|
+
src/updapips.egg-info/dependency_links.txt
|
|
12
|
+
src/updapips.egg-info/entry_points.txt
|
|
13
|
+
src/updapips.egg-info/requires.txt
|
|
14
|
+
src/updapips.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|