From 31684497be212b52c17665eee4a2d0d8aaacd9e6 Mon Sep 17 00:00:00 2001 From: Rohit Sankaran Date: Mon, 5 May 2025 13:06:21 +0200 Subject: [PATCH] chore: Add quotes around installable optional features --- README.md | 6 +++--- src/tower/__init__.py | 6 +++--- src/tower/_features.py | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 2267aa28..9b236a83 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ Tower supports several optional features that can be installed as needed: #### AI/LLM Support ```bash -pip install tower[ai] +pip install "tower[ai]" ``` Provides integration with language models through: @@ -61,7 +61,7 @@ Provides integration with language models through: #### Apache Iceberg Support ```bash -pip install tower[iceberg] +pip install "tower[iceberg]" ``` Provides Apache Iceberg table support: @@ -72,7 +72,7 @@ Provides Apache Iceberg table support: #### Install All Optional Features ```bash -pip install tower[all] +pip install "tower[all]" ``` #### Check Available Features diff --git a/src/tower/__init__.py b/src/tower/__init__.py index 4511111d..129529ba 100644 --- a/src/tower/__init__.py +++ b/src/tower/__init__.py @@ -5,9 +5,9 @@ including running apps locally or in the Tower cloud. Optional features: -- AI/LLM support: Install with `pip install tower[ai]` -- Apache Iceberg support: Install with `pip install tower[iceberg]` -- All features: Install with `pip install tower[all]` +- AI/LLM support: Install with `pip install "tower[ai]"` +- Apache Iceberg support: Install with `pip install "tower[iceberg]"` +- All features: Install with `pip install "tower[all]"` """ from ._client import ( diff --git a/src/tower/_features.py b/src/tower/_features.py index 5b257499..f2d8a0e7 100644 --- a/src/tower/_features.py +++ b/src/tower/_features.py @@ -4,9 +4,9 @@ Tower supports optional features that require additional dependencies. These can be installed using pip: - pip install tower[ai] # For AI/LLM features - pip install tower[iceberg] # For Apache Iceberg table support - pip install tower[all] # For all optional features + pip install "tower[ai]" # For AI/LLM features + pip install "tower[iceberg]" # For Apache Iceberg table support + pip install "tower[all]" # For all optional features """ import importlib.util @@ -121,7 +121,7 @@ def override_get_attr(name: str) -> Any: raise ImportError( f"This requires the '{feature}' feature and the following dependencies: {deps}.\n" f"You are missing these packages: {missing}\n" - f"Install with: pip install tower[{feature}]" + f'Install with: pip install "tower[{feature}]"' ) # Check if module is already cached