lastversion 3.5.2__tar.gz → 3.5.4__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.4}/PKG-INFO +1 -1
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/__about__.py +2 -1
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/base.py +29 -4
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/gitea.py +8 -3
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/github.py +22 -21
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/version.py +11 -1
- {lastversion-3.5.2 → lastversion-3.5.4/src/lastversion.egg-info}/PKG-INFO +1 -1
- {lastversion-3.5.2 → lastversion-3.5.4}/tests/test_gitlab.py +2 -1
- {lastversion-3.5.2 → lastversion-3.5.4}/tests/test_lastversion.py +17 -14
- {lastversion-3.5.2 → lastversion-3.5.4}/LICENSE +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/MANIFEST.in +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/README-ZH-CN.md +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/README.md +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/setup.cfg +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/setup.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/__init__.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/__main__.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/argparse_version.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/exceptions.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/holder_factory.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/lastversion.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/__init__.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/bibucket.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/feed.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/gitlab.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/helmchat.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/local.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/mercurial.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/pypi.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/sourceforge.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/system.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/test.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/wikipedia.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/repo_holders/wordpress.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/spdx_id_to_rpmspec.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion/utils.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion.egg-info/SOURCES.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion.egg-info/dependency_links.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion.egg-info/entry_points.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion.egg-info/not-zip-safe +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion.egg-info/requires.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/src/lastversion.egg-info/top_level.txt +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/tests/test_cli.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/tests/test_gitea.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/tests/test_github.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/tests/test_hg.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/tests/test_pypi.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/tests/test_sf.py +0 -0
- {lastversion-3.5.2 → lastversion-3.5.4}/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
|
|
|
@@ -87,6 +88,7 @@ class BaseProjectHolder(requests.Session):
|
|
|
87
88
|
|
|
88
89
|
# Instance of project holder itself uniquely identifies a project (noname)
|
|
89
90
|
REPO_IS_HOLDER = False
|
|
91
|
+
DEFAULT_TIMEOUT = 30 # default timeout in seconds
|
|
90
92
|
|
|
91
93
|
@property
|
|
92
94
|
def name(self):
|
|
@@ -119,7 +121,7 @@ class BaseProjectHolder(requests.Session):
|
|
|
119
121
|
self.hostname = hostname
|
|
120
122
|
if not self.hostname and self.DEFAULT_HOSTNAME:
|
|
121
123
|
self.hostname = self.DEFAULT_HOSTNAME
|
|
122
|
-
# identifies project on a given hostname
|
|
124
|
+
# identifies a project on a given hostname
|
|
123
125
|
# normalize repo to number of meaningful parameters
|
|
124
126
|
self.repo = self.get_base_repo_from_repo_arg(name)
|
|
125
127
|
# in some case we do not specify repo, but feed is discovered; no repo is given then
|
|
@@ -127,6 +129,11 @@ class BaseProjectHolder(requests.Session):
|
|
|
127
129
|
self.even = False
|
|
128
130
|
self.formal = False
|
|
129
131
|
|
|
132
|
+
def request(self, *args, **kwargs):
|
|
133
|
+
"""Set default timeout for requests."""
|
|
134
|
+
kwargs.setdefault("timeout", self.DEFAULT_TIMEOUT)
|
|
135
|
+
return super().request(*args, **kwargs)
|
|
136
|
+
|
|
130
137
|
def get_name_cache(self):
|
|
131
138
|
"""Return name cache from file."""
|
|
132
139
|
if not os.path.exists(self.names_cache_filename):
|
|
@@ -227,7 +234,7 @@ class BaseProjectHolder(requests.Session):
|
|
|
227
234
|
return repo_arg
|
|
228
235
|
if not repo_arg and cls.REPO_URL_PROJECT_COMPONENTS > 0:
|
|
229
236
|
raise ValueError(
|
|
230
|
-
f"Repo arg {repo_arg} does not have
|
|
237
|
+
f"Repo arg {repo_arg} does not have enough URI components ({cls.REPO_URL_PROJECT_COMPONENTS}) for {cls.__name__}"
|
|
231
238
|
)
|
|
232
239
|
if cls.REPO_URL_PROJECT_COMPONENTS >= 1:
|
|
233
240
|
repo_components = repo_arg.split("/")
|
|
@@ -300,7 +307,7 @@ class BaseProjectHolder(requests.Session):
|
|
|
300
307
|
"""
|
|
301
308
|
log.info("Sanitizing string %s as a satisfying version.", version_s)
|
|
302
309
|
|
|
303
|
-
# for libssh2-x.x.x should remove project name prefix to prevent `2` going into the version
|
|
310
|
+
# for `libssh2-x.x.x` should remove project name prefix to prevent `2` going into the version
|
|
304
311
|
prefix = f"{self.name}-"
|
|
305
312
|
if version_s.startswith(prefix):
|
|
306
313
|
version_s = version_s[len(prefix) :]
|
|
@@ -442,6 +449,23 @@ class BaseProjectHolder(requests.Session):
|
|
|
442
449
|
return self.feed_url
|
|
443
450
|
return f"https://{self.hostname}/{self.repo}"
|
|
444
451
|
|
|
452
|
+
def get_feed_response(self, url):
|
|
453
|
+
"""
|
|
454
|
+
Get feed response.
|
|
455
|
+
Ensures that the same `Accept` header is used for all feed requests.
|
|
456
|
+
Clears cookies after request to ensure cache-ability of further requests.
|
|
457
|
+
"""
|
|
458
|
+
headers = {
|
|
459
|
+
"Accept": "*/*",
|
|
460
|
+
# private repos do not have releases.atom to begin with,
|
|
461
|
+
# authorization header may cause a false positive 200 response with an empty feed!
|
|
462
|
+
"Authorization": "",
|
|
463
|
+
}
|
|
464
|
+
response = self.get(url, headers=headers)
|
|
465
|
+
# API requests are varied by cookie, we don't want serializer for cache fail because of that
|
|
466
|
+
self.cookies.clear()
|
|
467
|
+
return response
|
|
468
|
+
|
|
445
469
|
def find_release_in_feed(self, url, pre_ok=False, major=None):
|
|
446
470
|
"""
|
|
447
471
|
Find release in feed.
|
|
@@ -449,6 +473,7 @@ class BaseProjectHolder(requests.Session):
|
|
|
449
473
|
then supply its text to feedparser as a raw string
|
|
450
474
|
"""
|
|
451
475
|
ret = {}
|
|
476
|
+
log.debug("Requesting %s", url)
|
|
452
477
|
r = self.get(url)
|
|
453
478
|
feed = feedparser.parse(r.text)
|
|
454
479
|
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
|
|
|
@@ -359,20 +360,25 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
359
360
|
if "tagger" in node["target"]:
|
|
360
361
|
# use date of annotated tag as it better corresponds to
|
|
361
362
|
# "release date"
|
|
362
|
-
log.info("Using annotated tag date")
|
|
363
363
|
d = node["target"]["tagger"]["date"]
|
|
364
|
+
log.info("Using annotated tag date %s", d)
|
|
364
365
|
else:
|
|
365
366
|
# using commit date because the tag is not annotated
|
|
366
|
-
log.info("Using commit date")
|
|
367
367
|
d = node["target"]["author"]["date"]
|
|
368
|
+
log.info("Using commit date %s", d)
|
|
368
369
|
tag_date = parser.parse(d)
|
|
369
370
|
if ret and tag_date + timedelta(days=365) < ret["tag_date"]:
|
|
370
371
|
log.info("The version %s is newer, but is too old!", version)
|
|
371
372
|
break
|
|
372
|
-
if
|
|
373
|
+
if (
|
|
374
|
+
not ret
|
|
375
|
+
or version >= ret["version"]
|
|
376
|
+
or (tag_date - ret["tag_date"]) > timedelta(hours=1)
|
|
377
|
+
):
|
|
373
378
|
# we always want to return formal release if it exists,
|
|
374
379
|
# because it has useful data grab formal release via APi
|
|
375
|
-
# to check for pre-release
|
|
380
|
+
# to check for pre-release
|
|
381
|
+
# >= case is when we have release from atom but update with tag date from API
|
|
376
382
|
formal_release = self.get_formal_release_for_tag(tag_name)
|
|
377
383
|
if formal_release:
|
|
378
384
|
ret = self.set_matching_formal_release(
|
|
@@ -386,6 +392,9 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
386
392
|
"version": version,
|
|
387
393
|
"type": "graphql",
|
|
388
394
|
}
|
|
395
|
+
log.info(
|
|
396
|
+
"Selected version as current selection: %s.", version
|
|
397
|
+
)
|
|
389
398
|
if ret:
|
|
390
399
|
break
|
|
391
400
|
return ret
|
|
@@ -472,18 +481,10 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
472
481
|
"""
|
|
473
482
|
if self.repo in self.feed_contents:
|
|
474
483
|
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
|
|
484
|
+
feed_response = self.get_feed_response(
|
|
485
|
+
url=f"https://{self.hostname}/{self.repo}/releases.atom"
|
|
483
486
|
)
|
|
484
|
-
|
|
485
|
-
self.cookies.clear()
|
|
486
|
-
if r.status_code == 404 and not rename_checked:
|
|
487
|
+
if feed_response.status_code == 404 and not rename_checked:
|
|
487
488
|
# #44: in some network locations, GitHub returns 404 (as opposed to a 301 redirect) for the renamed
|
|
488
489
|
# repositories /releases.atom. When we get a 404, we lazily load repo info via API, and hopefully
|
|
489
490
|
# get redirect there as well as the new repo full name
|
|
@@ -499,9 +500,9 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
499
500
|
self.repo = repo_data["full_name"]
|
|
500
501
|
# request the feed from the new location
|
|
501
502
|
return self.get_releases_feed_contents(rename_checked=False)
|
|
502
|
-
if
|
|
503
|
-
self.feed_contents[self.repo] =
|
|
504
|
-
return
|
|
503
|
+
if feed_response.status_code == 200:
|
|
504
|
+
self.feed_contents[self.repo] = feed_response.text
|
|
505
|
+
return feed_response.text
|
|
505
506
|
return None
|
|
506
507
|
|
|
507
508
|
def get_releases_feed_entries(self):
|
|
@@ -701,9 +702,9 @@ class GitHubRepoSession(BaseProjectHolder):
|
|
|
701
702
|
"""
|
|
702
703
|
official_repo = f"{repo}/{repo}"
|
|
703
704
|
log.info("Checking existence of %s", official_repo)
|
|
704
|
-
r = self.
|
|
705
|
-
|
|
706
|
-
|
|
705
|
+
r = self.get_feed_response(
|
|
706
|
+
url=f"https://{self.hostname}/{official_repo}/releases.atom"
|
|
707
|
+
)
|
|
707
708
|
if r.status_code == 200:
|
|
708
709
|
self.feed_contents[official_repo] = r.text
|
|
709
710
|
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)
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"""Test GitLab support."""
|
|
2
|
+
|
|
2
3
|
import os
|
|
3
4
|
|
|
4
5
|
from packaging import version
|
|
@@ -24,7 +25,7 @@ def test_gitlab_format_json():
|
|
|
24
25
|
|
|
25
26
|
v = latest(repo, output_format="dict")
|
|
26
27
|
|
|
27
|
-
assert "tag_date" in v and v["tag_date"].day ==
|
|
28
|
+
assert "tag_date" in v and v["tag_date"].day == 22
|
|
28
29
|
|
|
29
30
|
|
|
30
31
|
def test_gitlab_at():
|
|
@@ -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
|