Merge "Be explicit about python3 executable"

This commit is contained in:
Zuul 2019-10-24 09:34:46 +00:00 committed by Gerrit Code Review
commit 6bc43e4eac
10 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at

View File

@ -44,9 +44,9 @@ def get_sdist_name(workdir, repo):
cwd=dest,
)
if use_tox:
python = '.tox/venv/bin/python'
python = '.tox/venv/bin/python3'
else:
python = 'python'
python = 'python3'
# Run it once and discard the result to ensure any setup_requires
# dependencies are installed.
cmd = [python, 'setup.py', '--name']
@ -77,9 +77,9 @@ def build_sdist(workdir, repo):
cwd=dest,
)
if use_tox:
python = '.tox/venv/bin/python'
python = '.tox/venv/bin/python3'
else:
python = 'python'
python = 'python3'
# Run it once and discard the result to ensure any setup_requires
# dependencies are installed.
cmd = [python, 'setup.py', 'sdist', 'bdist_wheel']

View File

@ -88,7 +88,7 @@ def get_min_specifier(specifier_set):
def get_requirements_at_ref(workdir, repo, ref):
"Check out the repo at the ref and load the list of requirements."
dest = gitutils.clone_repo(workdir, repo, ref=ref)
processutils.check_call(['python', 'setup.py', 'sdist'], cwd=dest)
processutils.check_call(['python3', 'setup.py', 'sdist'], cwd=dest)
sdist_name = pythonutils.get_sdist_name(workdir, repo)
requirements_filename = os.path.join(
dest, sdist_name + '.egg-info', 'requires.txt',

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
#
# Tool to generate a patch to remove direct tagging / branch-creating
# rights for official OpenStack deliverables

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
#
# Handle pre-release / post-release ACLs for milestone-driven projects
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
#
# All Rights Reserved.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain

View File

@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/python3
#
# List deliverables that appear in governance but not in releases
# in preparation for MemberShipFreeze

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
#
# All Rights Reserved.
#

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/python3
#
# Scan the releases for a series that came after the project's branch
# and verify that they are all on the right branch.