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.
Files changed (25) hide show
  1. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/PKG-INFO +1 -1
  2. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/pyproject.toml +1 -1
  3. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/pyproject.toml.orig +1 -1
  4. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/__init__.py +1 -1
  5. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/uvlock.py +11 -16
  6. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/uv.lock +6 -0
  7. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/test_uv_lock.py +1 -0
  8. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/.gitignore +0 -0
  9. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/.ruff.toml +0 -0
  10. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/Makefile +0 -0
  11. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/README.md +0 -0
  12. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/scripts/install_dev.sh +0 -0
  13. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/cli.py +0 -0
  14. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/dependencies.py +0 -0
  15. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/logging.py +0 -0
  16. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/pyprojecttoml.py +0 -0
  17. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/src/puc/requirementstxt.py +0 -0
  18. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/__init__.py +0 -0
  19. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/other-requirements.txt +0 -0
  20. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/pyproject.toml +0 -0
  21. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/pyproject_compatible.toml +0 -0
  22. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/data/requirements.txt +0 -0
  23. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/test_latest.py +0 -0
  24. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/test_pyproject_toml.py +0 -0
  25. {python_update_checker-1.2.0 → python_update_checker-1.3.0}/tests/test_requirements_txt.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-update-checker
3
- Version: 1.2.0
3
+ Version: 1.3.0
4
4
  License-Expression: GPL-3.0-only
5
5
  Classifier: Development Status :: 5 - Production/Stable
6
6
  Classifier: Environment :: Console
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-update-checker"
3
- version = "1.2.0"
3
+ version = "1.3.0"
4
4
  readme = "README.md"
5
5
  requires-python = ">=3.11"
6
6
  license = "GPL-3.0-only"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "python-update-checker"
3
- version = "1.2.0"
3
+ version = "1.3.0"
4
4
  readme = "README.md"
5
5
  requires-python = ">=3.11"
6
6
  license = "GPL-3.0-only"
@@ -2,4 +2,4 @@
2
2
  # Copyright: GPL-v3
3
3
  """module file"""
4
4
 
5
- __version__ = "1.2.0"
5
+ __version__ = "1.3.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
- if "virtual" in source:
85
- # skip virtual packages (ie. the project itself)
86
- logger.info(f"skip virtual package {name!r}")
87
- return False
88
- if "editable" in source:
89
- # skip editable packages
90
- logger.info(f"skip editable package {name!r}")
91
- return False
92
- if "path" in source:
93
- # skip local packages provided by file path
94
- logger.info(f"skip path package {name!r}")
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):