Skip to content

Commit

Permalink
Merge pull request #461 from mulkieran/python3
Browse files Browse the repository at this point in the history
Specify python3 in some command-line invocations
  • Loading branch information
mulkieran authored Sep 5, 2023
2 parents e77750b + 17e3665 commit 7ff3bf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions release_management/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,15 @@ def get_python_package_info(name):
:param str name: the project name
:returns: str * ParseResult
"""
command = ["python", "setup.py", "--name"]
command = ["python3", "setup.py", "--name"]
with subprocess.Popen(command, stdout=subprocess.PIPE) as proc:
assert proc.stdout.readline().strip().decode("utf-8") == name

command = ["python", "setup.py", "--version"]
command = ["python3", "setup.py", "--version"]
with subprocess.Popen(command, stdout=subprocess.PIPE) as proc:
release_version = proc.stdout.readline().strip().decode("utf-8")

command = ["python", "setup.py", "--url"]
command = ["python3", "setup.py", "--url"]
with subprocess.Popen(command, stdout=subprocess.PIPE) as proc:
github_url = proc.stdout.readline().strip().decode("utf-8")

Expand Down

0 comments on commit 7ff3bf5

Please sign in to comment.