From 420a7345fe44e3e16d830bdb6a98231210108977 Mon Sep 17 00:00:00 2001 From: Oscar Levin Date: Tue, 30 Dec 2025 20:36:49 -0700 Subject: [PATCH] CLI: fix warning about missing requirements.txt --- pretext/__init__.py | 2 +- pretext/cli.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pretext/__init__.py b/pretext/__init__.py index d0005fc9..0261b555 100644 --- a/pretext/__init__.py +++ b/pretext/__init__.py @@ -19,7 +19,7 @@ VERSION = get_version("pretext", Path(__file__).parent.parent) -CORE_COMMIT = "1c97959297d51749717f9b34ce5da131c960b92d" +CORE_COMMIT = "8712386b55dc0350a20218a430acfc7f5ee1aada" def activate() -> None: diff --git a/pretext/cli.py b/pretext/cli.py index a7b04723..31a0267c 100644 --- a/pretext/cli.py +++ b/pretext/cli.py @@ -147,7 +147,7 @@ def main(ctx: click.Context, targets: bool) -> None: log.warning( "Project's CLI version could not be detected from `requirements.txt`." ) - log.warning("Try `pretext init --refresh` to produce a compatible file.") + log.warning("Try `pretext update` to produce a compatible file.") elif utils.requirements_version() != VERSION: log.warning(f"Using CLI version {VERSION} but project's `requirements.txt`") log.warning( @@ -381,7 +381,7 @@ def new(template: str, directory: Path, url_template: str) -> None: "-r", "--refresh", is_flag=True, - help=" Refresh initialization of project even if project.ptx exists. [This will be deprecated in the future; use `pretext update -f` instead.] ", + help="Refresh initialization of project even if project.ptx exists. [This will be deprecated in the future; use `pretext update -f` instead.] ", ) @click.option( "-f",