Skip to content

Commit f87a251

Browse files
authored
Merge pull request #3 from umago/python-versions
Check Python versions
2 parents 36dd15d + 2eec46e commit f87a251

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

scripts/asciidoctor-text/convert-it-all.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python3
22

33
"""Utility script to convert OCP docs from adoc to plain text."""
44

scripts/generate_packages_to_prefetch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python3
22

33
"""Generate list of packages to be prefetched in Cachi2 and used in Konflux for hermetic build.
44
@@ -147,7 +147,7 @@ def generate_packages_to_be_build(work_directory):
147147

148148
# generate file requirements-build.in
149149
command = (
150-
"python pip_find_builddeps.py requirements.txt --append "
150+
"python3 pip_find_builddeps.py requirements.txt --append "
151151
+ f"--only-write-on-update --ignore-errors --allow-binary -o {infile}"
152152
)
153153
shell(command, work_directory)

scripts/get_ocp_plaintext_docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ rm -rf ocp-product-docs-plaintext/${OCP_VERSION}
99

1010
git clone --single-branch --branch enterprise-${OCP_VERSION} https://github.com/openshift/openshift-docs.git
1111

12-
python scripts/asciidoctor-text/convert-it-all.py -i openshift-docs -t openshift-docs/_topic_maps/_topic_map.yml \
12+
python3 scripts/asciidoctor-text/convert-it-all.py -i openshift-docs -t openshift-docs/_topic_maps/_topic_map.yml \
1313
-d openshift-enterprise -o ocp-product-docs-plaintext/${OCP_VERSION} -a scripts/asciidoctor-text/${OCP_VERSION}/attributes.yaml
1414

1515
for f in $(cat config/exclude.conf); do

0 commit comments

Comments
 (0)