python-update-checker 0.8.0__tar.gz → 0.9.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.
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/PKG-INFO +1 -1
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/pyproject.toml +3 -3
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/pyproject.toml.orig +3 -3
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/src/puc/__init__.py +2 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/src/puc/cli.py +13 -1
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/src/puc/uvlock.py +5 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/data/uv.lock +5 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/test_uv_lock.py +1 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/.gitignore +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/.ruff.toml +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/Makefile +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/README.md +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/scripts/install_dev.sh +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/src/puc/dependencies.py +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/src/puc/logging.py +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/src/puc/pyprojecttoml.py +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/src/puc/requirementstxt.py +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/__init__.py +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/data/other-requirements.txt +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/data/pyproject.toml +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/data/pyproject_compatible.toml +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/data/requirements.txt +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/test_latest.py +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/test_pyproject_toml.py +0 -0
- {python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/test_requirements_txt.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "python-update-checker"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.9.0"
|
|
4
4
|
readme = "README.md"
|
|
5
5
|
requires-python = ">=3.11"
|
|
6
6
|
license = "GPL-3.0-only"
|
|
@@ -26,8 +26,8 @@ puc = "puc:cli.main"
|
|
|
26
26
|
dev = [
|
|
27
27
|
"bump2version==1.0.1",
|
|
28
28
|
"pytest==9.1.1",
|
|
29
|
-
"ruff==0.16.
|
|
30
|
-
"rumdl==0.2.
|
|
29
|
+
"ruff==0.16.5",
|
|
30
|
+
"rumdl==0.2.62",
|
|
31
31
|
"tombi==1.4.1",
|
|
32
32
|
"ty==0.0.75",
|
|
33
33
|
"zizmor==1.29.0",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "python-update-checker"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.9.0"
|
|
4
4
|
readme = "README.md"
|
|
5
5
|
requires-python = ">=3.11"
|
|
6
6
|
license = "GPL-3.0-only"
|
|
@@ -36,9 +36,9 @@ dev = [
|
|
|
36
36
|
# for testing
|
|
37
37
|
"pytest==9.1.1",
|
|
38
38
|
# for python code linting
|
|
39
|
-
"ruff==0.16.
|
|
39
|
+
"ruff==0.16.5",
|
|
40
40
|
# Markdown style checking and formatting
|
|
41
|
-
"rumdl==0.2.
|
|
41
|
+
"rumdl==0.2.62",
|
|
42
42
|
# reformat toml files
|
|
43
43
|
"tombi==1.4.1",
|
|
44
44
|
# for python type checking
|
|
@@ -21,6 +21,7 @@ from .logging import logger
|
|
|
21
21
|
from .pyprojecttoml import handle_pyproject_toml
|
|
22
22
|
from .requirementstxt import handle_requirements_txt
|
|
23
23
|
from .uvlock import handle_uv_lock
|
|
24
|
+
from . import __version__
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
def usage(msg: str | None = None) -> None:
|
|
@@ -94,6 +95,13 @@ def get_option_parser() -> argparse.ArgumentParser:
|
|
|
94
95
|
default=False,
|
|
95
96
|
help="Print debug messages.",
|
|
96
97
|
)
|
|
98
|
+
parser.add_argument(
|
|
99
|
+
"--version",
|
|
100
|
+
action="store_true",
|
|
101
|
+
dest="version",
|
|
102
|
+
default=False,
|
|
103
|
+
help="Print version and exit.",
|
|
104
|
+
)
|
|
97
105
|
subparsers = parser.add_subparsers(help='commands', dest='command')
|
|
98
106
|
parser_check = subparsers.add_parser('check', help='check for updated versions')
|
|
99
107
|
parser_check.add_argument(
|
|
@@ -174,7 +182,6 @@ def handle_dependency_file(dep_file: str, optargs, constraint_file):
|
|
|
174
182
|
|
|
175
183
|
def main() -> int:
|
|
176
184
|
"""Parse options and check or update dependencies."""
|
|
177
|
-
logger.info(f"{shlex.join(sys.argv)}")
|
|
178
185
|
# parse options
|
|
179
186
|
try:
|
|
180
187
|
optargs = get_option_parser().parse_args(sys.argv[1:])
|
|
@@ -182,8 +189,13 @@ def main() -> int:
|
|
|
182
189
|
logger.exception(exc)
|
|
183
190
|
usage()
|
|
184
191
|
# handle options
|
|
192
|
+
if optargs.version:
|
|
193
|
+
print(__version__)
|
|
194
|
+
return 0
|
|
185
195
|
if optargs.debug:
|
|
186
196
|
logger.setLevel(logging.DEBUG)
|
|
197
|
+
logger.info(f"{shlex.join(sys.argv)}")
|
|
198
|
+
logger.debug(f"puc version {__version__}")
|
|
187
199
|
remove_constraint_file = False
|
|
188
200
|
constraints = optargs.constraints
|
|
189
201
|
constraint_file = None
|
|
@@ -55,9 +55,14 @@ def handle_uv_lock(
|
|
|
55
55
|
continue
|
|
56
56
|
# skip virtual packages (ie. the project itself)
|
|
57
57
|
source = uvpackage.get("source", {})
|
|
58
|
+
# skip virtual packages (ie. the project itself)
|
|
58
59
|
if "virtual" in source:
|
|
59
60
|
logger.info(f"skip virtual package {name}")
|
|
60
61
|
continue
|
|
62
|
+
# skip editable packages
|
|
63
|
+
if "editable" in source:
|
|
64
|
+
logger.info(f"skip editable package {name}")
|
|
65
|
+
continue
|
|
61
66
|
updatable += update_uvlock_dependency(
|
|
62
67
|
name,
|
|
63
68
|
version,
|
|
@@ -35,6 +35,7 @@ class UvLockTest(unittest.TestCase):
|
|
|
35
35
|
self.assertIn("found update 'ty==", output)
|
|
36
36
|
self.assertIn("found update 'ruff==", output)
|
|
37
37
|
self.assertIn("skip virtual package imadoofus", output)
|
|
38
|
+
self.assertIn("skip editable package imabellend", output)
|
|
38
39
|
|
|
39
40
|
@needs_program('uv')
|
|
40
41
|
def test_uvlock_check_package(self):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/data/other-requirements.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_update_checker-0.8.0 → python_update_checker-0.9.0}/tests/data/pyproject_compatible.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|