-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump Python minor version to
3.8
(#610)
- Loading branch information
1 parent
50f0d20
commit 2d2b411
Showing
17 changed files
with
50 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,9 +16,7 @@ def logged_in() -> bool: | |
# pylint: disable=subprocess-run-check | ||
result = subprocess.run( | ||
["gh", "auth", "status"], | ||
stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE, | ||
# capture_output=True, <-- Added in Python 3.7 | ||
capture_output=True, | ||
) | ||
return b"Logged in to github.com" in result.stderr | ||
|
||
|
@@ -34,9 +32,7 @@ def repo_exists(github_slug: str) -> bool: | |
# pylint: disable=subprocess-run-check | ||
result = subprocess.run( | ||
["gh", "repo", "view", github_slug], | ||
stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE, | ||
# capture_output=True <-- Added in Python 3.7 | ||
capture_output=True, | ||
) | ||
|
||
if not result.stderr: | ||
|
@@ -55,9 +51,7 @@ def create_github_repository(github_slug: str, directory: Path) -> Path: | |
|
||
subprocess.run( | ||
["gh", "repo", "create", github_slug, "--private", "--confirm"], | ||
stdout=subprocess.PIPE, | ||
stderr=subprocess.PIPE, | ||
# capture_output=True, <-- Added in Python 3.7 | ||
capture_output=True, | ||
check=True, | ||
cwd=directory, | ||
) | ||
|
@@ -128,9 +122,7 @@ def read_file_in_repository(github_slug: str, filename: str) -> str: | |
["git", "clone", f"[email protected]:{github_slug}"], | ||
check=True, | ||
cwd=temp_dir, | ||
stdout=subprocess.DEVNULL, | ||
stderr=subprocess.DEVNULL, | ||
# capture_output=True, <-- Added in Python 3.7 | ||
capture_output=True, | ||
) | ||
clone_path = temp_dir / github_slug.split("/")[1] | ||
|
||
|
@@ -150,8 +142,7 @@ def commit_portable_webviz( | |
["git", "clone", f"[email protected]:{github_slug}"], | ||
check=True, | ||
cwd=temp_dir, | ||
stdout=subprocess.DEVNULL, | ||
stderr=subprocess.DEVNULL, | ||
capture_output=True, | ||
) | ||
|
||
clone_path = temp_dir / github_slug.split("/")[1] | ||
|
@@ -174,6 +165,5 @@ def commit_portable_webviz( | |
command, | ||
check=True, | ||
cwd=clone_path, | ||
stdout=subprocess.DEVNULL, | ||
stderr=subprocess.DEVNULL, | ||
capture_output=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.