Skip to content

Commit

Permalink
Update script dependencies and update fn calls to match
Browse files Browse the repository at this point in the history
Signed-off-by: Jose R. Gonzalez <komish@flutes.dev>
  • Loading branch information
komish committed Jun 20, 2024
1 parent 9d8961f commit 5089d0b
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 38 deletions.
63 changes: 30 additions & 33 deletions scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,38 +1,35 @@
attrs==21.2.0
certifi==2020.12.5
chardet==4.0.0
docker==6.1.3
environs==9.5.0
execnet==1.9.0
gitdb==4.0.7
GitPython==3.1.18
attrs==23.2.0
certifi==2024.6.2
chardet==5.2.0
docker==7.1.0
environs==11.0.0
execnet==2.1.1
gitdb==4.0.11
GitPython==3.1.43
glob2==0.7
idna==2.10
iniconfig==1.1.1
mako==1.2.3
MarkupSafe==2.0.1
packaging==21.0
parse==1.19.0
parse-type==0.5.2
pluggy==0.13.1
psutil==5.8.0
py==1.10.0
PyGithub==1.55
pyparsing==2.4.7
pytest==6.2.4
pytest-bdd==4.1.0
pytest-forked==1.3.0
pytest-xdist==2.4.0
idna==3.7
iniconfig==2.0.0
mako==1.3.5
MarkupSafe==2.1.5
packaging==24.1
parse==1.20.2
parse-type==0.6.2
pluggy==1.5.0
psutil==5.9.8
PyGithub==2.3.0
pyparsing==3.1.2
pytest==8.2.2
pytest-bdd==7.2.0
PyYAML==6.0.1
requests==2.26.0
responses==0.23.1
retrying==1.3.3
semantic-version==2.8.5
semver==2.13.0
requests==2.32.3
responses==0.25.3
retrying==1.3.4
semantic-version==2.10.0
semver==3.0.2
six==1.16.0
smmap==4.0.0
smmap==5.0.1
toml==0.10.2
urllib3==1.26.5
websocket-client==1.2.1
analytics-python==1.4.0
urllib3==2.2.2
websocket-client==1.8.0
analytics-python==1.4.post1
behave==1.2.6
2 changes: 1 addition & 1 deletion scripts/src/chartprreview/chartprreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def check_report_success(directory, api_url, report_path, report_info_path, vers

if "charts.openshift.io/certifiedOpenShiftVersions" in annotations:
full_version = annotations["charts.openshift.io/certifiedOpenShiftVersions"]
if not semver.VersionInfo.isvalid(full_version):
if not semver.VersionInfo.is_valid(full_version):
msg = f"[ERROR] certified OpenShift version not conforming to SemVer spec: {full_version}"
write_error_log(directory, msg)
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion scripts/src/checkprcontent/checkpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def ensure_only_chart_is_modified(api_url, repository, branch):
gitutils.add_output("organization", organization)
gitutils.add_output("chart-name", chart)

if not semver.VersionInfo.isvalid(version):
if not semver.VersionInfo.is_valid(version):
msg = (
f"[ERROR] Helm chart version is not a valid semantic version: {version}"
)
Expand Down
2 changes: 1 addition & 1 deletion scripts/src/precheck/submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def register_chart_info(self, category, organization, name, version):
msg = "[ERROR] A PR must contain only one chart. Current PR includes files for multiple charts."
raise DuplicateChartError(msg)

if not semver.VersionInfo.isvalid(version):
if not semver.VersionInfo.is_valid(version):
msg = (
f"[ERROR] Helm chart version is not a valid semantic version: {version}"
)
Expand Down
4 changes: 2 additions & 2 deletions scripts/src/release/releasechecker.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def check_if_dev_release_branch(sender, pr_branch, pr_body, api_url, pr_head_rep
return False

version = pr_branch.removeprefix(releaser.DEV_PR_BRANCH_NAME_PREFIX)
if not semver.VersionInfo.isvalid(version):
if not semver.VersionInfo.is_valid(version):
print(
f"Release part ({version}) of branch name {pr_branch} is not a valid semantic version."
)
Expand Down Expand Up @@ -139,7 +139,7 @@ def check_if_charts_release_branch(sender, pr_branch, pr_body, api_url, pr_head_
return False

version = pr_branch.removeprefix(releaser.CHARTS_PR_BRANCH_NAME_PREFIX)
if not semver.VersionInfo.isvalid(version):
if not semver.VersionInfo.is_valid(version):
print(
f"Release part ({version}) of branch name {pr_branch} is not a valid semantic version."
)
Expand Down

0 comments on commit 5089d0b

Please sign in to comment.