lastversion 3.5.2__tar.gz → 3.5.3__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.5.2/src/lastversion.egg-info → lastversion-3.5.3}/PKG-INFO +1 -1
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/__about__.py +1 -1
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/base.py +20 -1
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/gitea.py +8 -3
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/github.py +51 -93
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/version.py +11 -1
- {lastversion-3.5.2 → lastversion-3.5.3/src/lastversion.egg-info}/PKG-INFO +1 -1
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_lastversion.py +17 -14
- {lastversion-3.5.2 → lastversion-3.5.3}/LICENSE +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/MANIFEST.in +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/README-ZH-CN.md +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/README.md +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/setup.cfg +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/setup.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/__init__.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/__main__.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/argparse_version.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/exceptions.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/holder_factory.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/lastversion.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/__init__.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/bibucket.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/feed.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/gitlab.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/helmchat.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/local.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/mercurial.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/pypi.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/sourceforge.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/system.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/test.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/wikipedia.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/repo_holders/wordpress.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/spdx_id_to_rpmspec.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion/utils.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion.egg-info/SOURCES.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion.egg-info/dependency_links.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion.egg-info/entry_points.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion.egg-info/not-zip-safe +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion.egg-info/requires.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/src/lastversion.egg-info/top_level.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_cli.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_gitea.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_github.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_gitlab.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_hg.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_pypi.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_sf.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.3}/tests/test_wiki.py +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""The base project holder class."""
|
|
2
|
+
|
|
2
3
|
import json
|
|
3
4
|
import logging
|
|
4
5
|
import os
|
|
@@ -45,7 +46,7 @@ def matches_filter(filter_s, positive, version_s):
|
|
|
45
46
|
positive = not positive
|
|
46
47
|
filter_s = filter_s[1:]
|
|
47
48
|
if filter_s.startswith("~"):
|
|
48
|
-
filter_s = re.compile(
|
|
49
|
+
filter_s = re.compile(rf"{filter_s.lstrip('~')}")
|
|
49
50
|
return positive == bool(re.search(filter_s, version_s))
|
|
50
51
|
return positive == bool(filter_s in version_s)
|
|
51
52
|
|
|
@@ -442,6 +443,23 @@ class BaseProjectHolder(requests.Session):
|
|
|
442
443
|
return self.feed_url
|
|
443
444
|
return f"https://{self.hostname}/{self.repo}"
|
|
444
445
|
|
|
446
|
+
def get_feed_response(self, url):
|
|
447
|
+
"""
|
|
448
|
+
Get feed response.
|
|
449
|
+
Ensures that the same `Accept` header is used for all feed requests.
|
|
450
|
+
Clears cookies after request to ensure cache-ability of further requests.
|
|
451
|
+
"""
|
|
452
|
+
headers = {
|
|
453
|
+
"Accept": "*/*",
|
|
454
|
+
# private repos do not have releases.atom to begin with,
|
|
455
|
+
# authorization header may cause a false positive 200 response with an empty feed!
|
|
456
|
+
"Authorization": "",
|
|
457
|
+
}
|
|
458
|
+
response = self.get(url, headers=headers)
|
|
459
|
+
# API requests are varied by cookie, we don't want serializer for cache fail because of that
|
|
460
|
+
self.cookies.clear()
|
|
461
|
+
return response
|
|
462
|
+
|
|
445
463
|
def find_release_in_feed(self, url, pre_ok=False, major=None):
|
|
446
464
|
"""
|
|
447
465
|
Find release in feed.
|
|
@@ -449,6 +467,7 @@ class BaseProjectHolder(requests.Session):
|
|
|
449
467
|
then supply its text to feedparser as a raw string
|
|
450
468
|
"""
|
|
451
469
|
ret = {}
|
|
470
|
+
log.debug("Requesting %s", url)
|
|
452
471
|
r = self.get(url)
|
|
453
472
|
feed = feedparser.parse(r.text)
|
|
454
473
|
for tag in feed.entries:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""Gitea repository session class."""
|
|
2
|
+
|
|
2
3
|
import json
|
|
3
4
|
import logging
|
|
4
5
|
import math
|
|
@@ -156,7 +157,9 @@ class GiteaRepoSession(BaseProjectHolder):
|
|
|
156
157
|
else:
|
|
157
158
|
return
|
|
158
159
|
|
|
159
|
-
|
|
160
|
+
@property
|
|
161
|
+
def rate_limit_url(self):
|
|
162
|
+
"""Get the rate limit URL."""
|
|
160
163
|
return f"{self.api_base}/rate_limit"
|
|
161
164
|
|
|
162
165
|
def get(self, url, **kwargs):
|
|
@@ -211,7 +214,7 @@ class GiteaRepoSession(BaseProjectHolder):
|
|
|
211
214
|
)
|
|
212
215
|
return self.get(url)
|
|
213
216
|
|
|
214
|
-
if r.status_code == 403 and url != self.
|
|
217
|
+
if r.status_code == 403 and url != self.rate_limit_url:
|
|
215
218
|
self.rate_limited_count = 0
|
|
216
219
|
return r
|
|
217
220
|
|
|
@@ -354,7 +357,9 @@ class GiteaRepoSession(BaseProjectHolder):
|
|
|
354
357
|
"""
|
|
355
358
|
official_repo = f"{repo}/{repo}"
|
|
356
359
|
log.info("Checking existence of %s", official_repo)
|
|
357
|
-
r = self.
|
|
360
|
+
r = self.get_feed_response(
|
|
361
|
+
f"https://{self.hostname}/{official_repo}/releases.atom"
|
|
362
|
+
)
|
|
358
363
|
# API requests are varied by cookie, we don't want serializer for
|
|
359
364
|
# cache fail because of that
|
|
360
365
|
self.cookies.clear()
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""GitHub repository session class."""
|
|
2
|
+
|
|
2
3
|
import logging
|
|
3
4
|
from urllib.parse import unquote
|
|
4
5
|
|
|
@@ -264,108 +265,73 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
264
265
|
return None
|
|
265
266
|
|
|
266
267
|
def find_in_tags_via_graphql(self, ret, pre_ok, major):
|
|
267
|
-
"""GraphQL allows for faster search across many tags.
|
|
268
|
-
We aggregate the highest semantic version among batches of 100 records.
|
|
269
|
-
In this way --major filtering results in much fewer requests compared to traditional API
|
|
270
|
-
use.
|
|
271
|
-
|
|
272
|
-
Args:
|
|
273
|
-
ret (dict): currently selected release object
|
|
274
|
-
pre_ok (bool): whether betas are acceptable
|
|
275
|
-
major (str): the major filter
|
|
276
|
-
|
|
277
|
-
Returns: currently selected release object
|
|
278
|
-
|
|
279
|
-
"""
|
|
280
268
|
query_fmt = """
|
|
281
|
-
{
|
|
269
|
+
query ($owner: String!, $name: String!, $after: String) {
|
|
282
270
|
rateLimit {
|
|
283
271
|
cost
|
|
284
272
|
remaining
|
|
285
273
|
}
|
|
286
|
-
repository(owner:
|
|
287
|
-
tags: refs(refPrefix: "refs/tags/", first: 100, after:
|
|
288
|
-
orderBy: {field: TAG_COMMIT_DATE, direction: DESC}) {
|
|
274
|
+
repository(owner: $owner, name: $name) {
|
|
275
|
+
tags: refs(refPrefix: "refs/tags/", first: 100, after: $after, orderBy: {field: TAG_COMMIT_DATE, direction: DESC}) {
|
|
289
276
|
edges {
|
|
290
|
-
cursor
|
|
277
|
+
cursor
|
|
291
278
|
node {
|
|
292
|
-
|
|
279
|
+
name
|
|
280
|
+
target {
|
|
281
|
+
... on Commit {
|
|
282
|
+
author {
|
|
283
|
+
date
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
... on Tag {
|
|
287
|
+
tagger {
|
|
288
|
+
date
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
293
292
|
}
|
|
294
293
|
}
|
|
295
294
|
}
|
|
296
295
|
}
|
|
297
296
|
}
|
|
298
|
-
|
|
299
|
-
fragment refInfo on Ref {
|
|
300
|
-
name
|
|
301
|
-
target {
|
|
302
|
-
sha: oid
|
|
303
|
-
commitResourcePath
|
|
304
|
-
__typename
|
|
305
|
-
... on Tag {
|
|
306
|
-
target {
|
|
307
|
-
... on Commit {
|
|
308
|
-
...commitInfo
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
tagger {
|
|
312
|
-
name
|
|
313
|
-
email
|
|
314
|
-
date
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
... on Commit {
|
|
318
|
-
...commitInfo
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
fragment commitInfo on Commit {
|
|
324
|
-
zipballUrl
|
|
325
|
-
tarballUrl
|
|
326
|
-
author {
|
|
327
|
-
name
|
|
328
|
-
email
|
|
329
|
-
date
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
|
|
333
297
|
"""
|
|
298
|
+
|
|
334
299
|
cursor = ""
|
|
335
300
|
log.info("Using graphql queries...")
|
|
301
|
+
owner, name = self.repo.split("/")
|
|
336
302
|
while True:
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
303
|
+
variables = {"owner": owner, "name": name, "after": cursor}
|
|
304
|
+
response = self.post(
|
|
305
|
+
f"{self.api_base}/graphql",
|
|
306
|
+
json={"query": query_fmt, "variables": variables},
|
|
307
|
+
)
|
|
342
308
|
log.info('Requested graphql with cursor "%s"', cursor)
|
|
343
|
-
if
|
|
344
|
-
log.info(
|
|
309
|
+
if response.status_code != 200:
|
|
310
|
+
log.info(
|
|
311
|
+
"Query returned non-200 response code %s", response.status_code
|
|
312
|
+
)
|
|
345
313
|
return ret
|
|
346
|
-
|
|
347
|
-
if "errors" in
|
|
314
|
+
data = response.json()
|
|
315
|
+
if "errors" in data and data["errors"][0].get("type") == "NOT_FOUND":
|
|
348
316
|
raise BadProjectError(f"No such project found on GitHub: {self.repo}")
|
|
349
|
-
|
|
350
|
-
|
|
317
|
+
edges = data["data"]["repository"]["tags"]["edges"]
|
|
318
|
+
if not edges:
|
|
319
|
+
log.info("No tags in GraphQL response: %s", response.text)
|
|
351
320
|
break
|
|
352
|
-
for edge in
|
|
321
|
+
for edge in edges:
|
|
353
322
|
node = edge["node"]
|
|
354
323
|
cursor = edge["cursor"]
|
|
355
324
|
tag_name = node["name"]
|
|
356
325
|
version = self.sanitize_version(tag_name, pre_ok, major)
|
|
357
326
|
if not version:
|
|
358
327
|
continue
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
log.info("Using commit date")
|
|
367
|
-
d = node["target"]["author"]["date"]
|
|
368
|
-
tag_date = parser.parse(d)
|
|
328
|
+
# use date of annotated tag as it better corresponds to
|
|
329
|
+
# "release date" otherwise using commit date because the tag is not annotated
|
|
330
|
+
tag_date = parser.parse(
|
|
331
|
+
node["target"]["tagger"]["date"]
|
|
332
|
+
if "tagger" in node["target"]
|
|
333
|
+
else node["target"]["author"]["date"]
|
|
334
|
+
)
|
|
369
335
|
if ret and tag_date + timedelta(days=365) < ret["tag_date"]:
|
|
370
336
|
log.info("The version %s is newer, but is too old!", version)
|
|
371
337
|
break
|
|
@@ -472,18 +438,10 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
472
438
|
"""
|
|
473
439
|
if self.repo in self.feed_contents:
|
|
474
440
|
return self.feed_contents[self.repo]
|
|
475
|
-
|
|
476
|
-
"
|
|
477
|
-
# private repos do not have releases.atom to begin with,
|
|
478
|
-
# authorization header may cause a false positive 200 response with an empty feed!
|
|
479
|
-
"Authorization": "",
|
|
480
|
-
}
|
|
481
|
-
r = super().get(
|
|
482
|
-
f"https://{self.hostname}/{self.repo}/releases.atom", headers=headers
|
|
441
|
+
feed_response = self.get_feed_response(
|
|
442
|
+
url=f"https://{self.hostname}/{self.repo}/releases.atom"
|
|
483
443
|
)
|
|
484
|
-
|
|
485
|
-
self.cookies.clear()
|
|
486
|
-
if r.status_code == 404 and not rename_checked:
|
|
444
|
+
if feed_response.status_code == 404 and not rename_checked:
|
|
487
445
|
# #44: in some network locations, GitHub returns 404 (as opposed to a 301 redirect) for the renamed
|
|
488
446
|
# repositories /releases.atom. When we get a 404, we lazily load repo info via API, and hopefully
|
|
489
447
|
# get redirect there as well as the new repo full name
|
|
@@ -499,9 +457,9 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
499
457
|
self.repo = repo_data["full_name"]
|
|
500
458
|
# request the feed from the new location
|
|
501
459
|
return self.get_releases_feed_contents(rename_checked=False)
|
|
502
|
-
if
|
|
503
|
-
self.feed_contents[self.repo] =
|
|
504
|
-
return
|
|
460
|
+
if feed_response.status_code == 200:
|
|
461
|
+
self.feed_contents[self.repo] = feed_response.text
|
|
462
|
+
return feed_response.text
|
|
505
463
|
return None
|
|
506
464
|
|
|
507
465
|
def get_releases_feed_entries(self):
|
|
@@ -701,9 +659,9 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
701
659
|
"""
|
|
702
660
|
official_repo = f"{repo}/{repo}"
|
|
703
661
|
log.info("Checking existence of %s", official_repo)
|
|
704
|
-
r = self.
|
|
705
|
-
|
|
706
|
-
|
|
662
|
+
r = self.get_feed_response(
|
|
663
|
+
url=f"https://{self.hostname}/{official_repo}/releases.atom"
|
|
664
|
+
)
|
|
707
665
|
if r.status_code == 200:
|
|
708
666
|
self.feed_contents[official_repo] = r.text
|
|
709
667
|
return official_repo
|
|
@@ -46,6 +46,15 @@ class Version(PackagingVersion):
|
|
|
46
46
|
"pre": "rc0",
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
@staticmethod
|
|
50
|
+
def special_cases_transformation(version):
|
|
51
|
+
"""
|
|
52
|
+
Special cases for version transformation.
|
|
53
|
+
" SP-" => ".post" (a Service Pack version is a post release)
|
|
54
|
+
"""
|
|
55
|
+
version = version.replace(" SP-", ".post")
|
|
56
|
+
return version
|
|
57
|
+
|
|
49
58
|
def fix_letter_post_release(self, match):
|
|
50
59
|
"""Fix letter post release"""
|
|
51
60
|
self.fixed_letter_post_release = True
|
|
@@ -151,6 +160,7 @@ class Version(PackagingVersion):
|
|
|
151
160
|
"""
|
|
152
161
|
self.fixed_letter_post_release = False
|
|
153
162
|
|
|
163
|
+
version = self.special_cases_transformation(version)
|
|
154
164
|
# Join status with its number, e.g., preview-3 -> pre3
|
|
155
165
|
version = self.join_dashed_number_status(version)
|
|
156
166
|
version = self.filter_relevant_parts(version)
|
|
@@ -304,6 +314,6 @@ class Version(PackagingVersion):
|
|
|
304
314
|
|
|
305
315
|
# Local version segment
|
|
306
316
|
if self.local is not None:
|
|
307
|
-
parts.append("+{
|
|
317
|
+
parts.append(f"+{self.local}")
|
|
308
318
|
|
|
309
319
|
return "".join(parts)
|
|
@@ -308,7 +308,7 @@ def test_main_url():
|
|
|
308
308
|
with subprocess.Popen(
|
|
309
309
|
["lastversion", repo], stdout=subprocess.PIPE, stderr=subprocess.PIPE
|
|
310
310
|
) as process:
|
|
311
|
-
out,
|
|
311
|
+
out, _ = process.communicate()
|
|
312
312
|
|
|
313
313
|
assert version.parse(out.decode("utf-8").strip()) >= version.parse("1.13.35.2")
|
|
314
314
|
|
|
@@ -317,42 +317,42 @@ def test_cli_format_with_sem_base():
|
|
|
317
317
|
"""Test formatting arbitrary version string with semantic level extraction."""
|
|
318
318
|
repo = "mysqld Ver 5.6.51-91.0 for Linux on x86_64 (Percona Server (GPL), Release 91.0, Revision b59139e)"
|
|
319
319
|
|
|
320
|
-
|
|
320
|
+
with subprocess.Popen(
|
|
321
321
|
["lastversion", "--sem", "major", "format", repo],
|
|
322
322
|
stdout=subprocess.PIPE,
|
|
323
323
|
stderr=subprocess.PIPE,
|
|
324
|
-
)
|
|
325
|
-
|
|
324
|
+
) as process:
|
|
325
|
+
out, _ = process.communicate()
|
|
326
326
|
|
|
327
|
-
|
|
327
|
+
assert out.decode("utf-8").strip() == "5"
|
|
328
328
|
|
|
329
329
|
|
|
330
330
|
def test_cli_get_tag():
|
|
331
331
|
"""Test CLI with full URL at GitHub, get tag as a result."""
|
|
332
332
|
repo = "https://github.com/lastversion-test-repos/Tasmota"
|
|
333
333
|
|
|
334
|
-
|
|
334
|
+
with subprocess.Popen(
|
|
335
335
|
["lastversion", repo, "--format", "tag"],
|
|
336
336
|
stdout=subprocess.PIPE,
|
|
337
337
|
stderr=subprocess.PIPE,
|
|
338
|
-
)
|
|
339
|
-
|
|
338
|
+
) as process:
|
|
339
|
+
out, _ = process.communicate()
|
|
340
340
|
|
|
341
|
-
|
|
341
|
+
assert out.decode("utf-8").strip() == "v11.0.0"
|
|
342
342
|
|
|
343
343
|
|
|
344
344
|
def test_main_assets():
|
|
345
345
|
"""Test CLI with --format assets."""
|
|
346
346
|
repo = "https://github.com/mautic/mautic"
|
|
347
347
|
|
|
348
|
-
|
|
349
|
-
["lastversion", repo, "--format", "assets", "--major", "4"],
|
|
348
|
+
with subprocess.Popen(
|
|
349
|
+
["lastversion", repo, "--format", "assets", "--major", "4.4.11"],
|
|
350
350
|
stdout=subprocess.PIPE,
|
|
351
351
|
stderr=subprocess.PIPE,
|
|
352
|
-
)
|
|
353
|
-
|
|
352
|
+
) as process:
|
|
353
|
+
out, _ = process.communicate()
|
|
354
354
|
|
|
355
|
-
|
|
355
|
+
assert "4.4.11-update.zip" in str(out)
|
|
356
356
|
|
|
357
357
|
|
|
358
358
|
def test_tag_mess():
|
|
@@ -472,18 +472,21 @@ def test_tags_only_repo():
|
|
|
472
472
|
|
|
473
473
|
|
|
474
474
|
def test_only_arg_again():
|
|
475
|
+
"""Test only arg with chart."""
|
|
475
476
|
repo = "https://github.com/lastversion-test-repos/autoscaler/tags"
|
|
476
477
|
v = latest(repo, only="chart")
|
|
477
478
|
assert v == version.parse("9.16.0")
|
|
478
479
|
|
|
479
480
|
|
|
480
481
|
def test_only_arg_negated():
|
|
482
|
+
"""Test only arg with negation."""
|
|
481
483
|
repo = "https://github.com/lastversion-test-repos/autoscaler/tags"
|
|
482
484
|
v = latest(repo, only="!chart")
|
|
483
485
|
assert v == version.parse("1.23.0")
|
|
484
486
|
|
|
485
487
|
|
|
486
488
|
def test_dict_no_license():
|
|
489
|
+
"""Test dict output without license."""
|
|
487
490
|
repo = "https://github.com/lastversion-test-repos/nginx_ajp_module"
|
|
488
491
|
release = latest(repo, output_format="dict")
|
|
489
492
|
assert release["version"] == version.parse("0.3.2")
|
|
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
|
|
File without changes
|