lastversion 3.6.0__tar.gz → 3.6.2__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 (57) hide show
  1. {lastversion-3.6.0/src/lastversion.egg-info → lastversion-3.6.2}/PKG-INFO +4 -4
  2. {lastversion-3.6.0 → lastversion-3.6.2}/setup.py +2 -1
  3. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/__about__.py +1 -1
  4. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/cli.py +1 -1
  5. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/config.py +8 -3
  6. {lastversion-3.6.0 → lastversion-3.6.2/src/lastversion.egg-info}/PKG-INFO +4 -4
  7. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion.egg-info/requires.txt +3 -3
  8. {lastversion-3.6.0 → lastversion-3.6.2}/LICENSE +0 -0
  9. {lastversion-3.6.0 → lastversion-3.6.2}/MANIFEST.in +0 -0
  10. {lastversion-3.6.0 → lastversion-3.6.2}/README-ZH-CN.md +0 -0
  11. {lastversion-3.6.0 → lastversion-3.6.2}/README.md +0 -0
  12. {lastversion-3.6.0 → lastversion-3.6.2}/pyproject.toml +0 -0
  13. {lastversion-3.6.0 → lastversion-3.6.2}/setup.cfg +0 -0
  14. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/__init__.py +0 -0
  15. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/__main__.py +0 -0
  16. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/ai.py +0 -0
  17. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/argparse_version.py +0 -0
  18. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/cache.py +0 -0
  19. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/exceptions.py +0 -0
  20. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/holder_factory.py +0 -0
  21. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/lastversion.py +0 -0
  22. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/__init__.py +0 -0
  23. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/alpine.py +0 -0
  24. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/base.py +0 -0
  25. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/bibucket.py +0 -0
  26. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/feed.py +0 -0
  27. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/gitea.py +0 -0
  28. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/github.py +0 -0
  29. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/gitlab.py +0 -0
  30. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/helmchat.py +0 -0
  31. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/local.py +0 -0
  32. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/mercurial.py +0 -0
  33. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/pypi.py +0 -0
  34. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/sourceforge.py +0 -0
  35. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/system.py +0 -0
  36. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/test.py +0 -0
  37. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/wikipedia.py +0 -0
  38. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/repo_holders/wordpress.py +0 -0
  39. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/spdx_id_to_rpmspec.py +0 -0
  40. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/utils.py +0 -0
  41. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion/version.py +0 -0
  42. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion.egg-info/SOURCES.txt +0 -0
  43. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion.egg-info/dependency_links.txt +0 -0
  44. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion.egg-info/entry_points.txt +0 -0
  45. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion.egg-info/not-zip-safe +0 -0
  46. {lastversion-3.6.0 → lastversion-3.6.2}/src/lastversion.egg-info/top_level.txt +0 -0
  47. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_alpine.py +0 -0
  48. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_cache.py +0 -0
  49. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_cli.py +0 -0
  50. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_gitea.py +0 -0
  51. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_github.py +0 -0
  52. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_gitlab.py +0 -0
  53. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_hg.py +0 -0
  54. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_lastversion.py +0 -0
  55. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_pypi.py +0 -0
  56. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_sf.py +0 -0
  57. {lastversion-3.6.0 → lastversion-3.6.2}/tests/test_wiki.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lastversion
3
- Version: 3.6.0
3
+ Version: 3.6.2
4
4
  Summary: A CLI tool to find the latest stable version of an arbitrary project
5
5
  Home-page: https://github.com/dvershinin/lastversion
6
6
  Author: Danila Vershinin
@@ -29,7 +29,7 @@ Description-Content-Type: text/markdown
29
29
  License-File: LICENSE
30
30
  Requires-Dist: requests>=2.16.0
31
31
  Requires-Dist: packaging
32
- Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.11; python_version < "3.10"
32
+ Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.6; python_version < "3.10"
33
33
  Requires-Dist: cachecontrol[filecache]>=0.14.0; python_version >= "3.10"
34
34
  Requires-Dist: urllib3<2; python_version < "3.9"
35
35
  Requires-Dist: appdirs
@@ -42,7 +42,7 @@ Requires-Dist: distro
42
42
  Provides-Extra: tests
43
43
  Requires-Dist: requests>=2.16.0; extra == "tests"
44
44
  Requires-Dist: packaging; extra == "tests"
45
- Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.11; python_version < "3.10" and extra == "tests"
45
+ Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.6; python_version < "3.10" and extra == "tests"
46
46
  Requires-Dist: cachecontrol[filecache]>=0.14.0; python_version >= "3.10" and extra == "tests"
47
47
  Requires-Dist: urllib3<2; python_version < "3.9" and extra == "tests"
48
48
  Requires-Dist: appdirs; extra == "tests"
@@ -65,7 +65,7 @@ Requires-Dist: markdown-include; extra == "docs"
65
65
  Provides-Extra: build
66
66
  Requires-Dist: requests>=2.16.0; extra == "build"
67
67
  Requires-Dist: packaging; extra == "build"
68
- Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.11; python_version < "3.10" and extra == "build"
68
+ Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.6; python_version < "3.10" and extra == "build"
69
69
  Requires-Dist: cachecontrol[filecache]>=0.14.0; python_version >= "3.10" and extra == "build"
70
70
  Requires-Dist: urllib3<2; python_version < "3.9" and extra == "build"
71
71
  Requires-Dist: appdirs; extra == "build"
