Merge pull request #838 from manics/release

Release 0.2.0 (JupyterHub 1.*)
This commit is contained in:
Simon Li
2023-02-27 12:44:58 +00:00
committed by GitHub
4 changed files with 343 additions and 10 deletions

View File

@@ -335,7 +335,14 @@ def main():
parser = ArgumentParser() parser = ArgumentParser()
parser.add_argument("--show-progress-page", action="store_true") parser.add_argument("--show-progress-page", action="store_true")
parser.add_argument( parser.add_argument(
"--version", default="main", help="TLJH version or Git reference" "--version",
default="latest",
help=(
"TLJH version or Git reference. "
"Default 'latest' is the most recent release. "
"Partial versions can be specified, for example '1', '1.0' or '1.0.0'. "
"You can also pass a branch name such as 'main' or a commit hash."
),
) )
args, tljh_installer_flags = parser.parse_known_args() args, tljh_installer_flags = parser.parse_known_args()
@@ -448,16 +455,16 @@ def main():
if os.environ.get("TLJH_BOOTSTRAP_DEV", "no") == "yes": if os.environ.get("TLJH_BOOTSTRAP_DEV", "no") == "yes":
logger.info("Selected TLJH_BOOTSTRAP_DEV=yes...") logger.info("Selected TLJH_BOOTSTRAP_DEV=yes...")
tljh_install_cmd.append("--editable") tljh_install_cmd.append("--editable")
version = _resolve_git_version(args.version)
tljh_install_cmd.append( bootstrap_pip_spec = os.environ.get("TLJH_BOOTSTRAP_PIP_SPEC")
os.environ.get( if not bootstrap_pip_spec:
"TLJH_BOOTSTRAP_PIP_SPEC", bootstrap_pip_spec = (
"git+https://github.com/jupyterhub/the-littlest-jupyterhub.git@{}".format( "git+https://github.com/jupyterhub/the-littlest-jupyterhub.git@{}".format(
version _resolve_git_version(args.version)
), )
) )
)
tljh_install_cmd.append(bootstrap_pip_spec)
if initial_setup: if initial_setup:
logger.info("Installing TLJH installer...") logger.info("Installing TLJH installer...")
else: else:

319
changelog.md Normal file

File diff suppressed because one or more lines are too long

View File

@@ -100,7 +100,14 @@ def run_bootstrap_after_preparing_container(
bootstrap_script = get_bootstrap_script_location(container_name, show_progress_page) bootstrap_script = get_bootstrap_script_location(container_name, show_progress_page)
exec_flags = ["-i", container_name, "python3", bootstrap_script] exec_flags = [
"-i",
container_name,
"python3",
bootstrap_script,
"--version",
"main",
]
if show_progress_page: if show_progress_page:
exec_flags = ( exec_flags = (
["-e", "TLJH_BOOTSTRAP_DEV=yes", "-e", "TLJH_BOOTSTRAP_PIP_SPEC=/srv/src"] ["-e", "TLJH_BOOTSTRAP_DEV=yes", "-e", "TLJH_BOOTSTRAP_PIP_SPEC=/srv/src"]

View File

@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
setup( setup(
name="the-littlest-jupyterhub", name="the-littlest-jupyterhub",
version="0.1", version="0.2.0",
description="A small JupyterHub distribution", description="A small JupyterHub distribution",
url="https://github.com/jupyterhub/the-littlest-jupyterhub", url="https://github.com/jupyterhub/the-littlest-jupyterhub",
author="Jupyter Development Team", author="Jupyter Development Team",