Notify users of new versions of cellxgene (#1078)

* Notify users of new versions of cellxgene

Fixes https://github.com/chanzuckerberg/cellxgene/issues/683

* Do not use PyGithub client

* Protect against AttributeError

* Document that all version tags must follow SemVer

* Release tags `should -> MUST` follow semantic versioning
This commit is contained in:
Matt Weiden
2019-12-31 17:43:11 -08:00
committed by GitHub
parent 29947e25c3
commit 53a6d01fa3
5 changed files with 135 additions and 5 deletions
+9 -3
View File
@@ -1,7 +1,9 @@
import click
from .. import __version__
from .launch import launch
from .prepare import prepare
from .upgrade import log_upgrade_check
@click.group(
@@ -12,13 +14,17 @@ from .prepare import prepare
)
@click.help_option("--help", "-h", help="Show this message and exit.")
@click.version_option(
version="0.13.0",
version=__version__,
prog_name="cellxgene",
message="[%(prog)s] Version %(version)s",
help="Show the software version and exit.",
)
def cli():
pass
@click.option(
"--upgrade-check/--no-upgrade-check", default=True, show_default=True, help="Check for release upgrades on start.",
)
def cli(upgrade_check):
if upgrade_check:
log_upgrade_check()
cli.add_command(launch)