Skip to content

Commit

Permalink
fix: update pip commands to make it compatible with zsh (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesus89 authored Apr 2, 2024
1 parent fc0422d commit 04d1217
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ The Raster Loader documentation is available at [raster-loader.readthedocs.io](h
## Install

```bash
pip install raster-loader
pip install -U raster-loader

pip install -U raster-loader"[bigquery]"
pip install -U raster-loader"[snowflake]"
```

### Installing from source
Expand Down
11 changes: 5 additions & 6 deletions docs/source/user_guide/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,28 @@ Raster Loader is available on PyPI_ and can be installed with pip_:

.. code-block:: bash
pip install raster-loader[all]
pip install -U raster-loader
To install from source:

.. code-block:: bash
git clone https://github.com/cartodb/raster-loader
cd raster-loader
pip install .[all]
pip install -U .
.. tip::

In most cases, it is recommended to install Raster Loader in a virtual environment.
Use venv_ to create and manage your virtual environment.

The above will install the dependencies required to work with both Snowflake and
BigQuery. In case you only want to work with one of them, you can install the
The above will install the dependencies required to work with both BigQuery and Snowflake and. In case you only want to work with one of them, you can install the
dependencies for each of them separately:

.. code-block:: bash
pip install raster-loader[snowflake]
pip install raster-loader[bigquery]
pip install -U raster-loader"[bigquery]"
pip install -U raster-loader"[snowflake]"
After installing the Raster Loader package, you will have access to the
:ref:`carto CLI <cli>`. To make sure the installation was successful, run the
Expand Down
4 changes: 2 additions & 2 deletions raster_loader/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ def import_error_bigquery(): # pragma: no cover
msg = (
"Google Cloud BigQuery client is not installed.\n"
"Please install Google Cloud BigQuery dependencies to use this function.\n"
"run `pip install -U raster-loader[bigquery]` to install from pypi."
'run `pip install -U raster-loader"[bigquery]"` to install from pypi.'
)
raise ImportError(msg)

Expand All @@ -11,7 +11,7 @@ def import_error_snowflake(): # pragma: no cover
msg = (
"Snowflake client is not installed.\n"
"Please install Snowflake dependencies to use this function.\n"
"run `pip install -U raster-loader[snowflake]` to install from pypi."
'run `pip install -U raster-loader"[snowflake]"` to install from pypi.'
)
raise ImportError(msg)

Expand Down

0 comments on commit 04d1217

Please sign in to comment.