@@ -20,7 +20,8 @@ install_requires = [
20
20
  "requests>=2.16.0",
21
21
  "packaging",
22
22
  # cachecontrol 0.14+ requires Python 3.10+, use 0.12.x for older Python
23
- 'cachecontrol[filecache]>=0.12.11,<0.14; python_version<"3.10"',
23
+ # 0.12.6 is the minimum available in EL7 EPEL
24
+ 'cachecontrol[filecache]>=0.12.6,<0.14; python_version<"3.10"',
24
25
  'cachecontrol[filecache]>=0.14.0; python_version>="3.10"',
25
26
  # urllib3 2.x requires Python 3.9+
26
27
  'urllib3<2; python_version<"3.9"',
@@ -1,4 +1,4 @@
1
1
  """Package metadata"""
2
2
 
3
- __version__ = "3.6.0"
3
+ __version__ = "3.6.2"
4
4
  __self__ = "dvershinin/lastversion"
@@ -113,7 +113,7 @@ def handle_cache_action(args):
113
113
  print(f" Auto-cleanup interval: {info.get('auto_cleanup_interval', 'N/A')}s")
114
114
  else:
115
115
  print("Release data cache is not enabled.")
116
- print("To enable, add to ~/.config/lastversion.yml:")
116
+ print(f"To enable, add to {config.config_path}:")
117
117
  print(" cache:")
118
118
  print(" release_cache:")
119
119
  print(" enabled: true")
@@ -1,7 +1,12 @@
1
1
  """Configuration management for lastversion.
2
2
 
3
- Loads configuration from ~/.config/lastversion.yml (or platform-appropriate location)
4
- and provides access to settings throughout the application.
3
+ Loads configuration from platform-appropriate location and provides access to
4
+ settings throughout the application.
5
+
6
+ Config file locations:
7
+ - Linux: ~/.config/lastversion/lastversion.yml
8
+ - macOS: ~/Library/Application Support/lastversion/lastversion.yml
9
+ - Windows: C:\\Users\\<user>\\AppData\\Local\\lastversion\\lastversion.yml
5
10
  """
6
11
 
7
12
  import copy
@@ -68,7 +73,7 @@ def deep_merge(base: Dict[str, Any], override: Dict[str, Any]) -> Dict[str, Any]
68
73
  class Config:
69
74
  """Configuration manager for lastversion.
70
75
 
71
- Loads configuration from ~/.config/lastversion.yml and provides
76
+ Loads configuration from platform-appropriate location and provides
72
77
  access to settings. Uses singleton pattern for global access.
73
78
  """
74
79
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lastversion
3
- Version: 3.6.0
3
+ Version: 3.6.2
4
4
  Summary: A CLI tool to find the latest stable version of an arbitrary project
5
5
  Home-page: https://github.com/dvershinin/lastversion
6
6
  Author: Danila Vershinin
@@ -29,7 +29,7 @@ Description-Content-Type: text/markdown
29
29
  License-File: LICENSE
30
30
  Requires-Dist: requests>=2.16.0
31
31
  Requires-Dist: packaging
32
- Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.11; python_version < "3.10"
32
+ Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.6; python_version < "3.10"
33
33
  Requires-Dist: cachecontrol[filecache]>=0.14.0; python_version >= "3.10"
34
34
  Requires-Dist: urllib3<2; python_version < "3.9"
35
35
  Requires-Dist: appdirs
@@ -42,7 +42,7 @@ Requires-Dist: distro
42
42
  Provides-Extra: tests
43
43
  Requires-Dist: requests>=2.16.0; extra == "tests"
44
44
  Requires-Dist: packaging; extra == "tests"
45
- Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.11; python_version < "3.10" and extra == "tests"
45
+ Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.6; python_version < "3.10" and extra == "tests"
46
46
  Requires-Dist: cachecontrol[filecache]>=0.14.0; python_version >= "3.10" and extra == "tests"
47
47
  Requires-Dist: urllib3<2; python_version < "3.9" and extra == "tests"
48
48
  Requires-Dist: appdirs; extra == "tests"
@@ -65,7 +65,7 @@ Requires-Dist: markdown-include; extra == "docs"
65
65
  Provides-Extra: build
66
66
  Requires-Dist: requests>=2.16.0; extra == "build"
67
67
  Requires-Dist: packaging; extra == "build"
68
- Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.11; python_version < "3.10" and extra == "build"
68
+ Requires-Dist: cachecontrol[filecache]<0.14,>=0.12.6; python_version < "3.10" and extra == "build"
69
69
  Requires-Dist: cachecontrol[filecache]>=0.14.0; python_version >= "3.10" and extra == "build"
70
70
  Requires-Dist: urllib3<2; python_version < "3.9" and extra == "build"
71
71
  Requires-Dist: appdirs; extra == "build"
@@ -12,7 +12,7 @@ distro
12
12
  py7zr
13
13
 
14
14
  [:python_version < "3.10"]
15
- cachecontrol[filecache]<0.14,>=0.12.11
15
+ cachecontrol[filecache]<0.14,>=0.12.6
16
16
 
17
17
  [:python_version < "3.9"]
18
18
  urllib3<2
@@ -41,7 +41,7 @@ mkdocstrings[python]
41
41
  markdown-include
42
42
 
43
43
  [build:python_version < "3.10"]
44
- cachecontrol[filecache]<0.14,>=0.12.11
44
+ cachecontrol[filecache]<0.14,>=0.12.6
45
45
 
46
46
  [build:python_version < "3.9"]
47
47
  urllib3<2
@@ -75,7 +75,7 @@ pytest-xdist
75
75
  pytest-cov
76
76
 
77
77
  [tests:python_version < "3.10"]
78
- cachecontrol[filecache]<0.14,>=0.12.11
78
+ cachecontrol[filecache]<0.14,>=0.12.6
79
79
 
80
80
  [tests:python_version < "3.9"]
81
81
  urllib3<2
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes