lastversion 3.4.1__tar.gz → 3.4.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.
- {lastversion-3.4.1/lastversion.egg-info → lastversion-3.4.2}/PKG-INFO +2 -1
- {lastversion-3.4.1 → lastversion-3.4.2}/README.md +1 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/GitHubRepoSession.py +2 -2
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/ProjectHolder.py +8 -9
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/__about__.py +1 -1
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/lastversion.py +5 -0
- {lastversion-3.4.1 → lastversion-3.4.2/lastversion.egg-info}/PKG-INFO +2 -1
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_hg.py +9 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/LICENSE +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/MANIFEST.in +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/README-ZH-CN.md +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/BitBucketRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/FeedRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/GitLabRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/GiteaRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/HelmChartRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/HolderFactory.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/LocalVersionSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/MercurialRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/PypiRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/SourceForgeRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/SystemRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/TestProjectHolder.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/Version.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/WikipediaRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/WordPressPluginRepoSession.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/__init__.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/__main__.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/argparse_version.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/exceptions.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/spdx_id_to_rpmspec.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion/utils.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion.egg-info/SOURCES.txt +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion.egg-info/dependency_links.txt +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion.egg-info/entry_points.txt +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion.egg-info/not-zip-safe +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion.egg-info/requires.txt +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/lastversion.egg-info/top_level.txt +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/setup.cfg +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/setup.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_cli.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_gitea.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_github.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_gitlab.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_lastversion.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_pypi.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_sf.py +0 -0
- {lastversion-3.4.1 → lastversion-3.4.2}/tests/test_wiki.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lastversion
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.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
|
|
@@ -76,6 +76,7 @@ Requires-Dist: markdown-include; extra == "build"
|
|
|
76
76
|
|
|
77
77
|
[](https://github.com/dvershinin/lastversion/actions/workflows/pythonpackage.yml)
|
|
78
78
|
[](https://badge.fury.io/py/lastversion)
|
|
79
|
+

|
|
79
80
|
[](https://lastversion.getpagespeed.com/en/latest/?badge=latest)
|
|
80
81
|
[](https://www.codacy.com/manual/GetPageSpeed/lastversion?utm_source=github.com&utm_medium=referral&utm_content=dvershinin/lastversion&utm_campaign=Badge_Grade)
|
|
81
82
|
[](https://www.codacy.com/gh/dvershinin/lastversion/dashboard?utm_source=github.com&utm_medium=referral&utm_content=dvershinin/lastversion&utm_campaign=Badge_Coverage)
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://github.com/dvershinin/lastversion/actions/workflows/pythonpackage.yml)
|
|
4
4
|
[](https://badge.fury.io/py/lastversion)
|
|
5
|
+

|
|
5
6
|
[](https://lastversion.getpagespeed.com/en/latest/?badge=latest)
|
|
6
7
|
[](https://www.codacy.com/manual/GetPageSpeed/lastversion?utm_source=github.com&utm_medium=referral&utm_content=dvershinin/lastversion&utm_campaign=Badge_Grade)
|
|
7
8
|
[](https://www.codacy.com/gh/dvershinin/lastversion/dashboard?utm_source=github.com&utm_medium=referral&utm_content=dvershinin/lastversion&utm_campaign=Badge_Coverage)
|
|
@@ -169,7 +169,7 @@ class GitHubRepoSession(ProjectHolder):
|
|
|
169
169
|
self.api_base = f"https://api.{self.DEFAULT_HOSTNAME}"
|
|
170
170
|
|
|
171
171
|
if "/" not in repo:
|
|
172
|
-
self.
|
|
172
|
+
self.repo = self.find_repo_by_name_only(repo)
|
|
173
173
|
|
|
174
174
|
def get_rate_limit_url(self):
|
|
175
175
|
return f"{self.api_base}/rate_limit"
|
|
@@ -493,7 +493,7 @@ class GitHubRepoSession(ProjectHolder):
|
|
|
493
493
|
self.repo,
|
|
494
494
|
repo_data["full_name"],
|
|
495
495
|
)
|
|
496
|
-
self.
|
|
496
|
+
self.repo = repo_data["full_name"]
|
|
497
497
|
# request the feed from the new location
|
|
498
498
|
return self.get_releases_feed_contents(rename_checked=False)
|
|
499
499
|
if r.status_code == 200:
|
|
@@ -86,10 +86,12 @@ class ProjectHolder(requests.Session):
|
|
|
86
86
|
# Instance of project holder itself uniquely identifies a project (noname)
|
|
87
87
|
REPO_IS_HOLDER = False
|
|
88
88
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
self.
|
|
89
|
+
@property
|
|
90
|
+
def name(self):
|
|
91
|
+
"""Get project name, useful in URLs for assets, etc."""
|
|
92
|
+
if self.repo:
|
|
93
|
+
return self.repo.split("/")[-1]
|
|
94
|
+
return None
|
|
93
95
|
|
|
94
96
|
def __init__(self, name=None, hostname=None):
|
|
95
97
|
super(ProjectHolder, self).__init__()
|
|
@@ -118,8 +120,6 @@ class ProjectHolder(requests.Session):
|
|
|
118
120
|
# identifies project on a given hostname
|
|
119
121
|
# normalize repo to number of meaningful parameters
|
|
120
122
|
self.repo = self.get_base_repo_from_repo_arg(name)
|
|
121
|
-
# short name for "repo", useful in URLs
|
|
122
|
-
self.name = None
|
|
123
123
|
# in some case we do not specify repo, but feed is discovered, no repo is given then
|
|
124
124
|
self.feed_url = None
|
|
125
125
|
self.even = False
|
|
@@ -375,9 +375,8 @@ class ProjectHolder(requests.Session):
|
|
|
375
375
|
def release_download_url(self, release, shorter=False):
|
|
376
376
|
"""Get release download URL."""
|
|
377
377
|
if not self.RELEASE_URL_FORMAT:
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
)
|
|
378
|
+
log.warning("Getting release URL for %s is not implemented", self._type())
|
|
379
|
+
return None
|
|
381
380
|
ext = "zip" if os.name == "nt" else "tar.gz"
|
|
382
381
|
|
|
383
382
|
fmt = (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lastversion
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.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
|
|
@@ -76,6 +76,7 @@ Requires-Dist: markdown-include; extra == "build"
|
|
|
76
76
|
|
|
77
77
|
[](https://github.com/dvershinin/lastversion/actions/workflows/pythonpackage.yml)
|
|
78
78
|
[](https://badge.fury.io/py/lastversion)
|
|
79
|
+

|
|
79
80
|
[](https://lastversion.getpagespeed.com/en/latest/?badge=latest)
|
|
80
81
|
[](https://www.codacy.com/manual/GetPageSpeed/lastversion?utm_source=github.com&utm_medium=referral&utm_content=dvershinin/lastversion&utm_campaign=Badge_Grade)
|
|
81
82
|
[](https://www.codacy.com/gh/dvershinin/lastversion/dashboard?utm_source=github.com&utm_medium=referral&utm_content=dvershinin/lastversion&utm_campaign=Badge_Coverage)
|
|
@@ -15,3 +15,12 @@ def test_hg_nginx():
|
|
|
15
15
|
output = latest(repo, "version")
|
|
16
16
|
|
|
17
17
|
assert output >= version.parse("1.18.0")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def test_hg_nginx_source_url():
|
|
21
|
+
"""Test NGINX."""
|
|
22
|
+
repo = "https://nginx.org/"
|
|
23
|
+
|
|
24
|
+
result = latest(repo, "source", major="1.18.0")
|
|
25
|
+
|
|
26
|
+
assert result == 'https://nginx.org/download/nginx-1.18.0.tar.gz'
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|