python-update-checker 1.2.0__tar.gz → 1.3.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-1.2.0 → python_update_checker-1.3.0}/PKG-INFO +1 -1
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/pyproject.toml +1 -1
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/pyproject.toml.orig +1 -1
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/__init__.py +1 -1
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/uvlock.py +11 -16
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/uv.lock +6 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/test_uv_lock.py +1 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/.gitignore +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/.ruff.toml +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/Makefile +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/README.md +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/scripts/install_dev.sh +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/cli.py +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/dependencies.py +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/logging.py +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/pyprojecttoml.py +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/requirementstxt.py +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/__init__.py +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/other-requirements.txt +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/pyproject.toml +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/pyproject_compatible.toml +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/requirements.txt +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/test_latest.py +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/test_pyproject_toml.py +0 -0
- {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/test_requirements_txt.py +0 -0
|
@@ -81,22 +81,17 @@ def check_source_registry(uvpackage, name):
|
|
|
81
81
|
"""
|
|
82
82
|
# check package source for skip reasons
|
|
83
83
|
source = uvpackage.get("source", {})
|
|
84
|
-
|
|
85
|
-
#
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
#
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return False
|
|
96
|
-
if "git" in source:
|
|
97
|
-
# skip git packages provided by URL
|
|
98
|
-
logger.info(f"skip git package {name!r}")
|
|
99
|
-
return False
|
|
84
|
+
skip_sources = (
|
|
85
|
+
"virtual", # virtual packages (ie. the project itself)
|
|
86
|
+
"editable", # editable packages
|
|
87
|
+
"path", # local packages provided by file path
|
|
88
|
+
"git", # git packages provided by URL
|
|
89
|
+
"directory", # directory packages provided by local path
|
|
90
|
+
)
|
|
91
|
+
for skip_source in skip_sources:
|
|
92
|
+
if skip_source in source:
|
|
93
|
+
logger.info(f"skip {skip_source} package {name!r}")
|
|
94
|
+
return False
|
|
100
95
|
if "registry" not in source:
|
|
101
96
|
logger.warning(f"no registry entry found for package {name!r}")
|
|
102
97
|
return True
|
|
@@ -80,3 +80,9 @@ name = "fragilicous-git"
|
|
|
80
80
|
version = "1"
|
|
81
81
|
source = { git = "https://example.com/fragilicous-git/fragilicous-git.git#3a2dd24bdb6484c1c0da1116043586ec22a32962" }
|
|
82
82
|
dependencies = [ ]
|
|
83
|
+
|
|
84
|
+
[[package]]
|
|
85
|
+
name = "fragilicous-dir"
|
|
86
|
+
version = "1"
|
|
87
|
+
source = { directory = "../fragilicous-dir/" }
|
|
88
|
+
dependencies = [ ]
|
|
@@ -47,6 +47,7 @@ class UvLockTest(unittest.TestCase):
|
|
|
47
47
|
self.assertIn("skip excluded package 'fragilicous'", output)
|
|
48
48
|
self.assertIn("skip path package 'superfragilicous'", output)
|
|
49
49
|
self.assertIn("skip git package 'fragilicous-git'", output)
|
|
50
|
+
self.assertIn("skip directory package 'fragilicous-dir'", output)
|
|
50
51
|
|
|
51
52
|
@needs_program('uv')
|
|
52
53
|
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
|
|
File without changes
|
{python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/other-requirements.txt
RENAMED
|
File without changes
|
|
File without changes
|
{python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/pyproject_compatible.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|