Skip to content

Commit

Permalink
CI: Install pyarrow-core instead of pyarrow from conda-forge (#3698)
Browse files Browse the repository at this point in the history
Reduce unnecessary optional dependencies when installing `pyarrow` from conda-forge. Xref conda-forge/pyarrow-feedstock#111

* doc: Suggest installing pyarrow-core in installation instructions
  • Loading branch information
weiji14 authored Dec 19, 2024
1 parent f42c09c commit 387c69f
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
netCDF4
packaging
geopandas
pyarrow
pyarrow-core
pytest
pytest-codspeed
pytest-mpl
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
contextily
geopandas
ipython
pyarrow
pyarrow-core
rioxarray
make
pip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_doctests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
contextily
geopandas
ipython
pyarrow
pyarrow-core
rioxarray
make
pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ jobs:
numpy-version: '1.25'
pandas-version: '=2.0'
xarray-version: '=2023.04'
optional-packages: ' contextily geopandas<1 ipython pyarrow rioxarray sphinx-gallery'
optional-packages: ' contextily geopandas<1 ipython pyarrow-core rioxarray sphinx-gallery'
# Python 3.13 + core packages (latest versions) + optional packages
- python-version: '3.13'
numpy-version: '2.2'
pandas-version: ''
xarray-version: ''
optional-packages: ' contextily geopandas>=1.0 ipython pyarrow rioxarray sphinx-gallery'
optional-packages: ' contextily geopandas>=1.0 ipython pyarrow-core rioxarray sphinx-gallery'
# Python 3.12 + core packages (Linux only)
- os: 'ubuntu-latest'
python-version: '3.12'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci_tests_legacy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
contextily
geopandas
ipython
pyarrow
pyarrow-core
rioxarray
sphinx-gallery
make
Expand Down
2 changes: 1 addition & 1 deletion ci/requirements/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- contextily
- geopandas
- ipython
- pyarrow
- pyarrow-core
- rioxarray
# Development dependencies (general)
- make
Expand Down
7 changes: 4 additions & 3 deletions doc/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,19 +162,20 @@ From now on, all commands will take place inside the virtual environment called
and won't affect your default `base` installation.

::::: {tip}
You can also enable more PyGMT functionality by installing PyGMT's optional dependencies in the environment.
You can also enable more PyGMT functionalities by installing PyGMT's optional
dependencies in the environment.
:::: {tab-set}
::: {tab-item} mamba
:sync: mamba
```
mamba install contextily geopandas ipython pyarrow rioxarray
mamba install contextily geopandas ipython pyarrow-core rioxarray
```
:::

::: {tab-item} conda
:sync: conda
```
conda install contextily geopandas ipython pyarrow rioxarray
conda install contextily geopandas ipython pyarrow-core rioxarray
```
:::
::::
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ dependencies:
- contextily
- geopandas
- ipython
- pyarrow
- pyarrow-core
- rioxarray
# Development dependencies (general)
- dvc
Expand Down

0 comments on commit 387c69f

Please sign in to comment.