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.add_argument("--show-progress-page", action="store_true")
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()
@@ -448,16 +455,16 @@ def main():
if os.environ.get("TLJH_BOOTSTRAP_DEV", "no") == "yes":
logger.info("Selected TLJH_BOOTSTRAP_DEV=yes...")
tljh_install_cmd.append("--editable")
version = _resolve_git_version(args.version)
tljh_install_cmd.append(
os.environ.get(
"TLJH_BOOTSTRAP_PIP_SPEC",
bootstrap_pip_spec = os.environ.get("TLJH_BOOTSTRAP_PIP_SPEC")
if not bootstrap_pip_spec:
bootstrap_pip_spec = (
"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:
logger.info("Installing TLJH installer...")
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)
exec_flags = ["-i", container_name, "python3", bootstrap_script]
exec_flags = [
"-i",
container_name,
"python3",
bootstrap_script,
"--version",
"main",
]
if show_progress_page:
exec_flags = (
["-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(
name="the-littlest-jupyterhub",
version="0.1",
version="0.2.0",
description="A small JupyterHub distribution",
url="https://github.com/jupyterhub/the-littlest-jupyterhub",
author="Jupyter Development Team",