Skip to content

Commit

Permalink
remove accidental gnwmanager reference in cookbook.
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianPugh committed Jun 17, 2024
1 parent a6489e6 commit 399cc43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/cookbook/app_upgrade.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ If you would like your CLI application to be able to upgrade itself, you can add
"""Update mypackage to latest stable version."""
old_version = mypackage.__version__
subprocess.check_output([sys.executable, "-m", "pip", "install", "--upgrade", "pip"])
subprocess.check_output([sys.executable, "-m", "pip", "install", "--upgrade", "gnwmanager"])
res = subprocess.run([sys.executable, "-m", "gnwmanager", "--version"], stdout=subprocess.PIPE, check=True)
subprocess.check_output([sys.executable, "-m", "pip", "install", "--upgrade", "mypackage"])
res = subprocess.run([sys.executable, "-m", "mypackage", "--version"], stdout=subprocess.PIPE, check=True)
new_version = res.stdout.decode().strip()
if old_version == new_version:
print(f"mypackage up-to-date (v{new_version}).")
Expand Down

0 comments on commit 399cc43

Please sign in to comment.